Difference between revisions of "Data after the end"

From FEAP Wiki
Jump to navigation Jump to search
(Created page with "When you want to use a FEAP command in a BATCh block, that in interactive mode would prompt the user for additional data, then you must put that data after the corresponding E...")
 
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
1 1 0.0 10.0 0 0 am 2*pi*f 0  ! USER DATA
1 1 0.0 10.0 0 0 am 2*pi*f 0  ! USER DATA
</pre>
</pre>
The data <code>1 1 0.0 10 0 0 am 2*pi*f</code> in this case will set up propotional load 2 for the time interval <code>[0.0,10.0]</code> to be a sine wave with amplitude <code>am</code> and
The data <code>1 1 0.0 10.0 0 0 am 2*pi*f 0</code> in this case will set up propotional load 2 for the time interval <code>[0.0,10.0]</code> to be a sine wave with amplitude <code>am</code> and
frequency <code>f</code>, assuming that the these (and <code>pi</code>) have already been defined.
frequency <code>f</code>, assuming that the these (and <code>pi</code>) have already been defined; i.e. the second proportional loading factor <math> p_2(t) = a_m\sin(2\pi f t)</math> for <math> t\in[0,10]</math>.


If an indeterminate number of data lines are possible then you can terminate the reading of data using a blank line (FEAP's default single for detecting the end of a command's data).  For example TPLOt uses continuous polling for the data
If an indeterminate number of data lines are possible then you can terminate the reading of data using a blank line (FEAP's default single for detecting the end of a command's data).  For example TPLOt uses continuous polling for the data

Latest revision as of 21:13, 8 June 2021

When you want to use a FEAP command in a BATCh block, that in interactive mode would prompt the user for additional data, then you must put that data after the corresponding END.

For example if you want to use the PROPortional command, then you would do something similar to

BATCh
 PROP,,2
END
1 1 0.0 10.0 0 0 am 2*pi*f 0  ! USER DATA

The data 1 1 0.0 10.0 0 0 am 2*pi*f 0 in this case will set up propotional load 2 for the time interval [0.0,10.0] to be a sine wave with amplitude am and frequency f, assuming that the these (and pi) have already been defined; i.e. the second proportional loading factor for .

If an indeterminate number of data lines are possible then you can terminate the reading of data using a blank line (FEAP's default single for detecting the end of a command's data). For example TPLOt uses continuous polling for the data

BATCh
 TPLOt
END
DISP,2,1 ! USER DATA LINE 1
DISP,2,2 ! USER DATA LINE 2
DISP,4,1 ! USER DATA LINE 3
         ! BLANK LINE

In this example TPLOt will read in three lines of data (to set up time history plots for dofs 1 and 2 at node 2 and dof 1 at node 4). The blank line will signal to FEAP to stop reading data.

If you use multiple commands in a BATCh block that require this type of data, please note that the data lines are read in order. To avoid confusion it is recommended to use multiple batch blocks in such cases.