ElmerFoamFSI  2.0
ElmerFoamFSI is fluid-solid interaction simulation application built up from OpenFOAM CFD and Elmer CSM coupled through the IMPACT multiphysics software integration infrastructure.
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Groups Pages
ModTestObject.F90
Go to the documentation of this file.
1 MODULE testobject
2 
3  USE modeldescription
4 
5  TYPE t_global
6  CHARACTER(80) :: window_name
7  CHARACTER(80) :: other_window_name
8  CHARACTER(80) :: c_window_name
9  INTEGER :: other_window_handle
10  INTEGER :: c_window_handle
11  TYPE(model_t), POINTER :: MyModel
12  DOUBLE PRECISION, POINTER :: NodeDisplacements(:), Coords(:)
13  !Masoud: Registering global variables in the Elmer memory
14  DOUBLE PRECISION, POINTER :: PreviousNodeDisplacements(:)
15  LOGICAL, POINTER :: IsLoadFreeNode(:)
16  !Masoud End
17  DOUBLE PRECISION, POINTER :: NodeLoads(:), PreviousLoads(:,:)
18  DOUBLE PRECISION, POINTER :: FacePressures(:), FaceLoads(:)
19  DOUBLE PRECISION, POINTER :: NodePressures(:)
20  INTEGER :: FSIbcId, nElem, nNodes, nConn, SolverId
21  INTEGER, POINTER :: Conn(:), verbosity(:)!, NodeMap(:)
22  CHARACTER(80) :: MeshType
23  INTEGER, POINTER :: MyToElmerNodes(:)
24  INTEGER :: ElmerComm
25  INTEGER :: nProc
26  INTEGER :: procId
27  END TYPE t_global
28 
29  CONTAINS
30  SUBROUTINE associate_pointer( attr, ptr)
31  TYPE(t_global), POINTER :: attr, ptr
32  ptr => attr
33  END SUBROUTINE associate_pointer
34 
35 END MODULE testobject
subroutine associate_pointer(attr, ptr)