REPORTER 22.1

Example Program: Extracting the Smallest Timesteps (Text Output)

Example program: Extracting the smallest timesteps (Text output)

These programs/scripts are designed to extract from the OTF file the 5 elements with the smallest timesteps, and write out the data as text to the standard output. They also output the smallest timestep as a REPORTER variable called TIMESTEP . Note that these programs/scripts are only simple examples and as such don't have all the necessary error checking that should be included.

They work by searching the OTF file for the text string "100 smallest timesteps" which appears towards the end of the model initialization section, and then reading in relevant element data from this list. An example of this section of an OTF file is shown below. The one argument for this program/script is the OTF filename (for example tube2.otf).

 The LS-DYNA time step size should not exceed 0.133E-05
 to avoid contact instabilities. If the step size is
 bigger then scale the penalty of the offending surface.
       0 t 0.0000E+00 dt 0.00E+00 flush i/o buffers


 100 smallest timesteps
 ----------------------
 element                       timestep
 shell     16620               0.66873E-06
 shell     16619               0.66873E-06
 shell     16612               0.66873E-06
 shell     16611               0.66873E-06
 shell     16572               0.66873E-06
 shell     16571               0.66873E-06
 shell     16564               0.66873E-06
 shell     16563               0.66873E-06
 shell     16520               0.66873E-06
 shell     16519               0.66873E-06
 shell     16512               0.66873E-06
 shell     16511               0.66873E-06
 shell     16504               0.66873E-06
 shell     16503               0.66873E-06
 shell     16472               0.66873E-06

Example programs to extract the data are shown in 4 languages: