HyperWorks Solvers

Modeling Subroutines

Modeling Subroutines

Previous topic Next topic No expanding text in this topic  

Modeling Subroutines

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

Modeling subroutines are user-written subroutines that allow you define the run-time behavior of a modeling element via a user subroutine. Modeling subroutines are used by various modeling entities, like forces and motions, and other elements directly defined in your multi-body mechanical system.

These are listed below with a brief description of each.  See each subroutine’s documentation for more details on its use.

Name

Purpose

ARYSUB

Calculates values for a user-defined input REFERENCE_ARRAY element.

CFFSUB

Calculates friction forces for the FORCE_CONTACT element.

CNFSUB

Calculates normal forces for the FORCE_CONTACT element.

CONTACTPOST

Used to extract rigid body contact results.

COUSUB/COUXX/COUXX2

Specifies the constraint underlying a user-defined CONSTRAINT_COUPLER and its 1st / 2nd partial derivative matrices.

CURSUB

Defines a user-defined parametric, 3D curve.

DIFSUB

Defines a user-defined differential equation.

DMPSUB

Defines user-defined damping in a flexible body.

FIESUB

Defines the six component forces/torques and their derivatives for a user-defined FORCE_FIELD entity.

GCOSUB

Specifies the constraint equation for a user-defined CONSTRAINT_GENERAL element.

GFOSUB

Calculates the forces  and torques for a FORCE_VECTOR_TWOBODY element.

GRASUB

Calculates node positions for a user-defined graphics element.

GSESUB/GSEXX/GSEXU /GSEYX/GSEYU

Defines the governing equations for a CONTROL_STATEEQN element and its XX, XU, YX, YU partial derivative matrices.

MARKER_READ

Inputs a user-defined marker element.

MATRIX_READ

Inputs a user-defined matrix element.

MESSAGE_SUB

Generates a customized message file containing solver messages.

MFOSUB

Used to calculate the scale factor for a modal force entity.

MOTSUB

Defines a displacement, velocity, or acceleration constraint for a CONSTRAINT_MOTION entity.

POST_SUB

A user written subroutine that may be used to generate non-standard output files.

PTdSFSUB

Computes the normal and friction force for a Force_PTdSF entity.

RELSUB

Reloads user-data written using SAVSUB.

REQSUB

Computes outputs for a user defined request element.

SAVSUB

Saves user-data written data to be loaded using RELSUB.

SENSUB

Detects when a SENSOR_EVENT has become active.

SEVSUB

Evaluates an expression when a SENSOR_EVENT has become active.

SFOSUB

Computes the force or torque associated with a FORCE_SCALAR_TWOBODY entity.

SPLINE_READ

Read x, y, and optionally z, data from a file for use with a REFERENCE_SPLINE element.

STRING_READ

Returns a string that is associated with a REFERENCE_STRING element.

SURSUB

Defines a parametrically defined REFERENCE_SURFACE element.

TUNSUB

Allows you to modify certain solver parameters during a simulation.

UCOSUB

Calculates the constraint value and its derivatives for a user defined CONSTRAINT_USERCONSTR element.

VARSUB

Calculates a state or time dependent algebraic value for a REFERENCE_VARIABLE element.

VFOSUB

Computes the translational force components for a FORCE_ VECTOR_TWOBODY entity.

VTOSUB

Computes the moment components for a FORCE_ VECTOR_TWOBODY entity.

YFOSUB

Calculates the vector force/torque between two bodies from its associated general state equations.