s4-1 adm703, section 4, august 2005 copyright 2005 msc.software corporation section 4 washing...

16
S4-1 ADM703, Section 4, August 2005 Copyright 2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

Upload: brianna-norton

Post on 05-Jan-2016

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-1ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

SECTION 4

WASHING MACHINE

Page 2: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-2ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

Page 3: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-3ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

WASHING MACHINE

Create a simple controller to drive the washing machine spinner at a given speed.

What’s in this section: Tracking System Velocities Implementing Simple Controllers Computing the Derivative of a Run-Time Function Batch-Mode, Stand-Alone ADAMS/Solver FILE Command Workshop 9: Washing Machine

Page 4: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-4ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

TRACKING SYSTEM VELOCITIES

As with tracking system loads, there are several functions available in MSC.ADAMS that allow you to track system velocities throughout a simulation.

Page 5: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-5ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

TRACKING SYSTEM VELOCITIES (CONT.) Where:

I - The marker whose velocity is being measured.

J - The marker with respect to which the velocity is being measured. Set J = 0, while still specifying l, if you want J to default to the global coordinate system.

K - The marker in whose coordinate system the velocity vector is being expressed. Set K = 0, while still specifying L, if you want the results to be calculated along the

x-axis of the global coordinate system.

L - The reference frame in which the first time derivative of the displacement vector is taken. Set L = 0 or omit the argument if you want the time derivatives to be taken in the ground coordinate system (GCS).

Note: Rotational velocities are reported from ADAMS/Solver (and, therefore, into your functions) in units of radians/[unit_time].

Page 6: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-6ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

TRACKING SYSTEM VELOCITIES (CONT.)

Make use of the operators rtod and dtor for handy conversions.

Example of VM vs. VR Functions

Page 7: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-7ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

IMPLEMENTING SIMPLE CONTROLLERS

With the use of differential equations and state variables, simple control systems can be modeled easily in MSC.ADAMS.

Proportional-Only Controller

Proportional and Integral Controller

Page 8: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-8ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

IMPLEMENTING SIMPLE CONTROLLERS (CONT.)

Example MSC.ADAMS Elements (PI Controller) ADAMS/View variables:

ADAMS/Solver variables:

Differential Equation:

Force Function:

Page 9: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-9ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

COMPUTING THE DERIVATIVE OF A RUN-TIME FUNCTION

You can use an implicit DIFF to get the time derivative of just about anything. Because it references itself, it requires a two-step definition in ADAMS/View.

For example, you need dataset language something like:

VARIABLE/2, FUNCTION = WZ(2)

DIFF/1, IMPLICIT, FUNCTION=DIF(1)-VARVAL(2)

You can then access the derivative as DIF1(1).

Page 10: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-10ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

COMPUTING THE DERIVATIVE OF A RUN-TIME FUNCTION (CONT.)

Caveats Since this method writes a DIFF for MSC.ADAMS to differentiate, it

will not work during a static or quasi-static analysis, as MSC.ADAMS forces the derivative of the DIFF to zero during these analyses.

This method does not work when using a coordinate partitioning method for dynamics solution. The DIF1 function will always be zero if you're using an integrator such as ABAM.

This will not work for kinematics (SIM/KIN).

You have no error control in the differentiated signal, so the accuracy of the answer can never be ascertained. The only way to control the error is by controlling the step size.

If you feed the differentiated signal back into the system it can cause integration difficulties.

Page 11: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-11ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

BATCH-MODE, STAND-ALONE ADAMS/SOLVER

What? String several simulations together and run them at once, serially,

on one ADAMS/Solver license.

Why? Large models can take a long time to simulate.

Simulations run faster in stand-alone mode.

Maximize your software investment using ADAMS/View, while running simulations in ADAMS/Solver externally.

Page 12: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-12ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

BATCH-MODE, STAND-ALONE ADAMS/SOLVER (CONT.)

How? General acf file syntax

Line 1: Model name

Line 2: Output name (same as model name if none entered)

Line 3 through last line: ADAMS/Solver commands

Last line: stop

Sim_01.acf Sim_02.acf Sim_03.acf

Sim_01.adm Sim_02.adm Sim_03.adm

Master.acf

.…Sim_01.acf Sim_02.acf Sim_03.acf

Sim_01.adm Sim_02.adm Sim_03.adm

Master.acfMaster.acf

.…

Page 13: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-13ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

BATCH-MODE, STAND-ALONE ADAMS/SOLVER (CONT.)

Example master .acf:

Example sim_01.acf:

Page 14: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-14ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

BATCH-MODE, STAND-ALONE ADAMS/SOLVER (CONT.)

Notes: It is important to delete or comment out stop to keep the simulation

running.

dummy.adm must be a valid MSC.ADAMS model.

For more information, see the guides, Running MSC.ADAMS on Windows and Running and Configuring MSC.ADAMS on UNIX.

Page 15: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-15ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation

FILE COMMAND The FILE command either restarts ADAMS/Solver

with a new model (MODEL) or executes a set of commands from a file (COMMAND). MODEL - Specifies a new dataset (.adm) file. ADAMS/Solver

closes any output files from a previous simulation, and then completely restarts by setting the simulation time to zero and reading the new model. Next, ADAMS/Solver prompts you for a new command, as if ADAMS/Solver had read the model when first started. By default, the output files use the same base name as the model file. The optional OUTPUT_PREFIX argument specifies a different base name, if needed.

COMMAND - Specifies a file containing ADAMS/Solver commands. ADAMS/Solver reads and executes the commands in the file. If the FILE command was interactive, ADAMS/Solver returns to interactive input when the command file is done. If the FILE command was in a command file itself, ADAMS/Solver returns to reading commands from that file. Command files can contain other FILE commands, nested up to 10 files deep. For more information, see the ADAMS/Solver online help.

Page 16: S4-1 ADM703, Section 4, August 2005 Copyright  2005 MSC.Software Corporation SECTION 4 WASHING MACHINE

S4-16ADM703, Section 4, August 2005Copyright 2005 MSC.Software Corporation