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 180 of file FsiCouplingPar.H.

References couplingbase::outStream, and simulationTime.

Referenced by DumpSolution().

181  {
182  std::stringstream outString;
183  std::ofstream outStream;
184  std::ostringstream timeString;
185  timeString << simulationTime;
186  std::string fileName(nameRoot+"_"+timeString.str()+".vtk");
187  outStream.open(fileName.c_str());
188  if(!outStream){
189  outString << "FSICoupling::DumpSolution:Error: Could not open output file, "
190  << fileName << "." << std::endl;
191  StdOut(outString.str(),0,true);
192  outString.clear();
193  outString.str("");
194  return(1);
195  }
196  SolverUtils::WriteVTKToStream(nameRoot, solverAgent, outStream);
197  outStream.close();
198  };
double simulationTime

Here is the caller graph for this function: