#include <FluidAgent.h>
Public Member Functions | |
FluidAgent (Coupling *coup, std::string mod, std::string obj, MPI_Comm com, int withSolid=0) | |
virtual void | input (double t) |
virtual void | load_module () |
virtual void | unload_module () |
virtual void | init_module (double t, double dt) |
virtual void | finalize () |
virtual void | read_restart_data () |
virtual void | output_restart_files (double t) |
virtual void | output_visualization_files (double t) |
virtual void | create_buffer_all () |
virtual void | init_convergence (int iPredCorr) |
virtual int | check_convergence (double tolerMass, double tolerTract, double tolerVelo) |
virtual int | compute_integrals () |
Public Member Functions inherited from Agent | |
Agent (Coupling *cp, std::string mod, std::string obj, const char *agent_name, MPI_Comm com, bool wgm=false, bool skipio=false) | |
virtual | ~Agent () |
void | init_subscheduler (double t) |
void | callMethod (Scheduler_voidfn1_t fn, double t) |
void | schedule () |
double | max_timestep (double t, double dt) |
Action * | get_main_action () |
void | register_new_attribute (std::string target_window_, std::string attr_, char loc_, int type_, int ncomp_, const char *unit_) |
void | register_clone_attribute (int cond, std::string target_window_, std::string attr_, std::string parent_window_, std::string parent_attr_, int wg_=1, const char *ptnname_=0, int val_=0) |
void | register_use_attribute (std::string target_window_, std::string attr_, std::string parent_window_, std::string parent_attr_, int wg_=1, const char *ptnname_=0, int val_=0) |
void | create_registered_attributes (std::string tmpBuf) |
void | create_registered_window_attributes (std::string target_window) |
void | assign_attributes () |
void | add_data () |
void | add_icaction (Action *act) |
void | add_bcaction (Action *act, int l=1) |
void | add_bcinitaction (Action *act) |
void | add_gmaction (Action *act) |
void | init_callback (const char *surf_win, const char *vol_win, void *option=NULL) |
void | init_bcactions (double t) |
void | obtain_bc (double *a, int *l=NULL) |
void | init_gmactions (double t) |
void | obtain_gm (double *da) |
void | init_bcinitaction (double t) |
void | run_bcinitaction (double t, double dt) |
Coupling * | get_coupling () |
void | register_interpolate (InterpolateBase *ip) |
std::string | get_surface_window () const |
std::string | get_volume_window () const |
MPI_Comm | get_communicator () const |
std::string | get_rocmod_name () const |
std::string | get_modinstance_name () const |
std::string | get_agent_name () const |
int | get_comm_rank () const |
double | get_old_dt () const |
double * | get_integrals () |
void | print (FILE *f) |
void | get_time_string (double t, std::string &s) |
Public Attributes | |
std::string | ifluid |
std::string | fluid |
std::string | fluid_plag |
std::string | fluidSurfIn |
std::string | fluidVolIn |
std::string | fluidPlagIn |
std::string | fluidVPIn |
std::string | ifluid_all |
std::string | ifluid_i |
std::string | ifluid_b |
std::string | ifluid_nb |
std::string | ifluid_ni |
std::string | propBufAll |
std::string | fluidBufNG |
std::string | propBuf |
std::string | fluidBufB |
std::string | fluidBufNB |
std::string | fluidBufPC |
std::string | fluidBufBak |
std::string | fluidBufPRE |
std::string | fluidVolBak |
std::string | fluidPlagBak |
int | f_mdot_hdl |
int | f_mdot_pre_hdl |
int | f_ts_hdl |
int | f_ts_pre_hdl |
int | f_vm_hdl |
int | f_vm_pre_hdl |
int | nc_hdl |
int | nc_tmp_hdl |
int | sq_dist_hdl |
Protected Attributes | |
bool | with_plag |
string | plag_window |
int | with_solid |
Protected Attributes inherited from Agent | |
const std::string | agent_name |
MPI_Comm | communicator |
Coupling * | coupling |
PhysicsAction | action |
SchdulerList | bcScheduler |
UserScheduler | bcInitScheduler |
UserScheduler | gmScheduler |
UserScheduler | icScheduler |
int | comm_rank |
int | init_handle |
int | update_handle |
int | pre_hdf_handle |
int | post_hdf_handle |
int | finalize_handle |
int | compute_integrals_handle |
int | ic_handle |
int | bc_handle |
int | gm_handle |
bool | withgm |
int | dobackup |
string | rocmod_name |
string | mod_instance |
string | inDir |
string | outDir |
string | suffix |
double | initial_time |
double | timestamp |
double | current_time |
double | current_deltatime |
double | old_dt |
std::string | surf_window |
std::string | vol_window |
std::string | tmp_window |
void * | option_data |
InterpolateList | interpolateList |
AttributeList | attributeList |
int | pc_hdls [2][3] |
int | pc_count |
double | integrals [MAN_INTEG_SIZE] |
bool | skipInputIO |
Additional Inherited Members | |
Protected Types inherited from Agent | |
typedef vector< InterpolateBase * > | InterpolateList |
typedef vector< AttributeBase * > | AttributeList |
Protected Member Functions inherited from Agent | |
Scheduler * | get_bcScheduler (unsigned int level) |
void | init_function_handles () |
void | create_window (const char *window_name) |
void | split_surface_window (const std::string surfAll, const std::string surf_i, const std::string surf_nb, const std::string surf_b, const std::string surf_ni) |
int | read_by_control_file (double t, const std::string base, const std::string window) |
void | write_data_files (double t, const std::string base, const std::string attr, const char *ref=NULL) |
void | write_control_file (double t, const std::string base, const std::string window) |
virtual void | store_solutions (int converged) |
int | check_convergence_help (int vcur, int vpre, double tol, std::string str) |
Static Protected Attributes inherited from Agent | |
static int | read_by_control_handle =0 |
static int | read_files_handle =0 |
static int | obtain_attr_handle =0 |
static int | write_attr_handle =0 |
static int | write_ctrl_handle =0 |
Definition at line 29 of file FluidAgent.h.
FluidAgent | ( | Coupling * | coup, |
std::string | mod, | ||
std::string | obj, | ||
MPI_Comm | com, | ||
int | withSolid = 0 |
||
) |
Definition at line 41 of file FluidAgent.C.
References Agent::dobackup, fluid, fluid_plag, fluidBufB, fluidBufBak, fluidBufNB, fluidBufNG, fluidBufPC, fluidBufPRE, fluidPlagBak, fluidPlagIn, fluidSurfIn, fluidVolBak, fluidVolIn, fluidVPIn, ifluid, ifluid_all, ifluid_b, ifluid_i, ifluid_nb, ifluid_ni, load_module(), propBuf, propBufAll, Agent::tmp_window, and with_solid.
|
virtual |
Reimplemented from Agent.
Definition at line 551 of file FluidAgent.C.
References Agent::check_convergence_help(), f_mdot_hdl, f_mdot_pre_hdl, f_ts_hdl, f_ts_pre_hdl, f_vm_hdl, f_vm_pre_hdl, and MAN_DEBUG.
|
virtual |
Reimplemented from Agent.
Definition at line 562 of file FluidAgent.C.
References COM_call_function(), Agent::compute_integrals_handle, Agent::integrals, and MAN_DEBUG.
|
virtual |
Reimplemented from Agent.
Definition at line 202 of file FluidAgent.C.
References COM_call_function(), COM_clone_attribute(), COM_DOUBLE, COM_get_attribute_handle(), COM_INTEGER, COM_new_attribute(), COM_new_window(), COM_resize_array(), COM_use_attribute(), COM_window_init_done(), RocBlas::copy, Agent::create_buffer_all(), Agent::create_registered_window_attributes(), f_mdot_hdl, f_mdot_pre_hdl, f_ts_hdl, f_ts_pre_hdl, f_vm_hdl, f_vm_pre_hdl, fluidBufB, fluidBufBak, fluidBufNB, fluidBufNG, fluidBufPC, fluidBufPRE, fluidPlagBak, fluidVolBak, Agent::get_coupling(), Coupling::get_max_ipc(), ifluid_b, ifluid_i, ifluid_nb, ifluid_ni, nc_hdl, nc_tmp_hdl, Agent::pc_count, Agent::pc_hdls, plag_window, propBuf, propBufAll, read_restart_data(), sq_dist_hdl, Agent::surf_window, Agent::vol_window, with_plag, and with_solid.
|
virtual |
Reimplemented from Agent.
Definition at line 511 of file FluidAgent.C.
References COM_delete_window(), Agent::finalize(), fluidBufB, fluidBufBak, fluidBufNG, fluidBufPC, fluidBufPRE, fluidPlagBak, fluidVolBak, Agent::get_coupling(), Coupling::get_max_ipc(), ifluid_all, ifluid_b, ifluid_i, ifluid_nb, ifluid_ni, propBuf, propBufAll, with_plag, and with_solid.
|
virtual |
Reimplemented from Agent.
Definition at line 536 of file FluidAgent.C.
References COM_call_function(), RocBlas::copy, f_mdot_hdl, f_mdot_pre_hdl, f_ts_hdl, f_ts_pre_hdl, f_vm_hdl, f_vm_pre_hdl, Agent::init_convergence(), and MAN_DEBUG.
|
virtual |
Reimplemented from Agent.
Definition at line 159 of file FluidAgent.C.
References COM_call_function(), COM_delete_window(), Agent::communicator, fluidPlagIn, fluidSurfIn, fluidVolIn, fluidVPIn, Agent::ic_handle, Agent::init_handle, Agent::init_module(), MAN_DEBUG, Agent::obtain_attr_handle, plag_window, Agent::vol_window, and with_plag.
Referenced by Coupling::init().
|
virtual |
Implements Agent.
Definition at line 128 of file FluidAgent.C.
References COM_new_window(), COM_window_init_done(), Agent::communicator, fluid, fluid_plag, fluidPlagIn, fluidSurfIn, fluidVolIn, ifluid, and Agent::read_by_control_file().
|
virtual |
Reimplemented from Agent.
Definition at line 83 of file FluidAgent.C.
References COM_assertion_msg, COM_F_FUNC2, COM_load_module(), Agent::comm_rank, Agent::init_function_handles(), MAN_DEBUG, Agent::mod_instance, rocflo_load_module(), rocflu_load_module(), and Agent::rocmod_name.
Referenced by FluidAgent().
|
virtual |
Implements Agent.
Definition at line 466 of file FluidAgent.C.
References COM_call_function(), fluid, fluid_plag, ifluid_all, ifluid_b, ifluid_nb, ifluid_ni, plag_window, Agent::post_hdf_handle, Agent::pre_hdf_handle, Agent::surf_window, Agent::vol_window, with_plag, Agent::write_control_file(), and Agent::write_data_files().
Referenced by SurfDiver::run().
|
virtual |
Implements Agent.
Definition at line 507 of file FluidAgent.C.
|
virtual |
Reimplemented from Agent.
Definition at line 448 of file FluidAgent.C.
References COM_call_function(), COM_clone_attribute(), COM_get_attribute_handle(), COM_get_attribute_handle_const(), fluidSurfIn, ifluid_i, Agent::obtain_attr_handle, and propBufAll.
Referenced by create_buffer_all().
|
virtual |
Reimplemented from Agent.
Definition at line 106 of file FluidAgent.C.
References COM_close_module(), COM_F_FUNC2, COM_unload_module(), Agent::get_coupling(), Coupling::in_restart(), MAN_DEBUG, Agent::mod_instance, rocflo_unload_module(), rocflu_unload_module(), and Agent::rocmod_name.
int f_mdot_hdl |
Definition at line 90 of file FluidAgent.h.
Referenced by check_convergence(), create_buffer_all(), and init_convergence().
int f_mdot_pre_hdl |
Definition at line 90 of file FluidAgent.h.
Referenced by check_convergence(), create_buffer_all(), and init_convergence().
int f_ts_hdl |
Definition at line 90 of file FluidAgent.h.
Referenced by check_convergence(), create_buffer_all(), and init_convergence().
int f_ts_pre_hdl |
Definition at line 90 of file FluidAgent.h.
Referenced by check_convergence(), create_buffer_all(), and init_convergence().
int f_vm_hdl |
Definition at line 90 of file FluidAgent.h.
Referenced by check_convergence(), create_buffer_all(), and init_convergence().
int f_vm_pre_hdl |
Definition at line 90 of file FluidAgent.h.
Referenced by check_convergence(), create_buffer_all(), and init_convergence().
std::string fluid |
Definition at line 61 of file FluidAgent.h.
Referenced by FluidAgent(), input(), and output_restart_files().
std::string fluid_plag |
Definition at line 62 of file FluidAgent.h.
Referenced by FluidAgent(), input(), and output_restart_files().
std::string fluidBufB |
Definition at line 80 of file FluidAgent.h.
Referenced by create_buffer_all(), declare_fluid_actions(), finalize(), FluidAgent(), FluidBurnAlone::FluidBurnAlone(), LoadTransfer_FSc_ALE::init(), ComputeFluidLoad_ALE::init(), FluidPropagateSurface::init(), TransferBurnRate_FS_ALE::init(), MassTransfer_SF_ALE::init(), MassTransfer::init(), ZoomInterface::init(), and ComputeBurnPane::init().
std::string fluidBufBak |
Definition at line 84 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), and FluidAgent().
std::string fluidBufNB |
Definition at line 81 of file FluidAgent.h.
Referenced by create_buffer_all(), declare_fluid_actions(), and FluidAgent().
std::string fluidBufNG |
Definition at line 78 of file FluidAgent.h.
Referenced by _load_rocface(), create_buffer_all(), declare_fluid_actions(), finalize(), FluidAgent(), FluidBurnAlone::FluidBurnAlone(), HeatTransfer_FS::HeatTransfer_FS(), LoadTransfer_FS::init(), LoadTransfer_FSc_ALE::init(), SurfDiver::init(), MeshMotionTransfer_SF::init(), ComputeFluidLoad_ALE::init(), ComputeMeshMotion::init(), MeshMotionTransferISS::init(), TransferBurnRate_FS_ALE::init(), MassTransfer_SF_ALE::init(), TemperatureTransfer_SF::init(), HeatTransfer_FS::init(), MeshMotionTransferISS::MeshMotionTransferISS(), TemperatureTransfer_SF::TemperatureTransfer_SF(), and TransferSolidDensity::TransferSolidDensity().
std::string fluidBufPC |
Definition at line 83 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), and FluidAgent().
std::string fluidBufPRE |
Definition at line 85 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), and FluidAgent().
std::string fluidPlagBak |
Definition at line 88 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), and FluidAgent().
std::string fluidPlagIn |
Definition at line 66 of file FluidAgent.h.
Referenced by FluidAgent(), init_module(), and input().
std::string fluidSurfIn |
Definition at line 64 of file FluidAgent.h.
Referenced by FluidAgent(), init_module(), input(), and read_restart_data().
std::string fluidVolBak |
Definition at line 87 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), and FluidAgent().
std::string fluidVolIn |
Definition at line 65 of file FluidAgent.h.
Referenced by FluidAgent(), init_module(), and input().
std::string fluidVPIn |
Definition at line 67 of file FluidAgent.h.
Referenced by FluidAgent(), and init_module().
std::string ifluid |
Definition at line 60 of file FluidAgent.h.
Referenced by FluidAgent(), and input().
std::string ifluid_all |
Definition at line 69 of file FluidAgent.h.
Referenced by finalize(), FluidAgent(), and output_restart_files().
std::string ifluid_b |
Definition at line 73 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), FluidAgent(), and output_restart_files().
std::string ifluid_i |
Definition at line 70 of file FluidAgent.h.
Referenced by ComputeFluidLoad_ALE::ComputeFluidLoad_ALE(), create_buffer_all(), declare_fluid_actions(), DeformationVelTransfer_SF::DeformationVelTransfer_SF(), finalize(), FluidAgent(), LoadTransfer_FSc_ALE::LoadTransfer_FSc_ALE(), LoadTransferOnly_FSc_ALE::LoadTransferOnly_FSc_ALE(), MassTransfer_SF_ALE::MassTransfer_SF_ALE(), MeshMotionTransfer_SF::MeshMotionTransfer_SF(), read_restart_data(), and RemeshInit::RemeshInit().
std::string ifluid_nb |
Definition at line 74 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), FluidAgent(), and output_restart_files().
std::string ifluid_ni |
Definition at line 75 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), FluidAgent(), and output_restart_files().
int nc_hdl |
Definition at line 92 of file FluidAgent.h.
Referenced by create_buffer_all(), and FullyCoupling::update_distances().
int nc_tmp_hdl |
Definition at line 92 of file FluidAgent.h.
Referenced by create_buffer_all(), and FullyCoupling::update_distances().
|
protected |
Definition at line 53 of file FluidAgent.h.
Referenced by create_buffer_all(), init_module(), and output_restart_files().
std::string propBuf |
Definition at line 79 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), FluidAgent(), FluidBurnAlone::FluidBurnAlone(), and FluidPropagateSurface::init().
std::string propBufAll |
Definition at line 77 of file FluidAgent.h.
Referenced by ComputeMeshMotion::ComputeMeshMotion(), create_buffer_all(), finalize(), FluidAgent(), FluidBurnAlone::FluidBurnAlone(), FluidPropagateSurface::FluidPropagateSurface(), FluidPropagateSurface::init(), and read_restart_data().
int sq_dist_hdl |
Definition at line 92 of file FluidAgent.h.
Referenced by create_buffer_all(), and FullyCoupling::update_distances().
|
protected |
Definition at line 52 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), init_module(), and output_restart_files().
|
protected |
Definition at line 54 of file FluidAgent.h.
Referenced by create_buffer_all(), finalize(), and FluidAgent().