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.
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Macros
Groups
Pages
SolverModuleDriverParallel.H
Go to the documentation of this file.
1
#ifndef __SOLVER_MODULE_DRIVER_H__
2
#define __SOLVER_MODULE_DRIVER_H__
3
4
#include "SolverAgent.H"
5
#include "InterfaceLayer.H"
6
7
namespace
COM {
8
class
SolverModuleDriver
:
public
SolverUtils::FEM::SolverAgent,
public
COM_Object
9
{
10
std::stringstream
ss
;
11
bool
isFSI
,
changeLoads
;
12
int
runs
;
13
int
color
;
14
MPI_Comm
Comm
;
15
SolverAgent
myAgent
;
16
bool
myAgentIsInit
;
17
18
public
:
19
// member data
20
int
myRank
;
21
int
myPaneId
;
22
std::vector<double>
tNext
;
23
double
*
Disp
;
// displacements
24
int
nDisp
;
25
char
locDisp
;
26
int
typeDisp
;
27
double
*
Coord
;
28
int
nNodes
;
29
int
*
Conn
;
30
int
nConn
;
31
double
*
Loads
;
// loads
32
int
nLoads
;
// number of components
33
char
locLoads
;
// location on mesh
34
int
typeLoads
;
// COM type
35
double
*
Press
;
// pressures
36
int
nPress
;
37
char
locPress
;
38
int
typePress
;
39
int
nElem
;
40
int
nElemNodes
;
41
std::ofstream
outfile
;
42
43
// member functions
44
SolverModuleDriver
():
myAgentIsInit
(false),
isFSI
(false),
changeLoads
(false),
Disp
(NULL),
nDisp
(0),
45
Loads
(NULL),
nLoads
(0),
Press
(NULL),
nPress
(0),
Coord
(NULL),
Conn
(NULL)
46
{}
47
virtual
~SolverModuleDriver
(){};
48
void
usage
(
char
*exec);
49
bool
isStreamer
(){
return
(
myRank
==0);}
50
int
init
(
int
argc,
char
*argv[]);
51
int
run
();
52
int
updateSolution
();
53
int
finalize
();
54
int
getColor
(){
return
color
;}
55
void
setColor
(
int
colorValue){
color
= colorValue;}
56
void
setRank
(
int
rankValue){
myRank
= rankValue;}
57
void
setComm
(MPI_Comm newComm){
Comm
= newComm;}
58
int
vtkDump
(
double
timeMark);
59
bool
isFSISim
(){
return
isFSI
;}
60
bool
isChangeLoad
(){
return
changeLoads
;}
61
62
};
63
};
64
65
#endif
COM::SolverModuleDriver::myRank
int myRank
Definition:
SolverModuleDriverParallel.H:20
COM::SolverModuleDriver::runs
int runs
Definition:
SolverModuleDriverParallel.H:12
COM::SolverModuleDriver::usage
void usage(char *exec)
Definition:
SolverModuleDriverParallel.C:32
COM::SolverModuleDriver::nElem
int nElem
Definition:
SolverModuleDriverParallel.H:39
COM::SolverModuleDriver::setColor
void setColor(int colorValue)
Definition:
SolverModuleDriverParallel.H:55
COM::SolverModuleDriver::getColor
int getColor()
Definition:
SolverModuleDriverParallel.H:54
COM::SolverModuleDriver::finalize
int finalize()
Definition:
SolverModuleDriverParallel.C:321
COM::SolverModuleDriver::vtkDump
int vtkDump(double timeMark)
Definition:
SolverModuleDriverParallel.C:337
COM::SolverModuleDriver::init
int init(int argc, char *argv[])
Definition:
SolverModuleDriverParallel.C:54
COM::SolverModuleDriver::typeDisp
int typeDisp
Definition:
SolverModuleDriverParallel.H:26
COM::SolverModuleDriver::Comm
MPI_Comm Comm
Definition:
SolverModuleDriverParallel.H:14
COM::SolverModuleDriver::setComm
void setComm(MPI_Comm newComm)
Definition:
SolverModuleDriverParallel.H:57
COM::SolverModuleDriver::isFSI
bool isFSI
Definition:
SolverModuleDriverParallel.H:11
COM::SolverModuleDriver::nNodes
int nNodes
Definition:
SolverModuleDriverParallel.H:28
COM::SolverModuleDriver::Conn
int * Conn
Definition:
SolverModuleDriverParallel.H:29
COM::SolverModuleDriver::Press
double * Press
Definition:
SolverModuleDriverParallel.H:35
COM::SolverModuleDriver::SolverModuleDriver
SolverModuleDriver()
Definition:
SolverModuleDriverParallel.H:44
COM::SolverModuleDriver::tNext
std::vector< double > tNext
Definition:
SolverModuleDriverParallel.H:22
COM::SolverModuleDriver::locLoads
char locLoads
Definition:
SolverModuleDriverParallel.H:33
COM::SolverModuleDriver::ss
std::stringstream ss
Definition:
SolverModuleDriverParallel.H:10
COM::SolverModuleDriver::myPaneId
int myPaneId
Definition:
SolverModuleDriverParallel.H:21
COM::SolverModuleDriver::isStreamer
bool isStreamer()
Definition:
SolverModuleDriverParallel.H:49
COM::SolverModuleDriver::isChangeLoad
bool isChangeLoad()
Definition:
SolverModuleDriverParallel.H:60
COM::SolverModuleDriver::typePress
int typePress
Definition:
SolverModuleDriverParallel.H:38
COM::SolverModuleDriver::nDisp
int nDisp
Definition:
SolverModuleDriverParallel.H:24
COM::SolverModuleDriver::locDisp
char locDisp
Definition:
SolverModuleDriverParallel.H:25
COM::SolverModuleDriver::color
int color
Definition:
SolverModuleDriverParallel.H:13
COM::SolverModuleDriver::Disp
double * Disp
Definition:
SolverModuleDriverParallel.H:23
COM::SolverModuleDriver::outfile
std::ofstream outfile
Definition:
SolverModuleDriverParallel.H:41
COM::SolverModuleDriver::myAgentIsInit
bool myAgentIsInit
Definition:
SolverModuleDriverParallel.H:16
COM::SolverModuleDriver::nLoads
int nLoads
Definition:
SolverModuleDriverParallel.H:32
COM::SolverModuleDriver::nConn
int nConn
Definition:
SolverModuleDriverParallel.H:30
COM::SolverModuleDriver::nPress
int nPress
Definition:
SolverModuleDriverParallel.H:36
COM::SolverModuleDriver::setRank
void setRank(int rankValue)
Definition:
SolverModuleDriverParallel.H:56
COM::SolverModuleDriver::run
int run()
Definition:
SolverModuleDriverParallel.C:167
COM::SolverModuleDriver::Coord
double * Coord
Definition:
SolverModuleDriverParallel.H:27
COM::SolverModuleDriver::changeLoads
bool changeLoads
Definition:
SolverModuleDriverParallel.H:11
COM::SolverModuleDriver::locPress
char locPress
Definition:
SolverModuleDriverParallel.H:37
COM::SolverModuleDriver::nElemNodes
int nElemNodes
Definition:
SolverModuleDriverParallel.H:40
COM::SolverModuleDriver::isFSISim
bool isFSISim()
Definition:
SolverModuleDriverParallel.H:59
COM::SolverModuleDriver::updateSolution
int updateSolution()
Definition:
SolverModuleDriverParallel.C:214
COM::SolverModuleDriver
Definition:
SolverModuleDriverParallel.H:8
COM::SolverModuleDriver::typeLoads
int typeLoads
Definition:
SolverModuleDriverParallel.H:34
COM::SolverModuleDriver::Loads
double * Loads
Definition:
SolverModuleDriverParallel.H:31
COM::SolverModuleDriver::~SolverModuleDriver
virtual ~SolverModuleDriver()
Definition:
SolverModuleDriverParallel.H:47
COM::SolverModuleDriver::myAgent
SolverAgent myAgent
Definition:
SolverModuleDriverParallel.H:15
Third_Party_Modules
ElmerFSI
trunk
include
SolverModuleDriverParallel.H
Generated on Mon Jul 25 2016 15:50:54 for ElmerFoamFSI by
1.8.5