GET_POST_STATES

Utility/Data Access SubroutineThis subroutine extracts state variables in a MotionSolve model.

Use

This function-style subroutine can be called from within any user written subroutine to extract MotionSolve results for output to a file or further processing for real time animation and plotting.

Format

Fortran Calling Syntax
call GET_POST_STATES(TYPE, ELEM_ID, STATES, NSTATES)
C/C++ Calling Syntax
c_get_post_states(type, id, states, nstates)
Python Calling Syntax
states = py_get_post_states(TYPE, ELEM_ID)
MATLAB Calling Syntax
states = m_get_post_states(TYPE, ELEM_ID)

Attributes

TYPE
[Character]
Select from PART, REQUEST, FLEX_BODY, or POINT_MASS.
ELEM_ID
[integer]
The ID of the element whose states are desired.

Output

STATES
[logical]
NULL when IFLAG = 1, DOUBLE array of size NSTATES when IFLAG = 0.
NSTATES
[logical]
The number of elements in STATES array.

Comments

  1. The table below lists the valid options for TYPE and the size and description of the STATES array, which is returned by MotionSolve.
  2. Type Nstates States
    PART 7 X, Y, Z, Euler parameters (E0, E1, E2, E3)
    POINT_MASS 3 X, Y, Z
    FLEX_BODY 20+nmodes States[0 - 6] = X, Y, Z, E0, E1, E2, E3

    States[7 - 12] =

    States[13 - 18] =

    States[19 - (18+nmodes)] = Modal Participation Factors

    States[19+nmodes] = Strain Energy

    REQUEST 8 Request values.