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
int WriteAgentToVTK ( const std::string &  nameRoot,
SolverUtils::FEM::SolverAgent &  solverAgent 
)
inline

Definition at line 453 of file FsiCoupling.H.

References couplingbase::outStream, and simulationTime.

Referenced by DumpSolution().

454  {
455  std::stringstream outString;
456  std::ofstream outStream;
457  std::ostringstream timeString;
458  timeString << simulationTime;
459  std::string fileName(nameRoot+"_"+timeString.str()+".vtk");
460  outStream.open(fileName.c_str());
461  if(!outStream){
462  outString << "FSICoupling::DumpSolution:Error: Could not open output file, "
463  << fileName << "." << std::endl;
464  StdOut(outString.str(),0,true);
465  outString.clear();
466  outString.str("");
467  return(1);
468  }
469  SolverUtils::WriteVTKToStream(nameRoot, solverAgent, outStream);
470  outStream.close();
471  };
double simulationTime
Definition: FsiCoupling.H:39

Here is the caller graph for this function: