25 #include "sys/types.h"
42 Agent(cp, mod, obj,
"Fluid", com, true),
43 with_plag(false), with_solid(withSolid)
97 #else // dynamic loading
99 (std::string(
"Unknown FluidAgent module:")+
rocmod_name).c_str());
160 MAN_DEBUG(3, (
"Rocstar: FluidAgent::init_module t=%e dt=%e.\n", t, dt));
179 std::string::size_type pos =
vol_window.find(
" ");
180 if ( pos != std::string::npos) {
364 if ( maxPredCorr>1) {
436 if (cnstr_type_hdl > 0) {
442 if (cnstr_type_hdl > 0) {
467 static const std::string ifluid_prefix =
"ifluid_all";
525 if ( maxPredCorr>1) {
538 MAN_DEBUG(2, (
"Rocstar: FluidAgent::init_convergence at %d.\n", iPredCorr));
553 MAN_DEBUG(3, (
"Rocstar: FluidAgent::check_convergence .\n"));
565 MAN_DEBUG(3, (
"Rocstar: FluidAgent::compute_integrals.\n"));
FluidAgent(Coupling *coup, std::string mod, std::string obj, MPI_Comm com, int withSolid=0)
virtual void init_module(double t, double dt)
void write_data_files(double t, const std::string base, const std::string attr, const char *ref=NULL)
virtual void output_restart_files(double t)
T mod(const T &x, const T &m)
Return the modulo of a number.
void COM_delete_window(const char *wname)
virtual int compute_integrals()
virtual void create_buffer_all()
#define COM_assertion_msg(EX, msg)
virtual void input(double t)
static const char * fluid_plag_vis
int COM_get_attribute_handle(const char *waname)
#define COM_F_FUNC2(lowcase, uppercase)
subroutine rocflu_unload_module(winName)
int compute_integrals_handle
virtual void output_visualization_files(double t)
subroutine rocflo_unload_module(winName)
virtual void unload_module()
void COM_load_module(const char *libname, const char *winname)
void COM_use_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Use the subset of panes of another window of which the given pane attribute has value val...
virtual int check_convergence(double tolerMass, double tolerTract, double tolerVelo)
Coupling * get_coupling()
static const char * ifluid_nb_vis
int read_by_control_file(double t, const std::string base, const std::string window)
void COM_close_module(const char *libname, const char *winname=NULL)
virtual void create_buffer_all()
int check_convergence_help(int vcur, int vpre, double tol, std::string str)
void COM_window_init_done(const char *w_str, int pane_changed=true)
virtual void load_module()
virtual void read_restart_data()
static const char * ifluid_vis
void COM_clone_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Clone the subset of panes of another window of which the given pane attribute has value val...
void COM_new_window(const char *wname, MPI_Comm c=MPI_COMM_NULL)
void COM_call_function(const int wf, int argc,...)
void COM_unload_module(const char *libname, const char *winname=NULL)
void write_control_file(double t, const std::string base, const std::string window)
int COM_get_attribute_handle_const(const char *waname)
void init_function_handles()
subroutine rocflu_load_module(winName)
virtual void init_module(double t, double dt)
static const char * fluid_vis
void create_registered_window_attributes(std::string target_window)
virtual void init_convergence(int iPredCorr)
void COM_new_attribute(const char *wa_str, const char loc, const int type, int ncomp, const char *unit)
Registering an attribute type.
subroutine rocflo_load_module(winName)
virtual void init_convergence(int iPredCorr)
static int obtain_attr_handle
static const char * ifluid_ni_vis
static const char * ifluid_b_vis
double integrals[MAN_INTEG_SIZE]
void COM_resize_array(const char *wa_str, int pane_id=0, void **addr=NULL, int strd=-1, int cap=0)
Resize an attribute on a specific pane and return the address by setting addr.