Skip to content

E.2 Logfile Variables

As discussed in Logfile, there are different category or classes of log variables. The following sections lists the available variables.

Node_Data Class

The node_data class defines a set of nodal variables. The data is stored for each node that is listed in the item list of the node_data element or for all nodes if no list is defined.

For example, to store the current nodal positions of all nodes, use the following _node_data _element:

<node_data data="x;y;z"></node_data>

You can store the total nodal displacement for nodes 1 through 100, and all even numbered nodes 200 through 400 as follows:

<node_data data="ux;uy;uz">1:100:1,200:400:2</node_data>

Face_Data Class

The face_data class defines a set of surface variables. This item requires the surface attribute, which defines the surface that will be used to extract the data from. The surface must be defined in the Mesh section. The data is stored for each surface facet that is listed in the item list, or for all facets of the surface if no list is defined.

Example:

This example stores the contact gap and contact pressure of all the facets of surface “FacetOnFacetSliding1_primary”. The surface is defined in the Mesh section.

<logfile>
  <face_data data="contact gap;contact pressure" surface="FacetOnFacetSliding1_primary"/>
</logfile> 

Element_Data Class

The element_data class defines a set of element variables. The data is stored for each element that is listed in the item list of the element_data element or for all nodes if no list is defined. Note that the actual value is the average over the element's integration points values (if applicable).

For example, to store the (average) Cauchy stress for all elements, define the following data element:

<element_data data="sx;sy;sz;sxy;syz;sxz" name="element stresses"> </element_data>

Domain Data Class

The domain_data_class defines variables that are calculated on an entire domain. The variables are often quantities integrated over the entire domain.

Surface Data Class

The _surface_data _class defines variables that are calculated over an entire surface.

Rigid_Body_Data Class

The rigid_body_data class defines a set of variables for each rigid body. The data is stored for each rigid body that is listed in the item list of the rigid_body_data element or for all rigid bodies if no list is defined. The following variables are defined. Note that the item referenced in the item list is the material number of the rigid body.

For example, to store the rigid body reaction force of rigid body 2 and 4 add the following data element. Note that the 2 and 4 refer to the rigid body material number as defined in the Material section of the input file:

<rigid_body_data data="Fx;Fy;Fz">2,4</rigid_body_data>

Rigid_Connector_Data Class

The rigid_connector_data class defines a set of variables for each rigid joint or rigid connector. The data is stored for each rigid joint or rigid connector that is listed in the item list of the rigid_connector_data element or for all rigid connectors if no list is defined. Note that the item referenced in the item list is the rigid connector number in the order in which rigid connectors appear in the input file.

For example, to store the reaction forces and moments at rigid joints 2 and 4 add the following data element:

<rigid_connector_data data="RCFx;RCFy;RCFz;RCMx;RCMy;RCMz">2,4</rigid_connector_data>

The rigid connector translation and rotation variables return relative motions of the rigid bodies connected by rigid joints and other rigid connectors (Section Rigid Connectors). The rotation components represent the components of a vector whose direction is along the axis of rotation, and whose magnitude is the (counter-clockwise) angle of rotation. These relative motions are calculated as the motion of body_b relative to body_a, expressed in the local Cartesian basis of body_a, whose initial origin is at_ joint_origin_. This Cartesian basis (which generally moves with body_a) has its first axis along_ rotation_axis_ (for revolute and planar joints) or translation_axis (for prismatic joints) or joint_axis (for cylindrical joints); the second axis is along the transverse_axis (for revolute, prismatic and cylindrical joints) or translation_axis_1 (for planar joints). For spherical joints, springs, dampers, angular dampers and contractile forces, the axes are always aligned with the global Cartesian basis.

For springs, dampers and contractile forces, the returned translation components represent the relative position vector between insertion points on body_b and body_a. The magnitude of this vector represents the distance between those points.

Model Data Class

This category encompasses variables that are not necessarily tied to specific components of a model.