There are two types of Utility subroutines:
• | Analysis control subroutines, which are built-in subroutines provided by MotionSolve that allow a user-written subroutine to perform various types of analysis, generate output and modify the model defined in the XML input file. |
• | Data Access subroutines, which are built-in subroutines provided by MotionSolve that allow a user-written subroutine to access model parameter or information state. |
These are listed below with a brief description of each. See each subroutine’s documentation for more details on its use.
Name |
Purpose |
Performs a specified MotionSolve analysis. |
|
Writes simulation information to all the output files. |
|
Allows modification of a model attribute. |
Name |
Purpose |
Returns aggregate mass data for a set of bodies. |
|
Uses the AKIMA method to interpolate values defined in a REFERENCE_SPLINE element. |
|
Evaluates a BITSTOP function (gap element). |
|
Returns the mass, c.g., and inertia tensor for a body or the entire model. |
|
Evaluates a CHEBYSHEV polynomial function. |
|
Uses the cubic spline method to interpolate values defined in a REFERENCE_SPLINE element. |
|
Outputs error messages from user subroutines during MotionSolve execution. |
|
Uses the FITSPL method to interpolate values defined in a REFERENCE_SPLINE element. |
|
SLSQP optimizer is a sequential least squares programming algorithm for nonlinear, constrained gradient-based optimization |
|
Evaluates a Fourier Cosine series. |
|
Evaluates a Fourier Sine series. |
|
Used to extract rigid body contact results. |
|
Returns the data defined in a full REFERENCE_MATRIX element. |
|
Returns the gravitational acceleration specified in the FORCE_ GRAVITY modeling element. |
|
Returns information about a REFERENCE_MATRIX element. |
|
Used to extract the number of rigid body contacts during the simulation. |
|
Extracts state variables in a MotionSolve model. |
|
Returns the data from a sparse REFERENCE_MATRIX element. |
|
Returns the CPU time used up during MotionSolve execution. |
|
Returns the mode that MotionSolve is in – interactive or batch. |
|
Returns the integrator type during a MotionSolve run. |
|
Returns the analysis mode during MotionSolve execution. |
|
Returns the active linear solver. |
|
Returns the current MotionSolve simulation time. |
|
Returns the MotionSolve version number. |
|
Returns values stored in an IC REFERENCE_ARRAY entity. |
|
Returns the compliance matrix between “N” REFERENCE_MARKERS in a MotionSolve model. |
|
Returns the coordinates of a point on a B-spline or user-written curve created with the REFERENCE_SPLINE entity. |
|
Returns the base-name of the MotionSolve input XML file. |
|
Returns the base-name of the MotionSolve output file. |
|
Retrieves values stored in a REFERENCE_STRING entity. |
|
Returns model UNITS information from MotionSolve. |
|
Evaluates a Haversine function. |
|
Models a contact force or collision phenomena. |
|
Converts an integer to a string. |
|
Retrieves model data specified in the XML input file. |
|
Retrieves the mode numbers and the corresponding mode frequencies of a BODY_FLEXIBLE element. |
|
Modifies model data specified in the XML input file. |
|
Returns the number of modal coordinates corresponding in a BODY_FLEXIBLE element. |
|
Evaluates a generic polynomial. |
|
Used in conjunction with SPLINE_READ. It is used to store data read by SPLINE_READ within MotionSolve. |
|
Returns the interpolated values for data in a REFERENCE_SPLINE element, with interpolation being performed by a fifth order spline. |
|
Convert rotational coordinates between the various supported representations. |
|
Loads a model defined in a MotionSolve XML input file into memory and makes it the current model. |
|
Returns the user-defined work array data. |
|
Converts a double precision variable to a string. |
|
Saves the current model from a user-written CONSUB. |
|
Saves the user-defined work array data. |
|
Modifies the attribute accessed by the last MODFNC or MODSET call. |
|
Instructs the solver to call the user-written subroutine discretely and only after successful integration steps. |
|
Used in a GSESUB to specify the implicit, algebraic equations in the CONTROL_STATEEQN element. |
|
Used in a GSESUB to specify the nonzero entries of the Jacobian matrix associated with the GSE XX, XU, YX and YU matrices. |
|
Evaluates a Simple Harmonic Function. |
|
Evaluates a Step function via cubic polynomial approximation. |
|
Evaluates a Step function via polynomial of the fifth order approximation. |
|
Converts string data into double or double array. |
|
Converts string data into integer or integer array. |
|
Returns mass data for one set of bodies minus another set of bodies. |
|
Returns state dependent information to a user subroutine. |
|
Returns state dependent information to a user subroutine. |
|
Converts translational coordinates between the various supported representations. |
|
Returns the time corresponding to the last successful simulations step. |
|
Specifies the MARKER states used by UCOSUB to define a user defined constraint. |
|
Specifies the PART states used by UCOSUB to define a user defined constraint. |
|
Outputs user messages during MotionSolve execution. |