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
static void Load ( const std::string &  name)
inlinestatic

"Loads" IcoFoamModule

Definition at line 100 of file icoFoamModule.C.

References IcoFoamModule::IcoFoamModule(), IcoFoamModule::IcoFoamModuleFunction(), and IcoFoamModule::my_window_name.

Referenced by IcoFoamModule_load_module().

100  {
101  std::cout << "Loading IcoFoamModule with name " << name
102  << "." << std::endl;
103 
104  IcoFoamModule *module_pointer = new IcoFoamModule();
105  COM_new_window(name, MPI_COMM_NULL);
106  module_pointer->my_window_name = name;
107  std::string global_name(name+".global");
108  COM_new_dataitem(global_name.c_str(),'w',COM_VOID,1,"");
109  COM_set_object(global_name.c_str(),0,module_pointer);
110 
111 
112  std::vector<COM_Type> types(13,COM_INT);
113 
114  types[0] = COM_RAWDATA;
115  types[2] = COM_VOID;
116  COM_set_member_function( (name+".IcoFoamModuleFunction").c_str(),
117  (Member_func_ptr)(&IcoFoamModule::IcoFoamModuleFunction),
118  global_name.c_str(), "bii", &types[0]);
119 
120 
121 
122  COM_window_init_done(name);
123  }
IcoFoamModule()
Default constructor.
Definition: icoFoamModule.C:62
int IcoFoamModuleFunction(int *pargc, void **pargv)
Definition: icoFoamModule.C:85

Here is the call graph for this function:

Here is the caller graph for this function: