3.3.1.9. MPCO Recorder

This command is used to construct an MPCO recorder, a whole model recorder that records the response of nodes and elements at every (or some) converged steps in an HDF5 database. HDF5 (Hierarchical Data Format) is designed to store and organize large amounts of data. It was originally developed at the U.S. National Center for Supercomputing Applications, and is now supported by The HDF Group.

The MPCO recorder is developed by ASDEA Software Technology to produce a result database that can be read by the pre- and post-processor STKO (Scientific ToolKit for OpenSees). As the file is an HDF5 database, it can also be read and edited by any other tool that handles HDF5 files, e.g.:

  • HDFView, a browser and editor for HDF5 files.

  • h5py, the Python interface to HDF5 files.

recorder mpco $fileName <-N $nResp1 $nResp2 ...> <-E $eResp1 $eResp2 ...> <-NS $nsResp1 $param1 $nsResp2 $param2 ...> <-R $regionTag> <-T dt $deltaT> <-T nsteps $numSteps>

Argument

Type

Description

$fileName

string

name of the file to which output is sent

$nResp1 $nResp2 …

string

node responses to record (see note 3)

$eResp1 $eResp2 …

string

element responses to record (see note 5)

$nsResp1 $param1 …

string integer

node sensitivity responses to record, each followed by the tag of its sensitivity parameter (see note 4)

$regionTag

integer

record only the nodes and elements of this region Command (optional: default = the whole model). -R can be given more than once to record several regions

$deltaT

float

record only when at least this much time has passed since the last record (optional: default = record every step)

$numSteps

integer

record every numSteps steps (optional: default = record every step)

Note

  1. This command is only available if OpenSees was built with the HDF5 library (the _HDF5 build option), in both the Tcl and the Python interpreter.

  2. The two forms of -T are alternatives. If -T is given more than once, only the last one is used. Note that dt and nsteps are written in lower case.

  3. The node responses are:

    Name

    Description

    displacement

    Translational part of the displacement field

    rotation

    Rotational part of the displacement field

    velocity

    Translational part of the velocity field

    angularVelocity

    Rotational part of the velocity field

    acceleration

    Translational part of the acceleration field

    angularAcceleration

    Rotational part of the acceleration field

    reactionForce

    Translational part of the reaction field

    reactionMoment

    Rotational part of the reaction field

    reactionForceIncludingInertia

    Translational part of the reaction field with inertia terms

    reactionMomentIncludingInertia

    Rotational part of the reaction field with inertia terms

    rayleighForce

    Translational part of the damping force field

    rayleighMoment

    Rotational part of the damping force field

    unbalancedForce

    Translational part of the unbalanced force field

    unbalancedForceIncludingInertia

    Translational part of the unbalanced force field with inertia terms

    unbalancedMoment

    Rotational part of the unbalanced force field

    unbalancedMomentIncludingInertia

    Rotational part of the unbalanced force field with inertia terms

    pressure

    Pore pressure field

    modesOfVibration

    Translational part of the eigenvector fields (all modes are recorded)

    modesOfVibrationRotational

    Rotational part of the eigenvector fields (all modes are recorded)

  4. The node sensitivity responses are:

    Name

    Description

    displacementSensitivity

    Translational part of the displacement sensitivity field

    rotationSensitivity

    Rotational part of the displacement sensitivity field

    velocitySensitivity

    Translational part of the velocity sensitivity field

    angularVelocitySensitivity

    Rotational part of the velocity sensitivity field

    accelerationSensitivity

    Translational part of the acceleration sensitivity field

    angularAccelerationSensitivity

    Rotational part of the acceleration sensitivity field

  5. The element responses depend on the elements, sections and materials of the model. If RES is a valid response:

    • RES records the element response RES. RES must be a valid response of the element.

    • material.RES records the material response RES at each integration point of continuum elements. RES must be a valid response of the materials at the element’s integration points.

    • section.RES records the section response RES at each section of structural elements (trusses, beams, shells, etc.). RES must be a valid response of the sections at the element’s integration points.

    • section.fiber.RES records the material response RES in each fiber of each section of structural elements (beams or shells). RES must be a valid response of the materials of the fibers.

Example 1:

The following example creates the HDF5 database fiber_beams.mpco. It records the node responses displacement, rotation, reactionForce, reactionMoment and modesOfVibration, and the element responses force (forces at the element nodes), section.force (generalized beam forces at each section, in the local coordinate system) and section.fiber.stress (uniaxial stress in each fiber of each section of the elements).

recorder mpco "fiber_beams.mpco" \
   -N displacement rotation reactionForce reactionMoment modesOfVibration \
   -E force section.force section.fiber.stress

Example 2:

As Example 1, but recording only the nodes and elements of region 1 of the model.

recorder mpco "fiber_beams.mpco" \
   -N displacement rotation reactionForce reactionMoment modesOfVibration \
   -E force section.force section.fiber.stress \
   -R 1

Example 3:

As Example 2, but recording a step only if at least 0.01 seconds have passed since the last recorded step.

recorder mpco "fiber_beams.mpco" \
   -N displacement rotation reactionForce reactionMoment modesOfVibration \
   -E force section.force section.fiber.stress \
   -R 1 \
   -T dt 0.01

Code Developed by: Massimo Petracca at ASDEA Software, Italy.