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.

Utility <strong>Subroutines</strong><br />

About Utility <strong>Subroutines</strong><br />

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

The utility subroutines provide all the functionality found in the dataset function expressions, and more.<br />

You use utility subroutines <strong>to</strong> perform operations such as the following:<br />

• Access data defined in a model.<br />

• Access current state information.<br />

• Interpolate through raw data using standard curve-fitting techniques.<br />

• Evaluate standard functions.<br />

The utility subroutines are divided in<strong>to</strong> the following categories:<br />

• Execution Control <strong>Subroutines</strong><br />

• Data Access <strong>Subroutines</strong><br />

• Unsupported <strong>Subroutines</strong><br />

Execution Control <strong>Subroutines</strong><br />

CONSUB is the only subroutine that can call execution control subroutines. In conjunction with<br />

ANALYS, DATOUT, and MODIFY, you can use CONSUB <strong>to</strong> control an <strong>Adams</strong> simulation.<br />

ANALYS and MODIFY contain the FORTRAN equivalents of interactive commands <strong>to</strong> initiate analysis<br />

and <strong>to</strong> modify the <strong>Adams</strong>/<strong>Solver</strong> dataset, respectively. DATOUT produces output from the simulation(s).<br />

These subroutines are of most value if you want <strong>to</strong> run many simulations on a single dataset or on<br />

variations of that dataset.<br />

Data Access <strong>Subroutines</strong><br />

Subroutine: Does the following:<br />

ANALYS Performs an <strong>Adams</strong> analysis.<br />

DATOUT Outputs all data for the current time step<br />

in<strong>to</strong> the specified output files.<br />

MODIFY Allows execution of any <strong>Adams</strong>/<strong>Solver</strong><br />

commands, except CONTROL and STOP.<br />

The data access subroutines report the current values for system variables, or return static data s<strong>to</strong>red in<br />

a model. User subroutines can use this data <strong>to</strong> define their output quantities.<br />

The following table lists the names and definitions for the data access subroutines:<br />

5

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

Saved successfully!

Ooh no, something went wrong!