HeaderInfoOrComments
add comments for integration
Enhance a classical
INTEGRATION statement by header information by appending the identifier
%INTEGRATION_Header% and the header text
"comment" to the argument list:
The header text will be written in the appropriate
TimestepFile. So, if the
INTEGRATION will be written in the $IntInd$-th column of xyz.timestep, then the header information will appear in a file with the name xyz.timestep.header in the $IntInd$-th line. Header statements can be written as a first line in the .timestep files, however no .timestep.header file will be created, see
TimestepFile_HeaderType.
Example:
begin_timestepfile{"MyFile"}
INTEGRATION(
$time$) = (
%PUBLICVALUE%, [real(
%RealTimeSimulation%)],
%INTEGRATION_Header%, "current simulation time" )
INTEGRATION(
$Wkin$) = (
%INTEGRATION_INT%, [Y
%ind_v(1)%^2+Y
%ind_v(2)%^2+Y
%ind_v(3)%^2],
$MaterialTag$,
%INTEGRATION_Header%, "kinetic energy" )
INTEGRATION(
$mass$) = (
%INTEGRATION_INT%, [Y
%ind_r%],
$MaterialTag$,
%INTEGRATION_Header%, "total mass" )
INTEGRATION(
$Wint$) = (
%INTEGRATION_INT%, [Y
%ind_r%*Y
%ind_CV%*Y
%ind_T%],
$MaterialTag$,
%INTEGRATION_Header%, "internal energy" )
end_timestepfile
This will create the file "MyFile.timestep.header" with the following contents:
current simulation time
kinetic energy
total mass
internal energy
Note: This option always needs to be the
last one in an integration statement.