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
virtual int Initialize ( std::vector< std::string > &  componentInterfaceNames,
double  finalTime,
double  timeStep 
)
inlinevirtual

Definition at line 498 of file FsiCoupling.H.

References couplingbase::componentAgents, fluidsAgent, fluidsInterfaceName, openfoamagent::Initialize(), elmeragent::Initialize(), runMode, simpalInterfaceName, simulationFinalTime, simulationTime, simulationTimeStep, structuresAgent, structuresInterfaceName, surfUtilInterfaceName, transferAgent, transferInterfaceName, and verblevel.

Referenced by SerialDriverProgram::DriverRun(), TestingObject< ResultsType >::Test__FluidAgentRun(), TestingObject< ResultsType >::Test__FsiCoupler(), TestingObject< ResultsType >::Test__SolidAgentRun(), TestingObject< ResultsType >::Test__TransferDisplacementsToFluid(), and TestingObject< ResultsType >::Test__TransferLoadsToStructures().

499  {
500 
501  FunctionEntry("Initialize");
502  std::stringstream outString;
503  //Masoud
504  outString << "Final Time = " << finalTime << std::endl;
505  outString << "Time Step = " << timeStep << std::endl;
506  //Masoud: End
507  StdOut(outString.str(),0,true);
508  outString.clear();
509  outString.str("");
510 
511  if(componentInterfaceNames.size() < 2)
512  return(1);
513 
514  fluidsInterfaceName = componentInterfaceNames[0];
515  structuresInterfaceName = componentInterfaceNames[1];
516  transferInterfaceName = componentInterfaceNames[2];
517  surfUtilInterfaceName = componentInterfaceNames[3];
518  simpalInterfaceName = componentInterfaceNames[4];
519 
520  fluidsAgent = new fluidagent;
523 
524  // Initialize the fluids module
525  if(runMode != 2)
527 
528  // Initialize the structures module
529  if(runMode != 1)
531 
532  // Initialize the transfer module's common refinement
533  if(runMode == 0) {
535  // TestTransfer();
536  }
537  // exit(1);
538 
539 
540  componentAgents.resize(2);
543 
544  simulationTime = 0; // ? (restart)
545  simulationFinalTime = finalTime;
546  simulationTimeStep = timeStep;
547 
548  //DumpSolution();
549 
550  FunctionExit("Initialize");
551  return(0);
552 
553  };
fluidagent * fluidsAgent
Definition: FsiCoupling.H:29
SolverUtils::TransferObject transferagent
Definition: FsiCoupling.H:19
solidagent * structuresAgent
Definition: FsiCoupling.H:30
std::vector< impact::orchestrator::agentbase * > componentAgents
Definition: Orchestrator.H:44
transferagent * transferAgent
Definition: FsiCoupling.H:31
std::string simpalInterfaceName
Definition: FsiCoupling.H:37
virtual int Initialize(const std::string &interfaceName, int verblevel=1)
Definition: ElmerAgent.H:10
std::string transferInterfaceName
Definition: FsiCoupling.H:35
double simulationTimeStep
Definition: FsiCoupling.H:41
std::string structuresInterfaceName
Definition: FsiCoupling.H:34
std::string surfUtilInterfaceName
Definition: FsiCoupling.H:36
std::string fluidsInterfaceName
Definition: FsiCoupling.H:33
openfoamagent fluidagent
Definition: FsiCoupling.H:20
double simulationTime
Definition: FsiCoupling.H:39
double simulationFinalTime
Definition: FsiCoupling.H:40
elmeragent solidagent
Definition: FsiCoupling.H:21
virtual int Initialize(const std::string interfaceName, int verblevel=1)
Definition: OpenFoamAgent.H:9

Here is the call graph for this function:

Here is the caller graph for this function: