HyperWorks Solvers

GET_POST_STATES

GET_POST_STATES

Previous topic Next topic No expanding text in this topic  

GET_POST_STATES

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Subroutine Type

Utility/Data Access

Definition

This 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.

Calling Syntax

Fortran

call GET_POST_STATES(TYPE, ELEM_ID, STATES, NSTATES)

 

C

c_get_post_states(type, id, states, nstates)

 

Python

states = py_get_post_states(TYPE, ELEM_ID)

 

MATLAB

states = m_get_post_states(TYPE, ELEM_ID)

Input Arguments

[CHARACTER] TYPE

Select from PART, REQUEST, FLEX_BODY, or POINT_MASS.

 

[integer] ELEM_ID

The ID of the element whose states are desired.

Output Values

[logical] STATES

NULL when IFLAG = 1, DOUBLE array of size NSTATES when IFLAG = 0.

 

[logical] NSTATES

The number of elements in STATES array.

Complete Definition

The table below lists the valid options for TYPE and the size and description of the STATES array, which is returned by MotionSolve.

 

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] = get_posts_states_img1

States[13 - 18] = get_posts_states_img2

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

States[19+nmodes] = Strain Energy

 

REQUEST

8

Request values.

See Also:

Data Access Subroutines