HyperWorks Solvers

GRASUB

GRASUB

Previous topic Next topic No expanding text in this topic  

GRASUB

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

Subroutine Type

Modeling

Definition

Calculates node positions for a user-defined graphics element.

Use

<Post_Graphic

    id                  = "90003"

    type                = "UserGra"

    ref_marker_id       = "90000003"

    usrsub_param_string = "USER(599)"

    usrsub_dll_name     = "NULL"

    usrsub_fnc_name     = "GRASUB"

 />

Calling Syntax

Fortran

SUBROUTINE GRASUB (ID, TIME, PAR, NPAR, IFLAG)

 

C

void STDCALL GRASUB (int *id, double *time, double *par, int *npar, int *iflag)

 

Python

def GRASUB(id, time, par, npar, iflag)

 

MATLAB

function GRASUB(id, time, par, npar, iflag)

Input Arguments

[integer] ID

The graphic element identifier.

 

[double precision] TIME

The current simulation time.

 

[double precision] PAR

An array that contains the constant arguments from the list provided in the user defined statement.

 

[integer] NPAR

The number of entries in the PAR array.

 

[logical] IFLAG

A Boolean variable that MotionSolve sets to true when it needs to know which functions CFFSUB depends on.  When the flag is set to false, the values of the user-defined expressions are computed.

Output Values

None.

Example

def GRASUB(id, time, par, npar, iflag):

    errflg = py_add_gra_node(1)

    errflg = py_add_gra_node(2)

    errflg = py_add_gra_node(3)

    errflg = py_add_gra_tria(123)

    return

Comments

1.GRASUB can only be defined for Post_Graphic with type=”UserGra”.

See Also:

Modeling Subroutines