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 void writeWin ( const char *  winName,
std::string  timeMark,
std::string &  wFnameHdf 
)
inlinevirtual

Definition at line 226 of file FsiCouplingPar.H.

References simoutInterfaceName.

Referenced by Initialize().

227  {
228  int OUT_set = COM_get_function_handle( (simoutInterfaceName + ".set_option").c_str());
229  int OUT_write = COM_get_function_handle( (simoutInterfaceName + ".write_dataitem").c_str());
230  int OUT_write_ctrl = COM_get_function_handle( (simoutInterfaceName + ".write_rocin_control_file").c_str());
231 
232  std::string win_out_pre( winName);
233  win_out_pre.append(".");
234  int OUT_all = COM_get_dataitem_handle((win_out_pre+"all").c_str());
235 
236 
237  std::stringstream ss;
238  ss.clear();
239  ss.str("");
240  ss << "_proc_"
241  << Rank();
242 
243  std::string hdf_fname, ctrl_fname;
244  hdf_fname = (std::string)winName +"_window" + ss.str();
245  ctrl_fname = (std::string)winName + "_time_" + timeMark +".txt";
246 
247  COM_call_function( OUT_set, "format", "HDF4");
248  COM_call_function( OUT_write, (hdf_fname + ".hdf").c_str(), &OUT_all, winName, "0000");
249  COM_call_function( OUT_write_ctrl, winName, hdf_fname.c_str(), ctrl_fname.c_str());
250 
251  wFnameHdf = (std::string)winName +"_window_proc_*.hdf";
252  }
std::string simoutInterfaceName

Here is the caller graph for this function: