Skip to main content

Curve file

Curve files are used to store tables of data, and are widely used in the LS-DYNA peripheral programs supplied by Oasys. A curve file is a text file with tabs, commas or spaces separating fields.

Curve file​

The format of the file is as follows:

Title
X label <TYPE/FACTOR>;
Y label <TYPE/FACTOR>;
Curve identifier
x0, y1
x1, y1
…
CONTINUE
Title
X label <TYPE/FACTOR>;
Y label <TYPE/FACTOR>;
Curve identifier
x0, y1
x1, y1
…

By default TYPE is undefined and the FACTOR is 1. This is to allow backwards compatibility in that old programs reading curve files would not require any modification: the labels would just give some additional information. Newer versions would be able to read this information and give tighter control over the data.

Unit types​

The current options for TYPE are:

UNDEFINED1ST_MOMENT_AREAANGULAR_ACCELERATION
FORCE2ND_MOMENT_AREAFLOW_RATE
LENGTHVOLUMEFREQUENCY
MASSPER_LENGTHANGULAR_FREQUENCY
TIMEPER_AREAPERIOD
TEMPERATUREPER_VOLUMETHERMAL_EXPANSION
DISPCS_AREATEMPERATURE_GRADIENT
PRESSURECS_AREA_PER_LENGTHIMPULSE
ACCELINERTIAMOMENTUM
WORKDENSITYANGULAR_MOMENTUM
MOMENTAREA_DENSITYDAMPING
STRESSWEIGHT_DENSITYENERGY
FORCE_PER_LENGTHMASS_PER_LENGTHENERGY_DENSITY
MOMENT_PER_LENGTHPER_MASSDEGREE
MOMENT_PER_ROTATIONVELOCITYPERCENT
STRAINROTATION
AREAANGULAR_VELOCITY

The FACTOR is the value by which the data values should be multiplied to convert to SI units (e.g. 0.01 for cm).

Example​

Test curve
Time <TIME>;
Relative acceleration <ACCELERATION/0.001>;
Reference point 1
0, 0
1, 1
2, 4
3, 9
4, 16