FEDEM Solver  R8.0
Source code of the dynamics solver
Data Types | Modules | Functions/Subroutines
restartModule.f90 File Reference

Subroutines for restart handling. More...

Data Types

interface  restartmodule::restartinit
 Initializes the mechanism configuration for restart. More...
 

Modules

module  restartmodule
 Module with subroutines for simulation restart.
 

Functions/Subroutines

subroutine restartmodule::restartfromfile (sam, sys, mech, ctrl, lpu, ierr)
 Initializes the mechanism configuration from restart file. More...
 
subroutine restartmodule::readtriaddata (triads, previousStep, ierr)
 Reads triad results from results database for restart. More...
 
subroutine readvar (chVar, triadId, triadData, nWords)
 Reads a triad result quantity from the results database. More...
 
subroutine restartmodule::readsupdata (sups, previousStep, ierr)
 Reads superelement results from results database for restart. More...
 
subroutine readvar (chVar, supId, supData, nWords, typeName)
 Reads a superelement result quantity from the results database. More...
 
subroutine restartmodule::readjointdata (joints, previousStep, ierr)
 Reads joint results from results database for restart. More...
 
subroutine restartmodule::readjointdofdata (jointType, jointId, jointDof, previousStep, ierr)
 Reads joint DOF data for current time step. More...
 
subroutine restartmodule::readcontactelementdata (cElems, ierr)
 Reads contact element results from results database for restart. More...
 
subroutine readvar (chVar, cElmId, cElmVar)
 Reads a contact element result quantity from the results database. More...
 
subroutine restartmodule::readcontroldata (ctrl, mechId, ierr)
 Reads control system data from results database for restart. More...
 
subroutine readireg (i, mp, name)
 Reads an integer array from the results database. More...
 
subroutine readrreg (i, mp, name)
 Reads a real array from the results database. More...
 
integer function, public restartmodule::getstatesize (sam, mech, ctrl)
 Calculates the length of the state array to restart from. More...
 
integer function, public restartmodule::gettransformationstatesize (mech)
 Calculates the length of the transformation state array. More...
 
subroutine restartmodule::restartfromcore (sam, sys, mech, ctrl, data, ndat, lpu, istat)
 Initializes the mechanism configuration from provided state array. More...
 
subroutine restartmodule::extracttriaddata (triads, data, ndat, idat)
 Extracts triad results from in-core array for restart. More...
 
subroutine restartmodule::extractsuperelementdata (sups, data, ndat, idat)
 Extracts superelement results from in-core array for restart. More...
 
subroutine restartmodule::extractjointdata (joints, data, ndat, idat)
 Extracts joint results from in-core state array for restart. More...
 
subroutine extractjdof (jDof, idat)
 Extracts joint DOF results from the in-core state array. More...
 
subroutine restartmodule::extractdamperdata (dampers, data, ndat, idat)
 Extracts damper results from state array for restart. More...
 
subroutine restartmodule::extractcontactelementdata (cElems, data, ndat, idat)
 Extracts contact element results from state array for restart. More...
 
subroutine restartmodule::extractmotiondata (motions, data, ndat, idat)
 Extracts prescribed motion results from state array for restart. More...
 
subroutine restartmodule::extractcontroldata (ctrl, data, ndat, idat)
 Extracts control system data from state array for restart. More...
 
subroutine extractrreg (i)
 Extracts a control array from the state array. More...
 
subroutine restartmodule::restartinitialize (sam, sys, mech, ctrl, fromCore, ierr)
 Initializes the mechanism configuration for restart. More...
 
subroutine, public restartmodule::savetocore (sam, sys, mech, ctrl, data, ndat, istat)
 Saves state-dependent data of current time step to an array in core. More...
 
subroutine, public restartmodule::savetransformationdatatocore (sys, mech, data, ndat, istat)
 Saves the transformation data of current step to an array in core. More...
 
subroutine restartmodule::savetriaddata (triads, data, ndat, idat)
 Saves triad results to in-core array for restart. More...
 
subroutine restartmodule::savesuperelementdata (sups, data, ndat, idat)
 Saves superelement results to in-core array for restart. More...
 
subroutine restartmodule::savejointdata (joints, data, ndat, idat)
 Saves joint results to in-core state array for restart. More...
 
subroutine savejdof (jDof, idat)
 Saves joint DOF results to the in-core state array. More...
 
subroutine restartmodule::savedamperdata (dampers, data, ndat, idat)
 Saves damper results to in-core state array for restart. More...
 
subroutine restartmodule::savecontactelementdata (cElems, data, ndat, idat)
 Saves contact element results to in-core state array for restart. More...
 
subroutine restartmodule::savemotiondata (motions, data, ndat, idat)
 Saves prescribed motion results to in-core state array for restart. More...
 
subroutine restartmodule::savecontroldata (ctrl, data, ndat, idat)
 Saves control system data to in-core state array for restart. More...
 
subroutine saverreg (i)
 Saves a real control array to the state array. More...
 
logical function restartmodule::outofrange (oper, object, id, idat, ndat)
 Prints an error message when the in-core state array is exhausted. More...
 

Detailed Description

Subroutines for restart handling.

Function/Subroutine Documentation

◆ extractjdof()

subroutine extractjointdata::extractjdof ( type(jointdoftype), intent(inout)  jDof,
integer, intent(inout)  idat 
)

Extracts joint DOF results from the in-core state array.

◆ extractrreg()

subroutine extractcontroldata::extractrreg ( integer, intent(in)  i)

Extracts a control array from the state array.

◆ readireg()

subroutine readcontroldata::readireg ( integer, intent(in)  i,
integer, dimension(:), intent(in)  mp,
character(len=*), intent(in)  name 
)

Reads an integer array from the results database.

◆ readrreg()

subroutine readcontroldata::readrreg ( integer, intent(in)  i,
integer, dimension(:), intent(in)  mp,
character(len=*), intent(in)  name 
)
private

Reads a real array from the results database.

◆ readvar() [1/3]

subroutine readcontactelementdata::readvar ( character(len=*), intent(in)  chVar,
type(idtype), intent(in)  cElmId,
real(dp), intent(out)  cElmVar 
)

Reads a contact element result quantity from the results database.

◆ readvar() [2/3]

subroutine readsupdata::readvar ( character(len=*), intent(in)  chVar,
type(idtype), intent(in)  supId,
real(dp), intent(out)  supData,
integer, intent(in)  nWords,
character(len=*), intent(in), optional  typeName 
)

Reads a superelement result quantity from the results database.

◆ readvar() [3/3]

subroutine readtriaddata::readvar ( character(len=*), intent(in)  chVar,
type(idtype), intent(in)  triadId,
real(dp), intent(out)  triadData,
integer, intent(in)  nWords 
)

Reads a triad result quantity from the results database.

◆ savejdof()

subroutine savejointdata::savejdof ( type(jointdoftype), intent(in)  jDof,
integer, intent(inout)  idat 
)

Saves joint DOF results to the in-core state array.

◆ saverreg()

subroutine savecontroldata::saverreg ( integer, intent(in)  i)

Saves a real control array to the state array.