HMIN_curve_writesources()

Writes a curve to HyperMesh.

Syntax

void HMIN_curve_writesources(int kind1, char *path1, char *type1, char *req1, char *comp1, int kind2, char *path2, char *type2, char *req2, char *comp2);

Type

HyperMesh hminlib Function

Description

Writes a curve to HyperMesh.

Inputs

kind1
Type of source for x data.
Set to 0, if the source is from a file.
Set to 1, if the source is from a math expression.
path1
File path and name, or math expression for x data.
If kind1 = 0, this indicates the path of the file.
If kind1 = 1, this includes the math expression (see the Math Functions chapter for math expression syntax).
type1
The type of the x component (may be set to "").
If kind1 = 1, this must be set to "".
req1
The name of the x request (may be set to "").
If kind1 = 1, this must be set to "".
comp1
The name of the x request component (may be set to "").
If kind1 = 1, this must be set to "".
kind2
The type of source for y data.
Set to 0, if the source is from a file.
Set to 1, if the source is from a math expression.
path2
File path and name, or math expression for y data.
If kind2= 0, this indicates the path of the file.
If kind2= 1, this includes the math expression (see the Curve Mathematics book for math expression syntax).
type2
The type of the y component (may be set to "").
If kind2 = 1, this must be set to "".
req2
The name of the y request (may be set to "").
If kind2 = 1, must be set to "".
comp2
The name of the y request component (may be set to "").
If kind2 = 1, this must be set to "".

Example

Curve sources are used to define x-y curves based upon data files that can be read by the HyperMesh curve reader or upon math expressions (see the Curve Mathematics book). The type, request, and component refer to the hierarchy used to describe data where type is at the uppermost level and the component is at the lowest level. A file that contains displacements for nodes may be described as:

Type = displacements.

Request = Node ID for the given type (displacements).

Component = x, y, or z displacement value for the request.

Errors

None.