Skip to main content

Initiate

Initiate an instance of DOF.

Interface

We can construct DOF_ object by calling the Initiate() subroutine.

Initiate
INTERFACE
MODULE PURE SUBROUTINE Initiate( obj, tNodes, Names, spacecompo, &
& timecompo, StorageFMT )
CLASS( DOF_ ), INTENT( INOUT ) :: obj
!! degree of freedom object
INTEGER( I4B ), INTENT( IN ) :: tNodes( : )
!! number of nodes for each physical variable
CHARACTER( LEN = 1 ), INTENT( IN ) :: Names( : )
!! Names of each physical variable
INTEGER( I4B ), INTENT( IN ) :: spacecompo( : )
!! Space component of each physical variable
INTEGER( I4B ), INTENT( IN ) :: timecompo( : )
!! Time component of each physical variable
INTEGER( I4B ), INTENT( IN ) :: StorageFMT
!! Storage format `FMT_DOF`, `FMT_Nodes`
END SUBROUTINE Initiate
END INTERFACE

where,

  • tNodes denotes the total number of nodes in each physical variables
  • Names is the name of each physical variables
  • SpaceCompo is the number of spatial components in each physical variable, if a physical variable is scalar then one can use also use -1 instead of 1 for the total number of space components
  • TimeCompo is the number of time components in each physical variables
  • StorageFMT is the storage format, it can be FMT_DOF or FMT_Nodes
info

The size of tNodes, Names, SpaceCompo, TimeCompo vectors should be equal to the total number of physical variables.

Interfaces for constructing vectors using DOF

The Initiate() method has been extended for constructing

This topic is covered below.

Constructing navtive vectors

Constructing RealVector

 

Constructing vector of RealVector

 

Assignment(=)

We can use an assignment operator to copy the contents of one DOF_ object into another DOF_ object.

DOF Function

We can also use DOF() function for the constructing the DOF object.

DOF_Pointer

We can also use DOF_Pointer() function for get a pointer to a newly created an instance of DOF_.