Calculate temporally averaged forces on meshes
In in a simulation you have a mesh defined like :
mesh id cad file meshes/plate.stl material m1
The time averaged force on the mesh can be calculated using the
calculate temporal_average command.
The input values are sampled at every simulation timestep, whereas the
average is computed every write_every_time or write_output_timestep
time units. The input is used for calculating the average for the same time.
calculate temporal_average object cad file post/force.txt write_every_time 2.5e-3
the output file force.txt, looks like
TimeStep f_cad[1] f_cad[2] f_cad[3] f_cad[4] f_cad[5] f_cad[6] f_cad[7] f_cad[8] f_cad[9] f_cad[10]
...
40000 0.0274064 -0.0195597 -10.5102 0.00216228 -0.00326896 0.000248442 0 0 0 0
where the first three column after the TimeStep are the three components of
the force acting on the mesh.
See also
example/examples/solver/mesh_handling/evaluate_mesh_force/meshForce.asx