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 DumpSolution ( )
inlinevirtual

Reimplemented from couplingbase.

Definition at line 473 of file FsiCoupling.H.

References fluidsAgent, fluidsInterfaceName, runMode, simulationTime, structuresAgent, structuresInterfaceName, WriteAgentToVTK(), and writeHDF.

474  {
475  std::stringstream outString;
476  outString << "FSICoupling: Dumping solutions." << std::endl;
477  StdOut(outString.str(),2,true);
478  outString.clear();
479  outString.str("");
480  if(runMode < 2){
481  if(writeHDF)
482  SolverUtils::WriteWindow(fluidsInterfaceName,simulationTime);
483  if(false)
484  WriteAgentToVTK("fluid",*fluidsAgent);
485  }
486  if(!(runMode == 1)){
487  if(writeHDF)
488  SolverUtils::WriteWindow(structuresInterfaceName,simulationTime);
489  if(false)
490  WriteAgentToVTK("structure",*structuresAgent);
491  }
492  outString << "FSICoupling: Done with solution dump." << std::endl;
493  StdOut(outString.str(),2,true);
494  outString.clear();
495  outString.str("");
496  return(0);
497  }
fluidagent * fluidsAgent
Definition: FsiCoupling.H:29
solidagent * structuresAgent
Definition: FsiCoupling.H:30
int WriteAgentToVTK(const std::string &nameRoot, SolverUtils::FEM::SolverAgent &solverAgent)
Definition: FsiCoupling.H:453
bool writeHDF
Definition: FsiCoupling.H:44
std::string structuresInterfaceName
Definition: FsiCoupling.H:34
std::string fluidsInterfaceName
Definition: FsiCoupling.H:33
double simulationTime
Definition: FsiCoupling.H:39

Here is the call graph for this function: