MPM Write Energy Output process
The MPMWriteEnergyOutputProcess generates an output file in which the kinetic, potential, strain and total energy of a given model part are written at each time step.
Parameters & Defaults
{
"kratos_module" : "KratosMultiphysics.MPMApplication",
"python_module" : "mpm_write_energy_output_process",
"Parameters" : {
"model_part_name" : "PLEASE_SPECIFY_MODEL_PART_NAME",
"interval" : [0.0, 1e30],
"print_format" : ".8f",
"output_file_settings" : {
"file_name" : "",
"output_path" : "",
"file_extension" : "dat"
}
}
}
model_part_name
String identifying the name of the target ModelPart.
interval
Print the energy of the requested model part if the simulation time is within this interval.
print_format
String identifying the format to be used for printing the energy.
output_file_settings
Defines the settings for the TimeBasesAsciiFileWriterUtility:
{
"file_name" : "",
"output_path" : "",
"file_extension" : "dat"
}
"file_name": name of the output file. If the name is not specified, the file name is<model_part_name>_energy.dat."output_path": path of the output file."file_extension": extension of the output file.
Example
Ouput example:
# Energy model part 'MPMModelPart'
# time potential_energy kinetic_energy strain_energy total_energy
0.0 0.00000000 0.14000000 4.55000000 4.69000000
0.2 0.41700000 1.27500000 13.21320000 14.90520000
0.4 1.20195000 7.48890000 25.98960000 34.68045000
0.6 2.70489915 27.29754000 43.53440000 73.53683915
Source Code
MPMApplication/python_scripts/mpm_write_energy_output_process.py