02.04.2013 Views

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Use<br />

Called By<br />

Any user-written subroutine<br />

Calling Sequence<br />

CALL TIMGET (time)<br />

Output Argument<br />

<strong>Welcome</strong> <strong>to</strong> <strong>Adams</strong>/<strong>Solver</strong> <strong>Subroutines</strong><br />

time A double-precision scalar that contains the simulation time at the end of the<br />

last successful step.<br />

Extended Definition<br />

TIMGET is primarily useful in situations where past values of system states are <strong>to</strong> be used in defining<br />

the current values of system. In some applications, you need <strong>to</strong> determine when a specific time has been<br />

successfully passed in the simulation. The value of the time argument passed <strong>to</strong> user-written subroutines<br />

is the current simulation time, and is therefore not a reliable indica<strong>to</strong>r of the last successful simulation<br />

time. Moreover, if convergence at the current time is not achieved, <strong>Adams</strong>/<strong>Solver</strong> backs up <strong>to</strong> the last<br />

successful simulation step and tries a new step.<br />

The value of simulation time returned by TIMGET represents a successful simulation time.<br />

<strong>Adams</strong>/<strong>Solver</strong> never backs up over this time again.<br />

Digital control systems are instances where the values provided by TIMGET are useful. Digital control<br />

systems are characterized by the fact that observations of system states are taken at pre-specified regular<br />

intervals named sampling periods. Based on the system states sampled and the governing control laws,<br />

forces acting on the system are defined. These forces are held constant until the next sample period,<br />

regardless of how the system state changed.<br />

Make sure that you only sample converged values of system states when determining the current system<br />

state. TIMGET is useful in this context, because it provides <strong>to</strong> user subroutines a record of when a set of<br />

system states have converged.<br />

Tip: SENSUB has commonly been used <strong>to</strong> identify a successful simulation step. You don't need<br />

<strong>to</strong> rely on TIMGET anymore.<br />

UCOVAR<br />

UCOVAR is used with UCOSUB, <strong>to</strong> tell <strong>Adams</strong>/<strong>Solver</strong> the part states that are used in the user-defined<br />

constraint.<br />

121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!