HyperWorks Solvers

UCOVAR

UCOVAR

Previous topic Next topic No expanding text in this topic  

UCOVAR

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

Subroutine Type

Utility/Data Access

Definition

Used in conjunction with UCOSUB to define the part states in a user-defined constraint.

Use

This function is called by UCOSUB.

Calling Syntax

Fortran

CALL UCOVAR(ID, NPMS, IPMS, NVARS, IVARS)

 

C

c_ucovar(id, npms, ipms, nvars, ivars)

 

Python

py_ucovar(id, ipms, ivars)

 

MATLAB

m_ucovar(id, ipms, ivars)

Input Arguments

[integer] ID

The identifier of the corresponding user defined constraint element
(Constraint_UserConstr) that is invoking UCOSUB.

 

[integer] NPMS

The total number of elements in the array ipms.

 

[integer] IPMS

An array containing part IDs for the variable types in the array IVARS.  Arrays LPMS and IVARS must be of same length.

 

[integer] NVARS

The total number of integer codes in array IVARS.  NVARS must be equal to NPMS.

 

[integer] IVARS

An array containing integer codes to identify the variables involved in the constraint as described below.

 

 

Integer Code

Meaning

 

 

11

Part center of mass X displacement with respect to ground.

 

 

12

Part center of mass Y displacement with respect to ground.

 

 

13

Part center of mass Z displacement with respect to ground.

 

 

111

X component of the axis vector U1 with respect to ground.

 

 

112

Y component of the axis vector U1 with respect to ground.

 

 

113

Z component of the axis vector U1 with respect to ground.

 

 

211

X component of the axis vector U2 with respect to ground.

 

 

212

Y component of the axis vector U2 with respect to ground.

 

 

213

Z component of the axis vector U2 with respect to ground.

 

 

311

X component of the axis vector U3 with respect to ground.

 

 

312

Y component of the axis vector U3 with respect to ground.

 

 

313

Z component of the axis vector U3 with respect to ground.

 

Here U1, U2, and U3 are unit vectors pointing along the positive X, Y, and Z axes of the part principle axes.

Output Values

None.

Example

For an example of UCOVAR, please refer to <install_path>\hwsolvers\usersub.

See Also:

Data Access Subroutines