FEDEM Solver  R8.0
Source code of the dynamics solver
Data Types | Functions/Subroutines | Variables
savemodule Module Reference

Module with subroutines for saving of time history results. More...

Data Types

type  headerid
 Variable- and item group indices for response data files. More...
 

Functions/Subroutines

subroutine writeitgref (iFile, itemGroup)
 Writes an item group reference to the file header. More...
 
subroutine, public initiatesavemodule ()
 Initializes the solver result database file. More...
 
subroutine, public writesolverheaders (cResponseFiles, mech, control, modes, bufRat, neq, writeAsDouble, ierr, modelFile)
 Administers writing of results database headers. More...
 
subroutine, public flushresultfiles (ierr)
 Flushes the results database file(s) to disk. More...
 
subroutine, public closeresultfiles (haveData, ierr)
 Closes the results database file(s). More...
 
subroutine, public writesolverdb1 (sys, triads, sups, writeAsDouble, ierr)
 Administers writing of primary response results to database file. More...
 
subroutine, public writesolverdb2 (sys, mech, control, scaleTo, eta, ws, writeAsDouble, ierr)
 Administers writing of secondary response results to database file. More...
 
subroutine, public writesolverdb5 (sys, triads, sups, masses, ierr)
 Administers writing of frequency response results to database file. More...
 
logical function insertidmap (iVal, iMap, nId, id)
 Helper function inserting an integer pair into a map. More...
 
subroutine writedofig (itemGroup, jDof, cIG)
 Writes an item group reference for a joint or triad DOF. More...
 
subroutine writesupelheader1 (respDB, header, supel, nBits, ierr)
 Writes primary results database file header for a superelement. More...
 
subroutine writesupelheader2 (respDB, header, supel, nBits, includePosMat, ierr)
 Writes secondary results database file header for a superelement. More...
 
subroutine writeuserdefelheader (respDB, header, elm, nBits)
 Writes results database file header for a user-defined element. More...
 
subroutine writetriadheader1 (respDB, header, triad, nBits)
 Writes primary results database file header for a triad. More...
 
subroutine writetriadheader2 (respDB, header, triad, nBits, includePosMat, ierr)
 Writes secondary results database file header for a triad. More...
 
subroutine writespringelementheader (respDB, header, spring, nBits, ierr)
 Writes results database file header for an axial spring. More...
 
subroutine writespringheader (respDB, header, spring, sDof, nBits, ierr)
 Writes results database file header for a spring. More...
 
subroutine writeaxialdamperheader (respDB, header, damper, nBits, ierr)
 Writes results database file header for an axial damper. More...
 
subroutine writedamperheader (respDB, header, damper, dDof, nBits, ierr)
 Writes results database file header for a damper. More...
 
subroutine writefrictionheader (respDB, header, friction, jointDof, nBits, ierr)
 Writes results database file header for a friction. More...
 
subroutine writeforceheader (respDB, header, force, nBits)
 Writes results database file header for an external force. More...
 
subroutine writejointheader (respDB, header, joint, forces, motions, nBits, ierr)
 Writes results database file header for a joint. More...
 
subroutine writecontactheader (respDB, header, cElem, nBits, ierr)
 Writes results database file header for a contact element. More...
 
subroutine writetireheader (respDB, header, tire, nBits, ierr)
 Writes results database file header for a tire. More...
 
subroutine writeengineheader (respDB, header, engine)
 Writes results database file header for a general function (engine). More...
 
subroutine writecontrolheader (respDB, header, ctrl)
 Writes results database file header for the control system. More...
 
subroutine writemechanismheader (respDB, header, mech, neq)
 Writes results database file header for the mechanism. More...
 
subroutine writewindturbineheader (respDB, turbine)
 Writes results database file header for a wind turbine. More...
 
subroutine writetriaddb1 (respDB, triad, writeAsDouble, ierr)
 Writes primary variables for a triad to results database. More...
 
subroutine writetriaddb2 (respDB, triad, writeAsDouble, ierr)
 Writes secondary variables for a triad to results database. More...
 
subroutine writetriadforcesdb (respDB, triad, ierr)
 Writes some force variables for a triad to results database. More...
 
subroutine writesupeldb1 (respDB, supel, writeAsDouble, ierr)
 Writes primary variables for a superelement to results database. More...
 
subroutine writesupeldb2 (respDB, supel, masses, sysMass, sysCG, sysVb, sysCB, writeAsDouble, ierr)
 Writes secondary variables for a superelement to results database. More...
 
subroutine writeuserdefeldb (respDB, elm, writeAsDouble, ierr)
 Writes results for a user-defined element to results database file. More...
 
subroutine writespringdb (respDB, spring, writeAsDouble, ierr)
 Writes results for a spring to results database file. More...
 
subroutine writedamperdb (respDB, damper, writeAsDouble, ierr)
 Writes results for a damper to results database file. More...
 
subroutine writefrictiondb (respDB, friction, writeAsDouble, ierr)
 Writes results for a friction to results database file. More...
 
subroutine writeforcedb (respDB, force, writeAsDouble, ierr)
 Writes results for an external force to results database file. More...
 
subroutine writejointdb (respDB, joint, forces, motions, writeAsDouble, ierr)
 Writes results for a joint to results database file. More...
 
subroutine writecontactdb (respDB, cElem, writeAsDouble, ierr)
 Writes results for a contact element to results database file. More...
 
subroutine writetiredb (respDB, tire, scaleTo, sysMass, sysCG, writeAsDouble, ierr)
 Writes results for a tire to results database file. More...
 
subroutine writeenginedb (respDB, engine, ierr)
 Writes results for a general function to results database file. More...
 
subroutine writecontroldb (respDB, ctrl, ierr)
 Writes results for the control system to results database file. More...
 
subroutine writemechanismdb (respDB, mech, sys, posCG, posCB, sysVB, ierr)
 Writes results for the mechanism to results database file. More...
 

Variables

type(rdbtype), save, public res1db
 File for primary response variables. More...
 
type(rdbtype), save, public res2db
 File for secondary response variables. More...
 
type(rdbtype), save, public modedb
 File for modal data. More...
 
type(rdbtype), save, public ctrldb
 File for control system data. More...
 
type(rdbtype), save, public freqdb
 File for frequency domain response variables. More...
 
integer, parameter nvarcti_p = 100
 Number of CTI variables in debug mode. More...
 
integer, parameter max_ude_p = 100
 Max. user-defined element variables. More...
 

Detailed Description

Module with subroutines for saving of time history results.

This module contains a set of results database file containers for the FEDEM Dynamics Solver, and a collection of subroutines for writing time history results data for the various object types of a FEDEM mechanism to the results database.

Function/Subroutine Documentation

◆ closeresultfiles()

subroutine, public savemodule::closeresultfiles ( logical, dimension(5), intent(out)  haveData,
integer, intent(out)  ierr 
)

Closes the results database file(s).

Parameters
[out]haveDataFlags telling whether each file have any data or not
[out]ierrError flag
Author
Knut Morten Okstad
Date
September 2000
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flushresultfiles()

subroutine, public savemodule::flushresultfiles ( integer, intent(out)  ierr)

Flushes the results database file(s) to disk.

Parameters
[out]ierrError flag
Author
Knut Morten Okstad
Date
January 2003
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initiatesavemodule()

subroutine, public savemodule::initiatesavemodule

Initializes the solver result database file.

Author
Knut Morten Okstad
Date
4 Feb 2008
Here is the call graph for this function:
Here is the caller graph for this function:

◆ insertidmap()

logical function savemodule::insertidmap ( integer, intent(in)  iVal,
integer, dimension(:,:), intent(inout)  iMap,
integer, intent(inout)  nId,
integer, intent(out)  id 
)

Helper function inserting an integer pair into a map.

Parameters
[in]iValThe first (key value) integer of the pair to insert
iMapThe integer map array
nIdCurrent size of the map
[out]idThe second value of the inserted integer pair

The non-zero integer value iVal is mapped into an integer value id in the range [1,nId], where nId is the number of distinct values. Returns .true. unless the value is already in the mapping. If the provided array is too small, the variable id is set to -1.

Author
Knut Morten Okstad
Date
30 Apr 2002
Here is the caller graph for this function:

◆ writeaxialdamperheader()

subroutine savemodule::writeaxialdamperheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(dampertype), intent(in)  damper,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for an axial damper.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]damperThe axial damper to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writecontactdb()

subroutine savemodule::writecontactdb ( type(rdbtype), intent(inout)  respDB,
type(contactelementtype), intent(in)  cElem,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)
private

Writes results for a contact element to results database file.

Parameters
respDBFile for secondary response variables
[in]cElemThe contact element to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writecontactheader()

subroutine savemodule::writecontactheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(contactelementtype), intent(in)  cElem,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)
private

Writes results database file header for a contact element.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]cElemThe contact element to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writecontroldb()

subroutine savemodule::writecontroldb ( type(rdbtype), intent(inout)  respDB,
type(controltype), intent(in)  ctrl,
integer, intent(out)  ierr 
)

Writes results for the control system to results database file.

Parameters
respDBFile for secondary response variables
[in]ctrlControl system data
[out]ierrError flag
Here is the caller graph for this function:

◆ writecontrolheader()

subroutine savemodule::writecontrolheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(controltype), intent(in)  ctrl 
)

Writes results database file header for the control system.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]ctrlControl system data
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writedamperdb()

subroutine savemodule::writedamperdb ( type(rdbtype), intent(inout)  respDB,
type(damperbasetype), intent(in)  damper,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for a damper to results database file.

Parameters
respDBFile for secondary response variables
[in]damperThe damper to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writedamperheader()

subroutine savemodule::writedamperheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(damperbasetype), intent(in)  damper,
integer, intent(in)  dDof,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for a damper.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]damperThe damper to write file header for
[in]dDofLocal DOF index
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writedofig()

subroutine savemodule::writedofig ( integer, intent(in)  itemGroup,
integer, intent(in), optional  jDof,
character(len=*), intent(in), optional  cIG 
)

Writes an item group reference for a joint or triad DOF.

Parameters
[in]itemGroupItem group ID
[in]jDofLocal DOF index
[in]cIGItem group name tag

The beginning of the item group definition for a DOF configuration is written to the item group definition section of the results file header, and a reference to it is written to the associated data section.

Author
Knut Morten Okstad
Date
30 Apr 2002
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeenginedb()

subroutine savemodule::writeenginedb ( type(rdbtype), intent(inout)  respDB,
type(enginetype), intent(in)  engine,
integer, intent(out)  ierr 
)

Writes results for a general function to results database file.

Parameters
respDBFile for secondary response variables
[in]engineThe general function to write result variables for
[out]ierrError flag
Here is the caller graph for this function:

◆ writeengineheader()

subroutine savemodule::writeengineheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(enginetype), intent(in)  engine 
)

Writes results database file header for a general function (engine).

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]engineThe general function to write file header for
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeforcedb()

subroutine savemodule::writeforcedb ( type(rdbtype), intent(inout)  respDB,
type(forcetype), intent(in)  force,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for an external force to results database file.

Parameters
respDBFile for secondary response variables
[in]forceThe external force to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writeforceheader()

subroutine savemodule::writeforceheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(forcetype), intent(in)  force,
integer, intent(in)  nBits 
)

Writes results database file header for an external force.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]forceThe external force to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writefrictiondb()

subroutine savemodule::writefrictiondb ( type(rdbtype), intent(inout)  respDB,
type(frictiontype), intent(in)  friction,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for a friction to results database file.

Parameters
respDBFile for secondary response variables
[in]frictionThe friction to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writefrictionheader()

subroutine savemodule::writefrictionheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(frictiontype), intent(in)  friction,
integer, intent(in)  jointDof,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for a friction.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]frictionThe friction to write file header for
[in]jointDofLocal DOF index
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeitgref()

subroutine savemodule::writeitgref ( integer, intent(in)  iFile,
integer, intent(in)  itemGroup 
)
private

Writes an item group reference to the file header.

Parameters
[in]iFileFile unit number to write to
[in]itemGroupItem group ID
Here is the caller graph for this function:

◆ writejointdb()

subroutine savemodule::writejointdb ( type(rdbtype), intent(inout)  respDB,
type(masterslavejointtype), intent(in)  joint,
type(forcetype), dimension(:), intent(in)  forces,
type(motiontype), dimension(:), intent(in)  motions,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for a joint to results database file.

Parameters
respDBFile for secondary response variables
[in]jointThe joint to write result variables for
[in]forcesAll external forces in the model
[in]motionsAll prescribed motions in the model
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writejointheader()

subroutine savemodule::writejointheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(masterslavejointtype), intent(in)  joint,
type(forcetype), dimension(:), intent(in)  forces,
type(motiontype), dimension(:), intent(in)  motions,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for a joint.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]jointThe joint to write file header for
[in]forcesAll external forces in the model
[in]motionsAll prescribed motions in the model
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writemechanismdb()

subroutine savemodule::writemechanismdb ( type(rdbtype), intent(inout)  respDB,
type(mechanismtype), intent(in)  mech,
type(systemtype), intent(in)  sys,
real(dp), dimension(3), intent(in)  posCG,
real(dp), dimension(3), intent(in)  posCB,
real(dp), intent(in)  sysVB,
integer, intent(out)  ierr 
)

Writes results for the mechanism to results database file.

Parameters
respDBFile for secondary response variables
[in]mechMechanism components of the model
[in]sysSystem level model data
[in]posCGCentre of gravity for the mechanism
[in]posCBCentre of buoyancy for the mechanism
[in]sysVbBuoyancy volume for the mechanism
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writemechanismheader()

subroutine savemodule::writemechanismheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(mechanismtype), intent(in)  mech,
integer, intent(in)  neq 
)

Writes results database file header for the mechanism.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]mechMechanism components of the model
[in]neqNumber of equations (system vector dimension)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesolverdb1()

subroutine, public savemodule::writesolverdb1 ( type(systemtype), intent(in)  sys,
type(triadtype), dimension(:), intent(in)  triads,
type(supeltype), dimension(:), intent(in)  sups,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Administers writing of primary response results to database file.

Parameters
[in]sysSystem level data
[in]triadsArray of all triad objects
[in]supsArray of all superelement objects
[in]writeAsDoubleFlag for writing double vs. single precision
[out]ierrError flag
Author
Knut Morten Okstad
Date
September 2000
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesolverdb2()

subroutine, public savemodule::writesolverdb2 ( type(systemtype), intent(in)  sys,
type(mechanismtype), intent(in)  mech,
type(controltype), intent(in)  control,
type(scaletotype), intent(in)  scaleTo,
real(dp), intent(in)  eta,
real(dp), dimension(:,:), intent(in)  ws,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Administers writing of secondary response results to database file.

Parameters
[in]sysSystem level data
[in]mechContainer of all mechanism objects
[in]controlControl system data
[in]scaleToScaling factors for tire model data
[in]etaCurrent wave elevation at global origin
[in]wsCurrent wind speed at user-defined points
[in]writeAsDoubleFlag for writing double vs. single precision
[out]ierrError flag
Author
Knut Morten Okstad
Date
September 2000
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesolverdb5()

subroutine, public savemodule::writesolverdb5 ( type(systemtype), intent(in)  sys,
type(triadtype), dimension(:), intent(in)  triads,
type(supeltype), dimension(:), intent(in)  sups,
type(masstype), dimension(:), intent(in)  masses,
integer, intent(out)  ierr 
)

Administers writing of frequency response results to database file.

Parameters
[in]sysSystem level data
[in]triadsArray of all triad objects
[in]supsArray of all superelement objects
[in]massesAll point masses in the model
[out]ierrError flag
Author
Knut Morten Okstad
Date
June 2019
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesolverheaders()

subroutine, public savemodule::writesolverheaders ( character(len=*), dimension(:), intent(in)  cResponseFiles,
type(mechanismtype), intent(in)  mech,
type(controltype), intent(in)  control,
type(modestype), intent(in)  modes,
real(dp), dimension(:), intent(in)  bufRat,
integer, intent(in)  neq,
logical, dimension(:), intent(in)  writeAsDouble,
integer, intent(out)  ierr,
character(len=*), intent(in), optional  modelFile 
)

Administers writing of results database headers.

Parameters
[in]cResponseFilesArray of file names
[in]mechContainer of all mechanism objects
[in]controlControl system data
[in]modesEigenmode data
[in]bufRatRelative buffer sizes for each result file
[in]neqNumber of equations (system vector dimension)
[in]writeAsDoubleFlags for writing double vs. single precision
[out]ierrError flag
[in]modelfileModel file name from which current model is generated
Author
Knut Morten Okstad
Date
September 2000
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writespringdb()

subroutine savemodule::writespringdb ( type(rdbtype), intent(inout)  respDB,
type(springbasetype), intent(in)  spring,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for a spring to results database file.

Parameters
respDBFile for secondary response variables
[in]springThe spring to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writespringelementheader()

subroutine savemodule::writespringelementheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(springtype), intent(in)  spring,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for an axial spring.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]springThe axial spring to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writespringheader()

subroutine savemodule::writespringheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(springbasetype), intent(in)  spring,
integer, intent(in)  sDof,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for a spring.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]springThe spring to write file header for
[in]sDofLocal DOF index
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesupeldb1()

subroutine savemodule::writesupeldb1 ( type(rdbtype), intent(inout)  respDB,
type(supeltype), intent(in)  supel,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes primary variables for a superelement to results database.

Parameters
respDBFile for primary response variables
[in]supelThe superelement to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writesupeldb2()

subroutine savemodule::writesupeldb2 ( type(rdbtype), intent(inout)  respDB,
type(supeltype), intent(in)  supel,
type(masstype), dimension(:), intent(in)  masses,
real(dp), dimension(3), intent(inout)  sysMass,
real(dp), dimension(3), intent(inout)  sysCG,
real(dp), intent(inout)  sysVb,
real(dp), dimension(3), intent(inout)  sysCB,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes secondary variables for a superelement to results database.

Parameters
respDBFile for secondary response variables
[in]supelThe superelement to write result variables for
[in]massesAll point masses in the model
sysMassTotal mass for the mechanism
sysCGCentre of gravity for the mechanism
sysVbBuoyancy volume for the mechanism
sysCBCentre of buoyancy for the mechanism
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesupelheader1()

subroutine savemodule::writesupelheader1 ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(supeltype), intent(in)  supel,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes primary results database file header for a superelement.

Parameters
respDBFile for primary response variables
headerVariable- and item group index container
[in]supelThe superelement to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writesupelheader2()

subroutine savemodule::writesupelheader2 ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(supeltype), intent(in)  supel,
integer, intent(in)  nBits,
logical, intent(in), optional  includePosMat,
integer, intent(out), optional  ierr 
)

Writes secondary results database file header for a superelement.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]supelThe superelement to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[in]includePosMatIf .true., include the position matrix also
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writetiredb()

subroutine savemodule::writetiredb ( type(rdbtype), intent(inout)  respDB,
type(tiretype), intent(in)  tire,
type(scaletotype), intent(in)  scaleTo,
real(dp), dimension(3), intent(inout)  sysMass,
real(dp), dimension(3), intent(inout)  sysCG,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for a tire to results database file.

Parameters
respDBFile for secondary response variables
[in]tireThe tire to write result variables for
[in]scaleToScaling factors for tire model variables
sysMassTotal mass for the mechanism
sysCGCentre of gravity for the mechanism
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writetireheader()

subroutine savemodule::writetireheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(tiretype), intent(in)  tire,
integer, intent(in)  nBits,
integer, intent(out)  ierr 
)

Writes results database file header for a tire.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]tireThe tire to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writetriaddb1()

subroutine savemodule::writetriaddb1 ( type(rdbtype), intent(inout)  respDB,
type(triadtype), intent(in)  triad,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes primary variables for a triad to results database.

Parameters
respDBFile for primary response variables
[in]triadThe triad to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writetriaddb2()

subroutine savemodule::writetriaddb2 ( type(rdbtype), intent(inout)  respDB,
type(triadtype), intent(in)  triad,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes secondary variables for a triad to results database.

Parameters
respDBFile for secondary response variables
[in]triadThe triad to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writetriadforcesdb()

subroutine savemodule::writetriadforcesdb ( type(rdbtype), intent(inout)  respDB,
type(triadtype), intent(in)  triad,
integer, intent(out)  ierr 
)

Writes some force variables for a triad to results database.

Parameters
respDBFile for secondary response variables
[in]triadThe triad to write result variables for
[out]ierrError flag
Here is the caller graph for this function:

◆ writetriadheader1()

subroutine savemodule::writetriadheader1 ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(triadtype), intent(in)  triad,
integer, intent(in)  nBits 
)

Writes primary results database file header for a triad.

Parameters
respDBFile for primary response variables
headerVariable- and item group index container
[in]triadThe triad to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writetriadheader2()

subroutine savemodule::writetriadheader2 ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(triadtype), intent(in)  triad,
integer, intent(in)  nBits,
logical, intent(in), optional  includePosMat,
integer, intent(out), optional  ierr 
)

Writes secondary results database file header for a triad.

Parameters
respDBFile for primary response variables
headerVariable- and item group index container
[in]triadThe triad to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
[in]includePosMatIf .true., include the position matrix also
[out]ierrError flag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeuserdefeldb()

subroutine savemodule::writeuserdefeldb ( type(rdbtype), intent(inout)  respDB,
type(userdefeltype), intent(in)  elm,
logical, intent(in)  writeAsDouble,
integer, intent(out)  ierr 
)

Writes results for a user-defined element to results database file.

Parameters
respDBFile for secondary response variables
[in]elmThe user-defined element to write result variables for
[in]writeAsDoubleIf .true., write variables in double precision
[out]ierrError flag
Here is the caller graph for this function:

◆ writeuserdefelheader()

subroutine savemodule::writeuserdefelheader ( type(rdbtype), intent(inout)  respDB,
type(headerid), intent(inout)  header,
type(userdefeltype), intent(in)  elm,
integer, intent(in)  nBits 
)

Writes results database file header for a user-defined element.

Parameters
respDBFile for secondary response variables
headerVariable- and item group index container
[in]elmThe user-defined element to write file header for
[in]nBitsSize of a real variables (32 or 64 bit)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writewindturbineheader()

subroutine savemodule::writewindturbineheader ( type(rdbtype), intent(inout)  respDB,
type(turbineconfig), intent(in)  turbine 
)
private

Writes results database file header for a wind turbine.

Parameters
respDBFile for secondary response variables
[in]turbineWind turbine object to write file header for
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ctrldb

type(rdbtype), save, public savemodule::ctrldb

File for control system data.

◆ freqdb

type(rdbtype), save, public savemodule::freqdb

File for frequency domain response variables.

◆ max_ude_p

integer, parameter savemodule::max_ude_p = 100
private

Max. user-defined element variables.

◆ modedb

type(rdbtype), save, public savemodule::modedb

File for modal data.

◆ nvarcti_p

integer parameter savemodule::nvarcti_p = 100
private

Number of CTI variables in debug mode.

Number of CTI variables.

◆ res1db

type(rdbtype), save, public savemodule::res1db

File for primary response variables.

◆ res2db

type(rdbtype), save, public savemodule::res2db

File for secondary response variables.