ARYVAL

The ARYVAL function returns component comp of ARRAY/id. Depending on the definition of ARRAY/id, this may be a constant that you defined in the Adams Solver (FORTRAN) dataset, an input to an LSE, GSE, or TFSISO, a state variable defined by an LSE, GSE, or TFSISO, or an output from an LSE, GSE, or TFSISO.

Format

ARYVAL (id, comp)

Arguments

 
id
The identifier of the array whose data is being requested.
comp
An integer that specifies the component of the array to be returned.

Examples

ARRAY/17, NUM=11.465,2.321
SFORCE/19, ROT, I=23, J=11
, FUNCTION=-ARYVAL(17,1)*(AZ(23,11)-ARYVAL(17,2))
This example illustrates how a value defined in an ARRAY statement can be accessed using the ARYVAL function.
LSE/1, X=1, U=2, Y=3, A=11, B=12, C=13, D=14
This statement defines a set of linear state equations. The A, B, C, and D matrices for this LSE are defined by matrices 11-14.
SFORCE/6, ROT, I=23, J=11, FUNCTION=ARYVAL(3,2)
The second output of the LSE is used to define a torque acting on the system.
See other System element available.