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

Module with data types representing point mass objects. More...

Data Types

type  masstype
 Data type representing a point mass object. More...
 
interface  writeobject
 Standard routine for writing an object to file. More...
 

Functions/Subroutines

subroutine initiatemasses (infp, masses, triads, engines, err)
 Initializes the mass objects with data from the solver input file. More...
 
subroutine, private writemasstype (mass, io, complexity)
 Standard routine for writing an object to file. More...
 
subroutine nullifymass (mass)
 Initializes a point mass object. More...
 
subroutine deallocatemasses (masses)
 Deallocates the point mass objects. More...
 

Detailed Description

Module with data types representing point mass objects.

The module also contains subroutines for accessing the mass data.

Function/Subroutine Documentation

◆ deallocatemasses()

subroutine masstypemodule::deallocatemasses ( type(masstype), dimension(:), pointer  masses)

Deallocates the point mass objects.

Parameters
massesThe masstypemodule::masstype objects to deallocate
Author
Knut Morten Okstad
Date
23 Jan 2017
Here is the caller graph for this function:

◆ initiatemasses()

subroutine masstypemodule::initiatemasses ( integer, intent(in)  infp,
type(masstype), dimension(:), pointer  masses,
type(triadtype), dimension(:), intent(in)  triads,
type(enginetype), dimension(:), intent(in)  engines,
integer, intent(out)  err 
)

Initializes the mass objects with data from the solver input file.

Parameters
[in]infpFile unit number for the solver input file
[out]massesArray of all point mass objects in the model
[in]triadsArray of all triads in the model
[in]enginesArray of all engines in the model
[out]errError flag
Author
Bjorn Haugen
Date
25 Oct 1999
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nullifymass()

subroutine masstypemodule::nullifymass ( type(masstype), intent(out)  mass)

Initializes a point mass object.

Parameters
massThe masstypemodule::masstype object to initialize
Author
Knut Morten Okstad
Date
30 May 2002
Here is the caller graph for this function:

◆ writemasstype()

subroutine, private masstypemodule::writemasstype ( type(masstype), intent(in)  mass,
integer, intent(in)  io,
integer, intent(in), optional  complexity 
)
private

Standard routine for writing an object to file.

Parameters
[in]massThe masstypemodule::masstype object to write
[in]ioFile unit number to write to
[in]complexityIf present, the value indicates the amount of print
Author
Karl Erik Thoresen
Date
27 Sep 1998