fix external_work/mesh command

Warning

This command is deprecated, please use calculate external_work instead.

Syntax

fix ID group-ID external_work/mesh keyword value mesh_id
  • ID, group-ID are documented in fix command

  • external_work/mesh = style name of this fix command

  • zero or more keyword/value pairs may be appended to args

  • keyword = mode

mode value = mode_value
    mode_value = all or torque_only or force_only
  • mesh_id = ID of the mesh of which the external work is to be computed

Examples

fix 1 all external_work/mesh my_mesh_id

Description

Define a computation that calculates the external work that is performed by a mesh. The external work is defined as the time integral of the scalar product of force with velocity plus the scalar product of torque times angular velocity.

In case the keyword mode is defined with a value other than all only the selected component is integrated, i.e. for force_only and torque_only only the force or the torque is used in the integration, respectively.

If the torque of the mesh shall be taken into account it is mandatory to set the reference_point_torque in the mesh command.

Output info:

This fix calculates a global scalar which contains the value of the external work. This value can be used by any command that uses a global scalar value from a fix as input. See Section_howto 15 for an overview of Aspherix® output options.

Restrictions

None.

Default

None.