FEDEM Solver  R8.0
Source code of the dynamics solver
Functions/Subroutines
initiatemodule Module Reference

Initialization of model data from the FEDEM solver input file. More...

Functions/Subroutines

subroutine readsolverdata (chfsi, sys, ctrl, mech, modelFileName, doEnergyInt, err)
 Administers reading of model data from the FEDEM solver input file. More...
 
subroutine preprocesssolverdata (sam, sys, ctrl, modes, mech, ipsw, err)
 Administers preprocessing of model data for the dynamics solver. More...
 

Detailed Description

Initialization of model data from the FEDEM solver input file.

Function/Subroutine Documentation

◆ preprocesssolverdata()

subroutine initiatemodule::preprocesssolverdata ( type(samtype), intent(out)  sam,
type(systemtype), intent(inout)  sys,
type(controltype), intent(in)  ctrl,
type(modestype), intent(out)  modes,
type(mechanismtype), intent(inout)  mech,
integer, intent(in)  ipsw,
integer, intent(out)  err 
)

Administers preprocessing of model data for the dynamics solver.

Parameters
[out]samData for managing system matrix assembly
sysSystem level model data
[in]ctrlControl system data
[out]modesData for eigenmodes
mechMechanism components of the model
[in]ipswPrint switch; the higher value the more print is produced
[out]errError flag

This subroutine builds up the necessary data structures and resolves cross references, etc., after the solver input file has been read.

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

◆ readsolverdata()

subroutine initiatemodule::readsolverdata ( character(len=*), intent(in), optional  chfsi,
type(systemtype), intent(out)  sys,
type(controltype), intent(out)  ctrl,
type(mechanismtype), intent(out)  mech,
character(len=*), intent(out)  modelFileName,
logical, intent(out)  doEnergyInt,
integer, intent(out)  err 
)

Administers reading of model data from the FEDEM solver input file.

Parameters
[in]chfsiText string containing the entire solver model
[out]sysSystem level model data
[out]ctrlControl system data
[out]mechMechanism components of the model
[out]modelFileNameName of the FEDEM model file
[out]doEnergyIntIf .true., energy integration is requested
[out]errError flag

This subroutine parses the FEDEM solver input file and initializes all solver objects based on it. The name of the solver input file is obtained from the command-line argument -fsifile (and -fsi2file). Alternatively, the model can be initialized by passing the entire input file content through the input variable cfsi.

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