3.3.1.10. GMSH Recorder

This command is used to construct a GMSH recorder, a whole model recorder that writes the geometry of the model, along with selected responses, in the .msh file format (legacy version 2), for visualization with the gmsh program. The recorder can be used in parallel models (both OpenSeesMP and OpenSeesSP).

recorder gmsh $fileBaseName $respType1 $respType2 ... <eigen $numModes> <-precision $nSD> <eleResponse $arg1 $arg2 ...>

Argument

Type

Description

$fileBaseName

string

base name of the files to which output is sent (see note 1)

$respType

string

nodal response to record: disp, vel, accel, incrDisp, reaction, pressure, unbalancedLoad or mass

$numModes

integer

record the first numModes mode shapes (after an eigen command)

$nSD

integer

number of significant digits written (optional)

$arg1 $arg2 …

list

element response to record, passed to the elements in the same way as for the Element Recorder

Note

  1. The recorder writes several files, named $fileBaseName.$respType.$rank.msh, where $rank is the MPI rank of the processor (always 0 in a sequential analysis). The mesh is written once, the first time the recorder writes, to the file $fileBaseName.mesh.$rank.msh.

  2. eleResponse takes all the arguments that follow it, so it must be the last option.

  3. The type can also be given as GMSH in Tcl.

Example:

The following example records the displacements of the model.

recorder gmsh results disp

The analysis writes the files results.mesh.0.msh, which holds the mesh, and results.disp.0.msh, which holds the nodal displacements. In gmsh, first open the mesh file, then merge the disp file into it to create a post-processing view.

Code Developed by: José A. Abell based on code by Michael H. Scott, Zhu Minjie and fmk.