*SetCurve() - Parametric 2D

Sets the values associated with a 2D parametric curve.

Syntax

*SetCurve(crv_name,Block-U,Block-X,Block-Y,LIN_EXTRAP)
Block-U, Block-X and Block-Y can be of the following three types:
FILE: "[path]/filename", datatype, request, component
MATH: expr
VALUE: numpts, v1, v2, v3, ..., vn

Arguments

crv_name
The variable name of an existing curve of type Paremetric 2D.
Data type: varname
LIN_EXTRAP
This flags the solver to linearly extrapolate beyond the final point in the curve.
FILE
Indicates that the data for the U, X, or Y component of the curve comes from a file.
"[path]/filename"
Filename for the U, X, or Y component of the curve.
Data type: filename
datatype
Specifies the type of data from a data file for the U, X, or Y component of the curve.
Data type: string
request
Specifies a request from a data file for the U, X, or Y component of the curve.
Data type: string
component
Specifies a component of a request from a data file for the U, X, or Y component of the curve.
Data type: string
MATH
Indicates that the U, X, or Y component of the curve is an expression.
expr
A mathematical expression for the U, X, or Y component of the curve.
Data type: NumericVector
VALUE
Indicates that the data for the U, X, or Y component of the curve is specified as discrete values.
numpts
An integer that indicates the number of points in the U, X, or Y component of the curve.
Data type: integer
v1, v2, v3,..., vn
Discrete values for the U, X, or Y component of the curve.
Data type: real

Example

*SetCurve(crv_1, MATH, 1:100:1, MATH, sin(crv_1.u), MATH, cos(crv_1.u), LIN_EXTRAP )

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Comments

The X and Y components of a curve can be of different types. For example, the X component can be a mathematical expression while the Y component can refer to a plot file.

The length of each vector of curve data must be the same.