GRASUB

ModelingCalculates 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"
  />  

Format

Fortran Calling Syntax
SUBROUTINE GRASUB (ID, TIME, PAR, NPAR, IFLAG)
C/C++ Calling Syntax
void STDCALL GRASUB (int *id, double *time, double *par, int *npar, int *iflag)
Python Calling Syntax
def GRASUB(id, time, par, npar, iflag)
MATLAB Calling Syntax
function GRASUB(id, time, par, npar, iflag)

Attributes

ID
[integer]
The graphic element identifier.
TIME
[double precision]
The current simulation time.
PAR
[double precision]
An array that contains the constant arguments from the list provided in the user defined statement.
NPAR
[integer]
The number of entries in the PAR array.
IFLAG
[logical]
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.

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(1,2,3)
    return

Comments

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