HyperWorks Solvers

GTCURV

GTCURV

Previous topic Next topic No expanding text in this topic  

GTCURV

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

Subroutine Type

Utility/Data Access

Definition

Evaluate a B-spline or user-written curve created with the Reference_ParamCurve entity.

Use

The function can be called by any user-defined subroutine.

Calling Syntax

Fortran

CALL GTCURV (id, alpha, iord, array, istat)

 

C

c_gtcurv(id, alpha, iord, array, istat)

 

Python

[array, istat] = py_gtcrv(id, alpha, iord)

 

MATLAB

[array, istat] = m_gtcrv(id, alpha, iord)

Input Arguments

[integer] ID

The identifier of the corresponding Reference_ParamCurve.

 

[double precision]ALPHA

The independent parameter alpha at which the curve is to be evaluated.  For B-splines, alpha must satisfy -1 <= alpha <= 1.

For curves defined using CURSUB, alpha must satisfy MINPAR <= alpha <= MAXPAR.

 

[integer] IORD

The variable that specifies the order of the derivative returned by GTCURV as follows:

 

 

IORD

Meaning

 

 

0

Returns the curve coordinate.

 

 

1

Returns the first derivative with respect to alpha.

 

 

2

Returns the second derivative with respect to alpha.

Output Values

[double precision] ARRAY

The array of three elements as shown below:

 

 

IORD

Array First Element

Array Second Element

Array Third Element

 

 

0

x

y

z

 

 

1

GTCURV_1

GTCURV_3

GTCURV_5

 

 

2

GTCURV_2

GTCURV_4

GTCURV_6

 

 

All elements are evaluated at alpha.

 

[int] ISTAT

Variable that indicates the success or the reason for the failure of GTCURV.

See Also:

Data Access Subroutines