Data after the end

From FEAP Wiki
Jump to navigation Jump to search

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.