#include <BurnAgent.h>
Public Member Functions | |
BurnAgent (Coupling *coup, std::string mod, std::string obj, MPI_Comm com, const std::string parent) | |
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 () |
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 |
virtual void | init_convergence (int iPredCorr) |
virtual int | check_convergence (double tolerMass, double tolerTract, double tolerVelo) |
virtual int | compute_integrals () |
double * | get_integrals () |
void | print (FILE *f) |
void | get_time_string (double t, std::string &s) |
Public Attributes | |
std::string | parentWin |
std::string | iburn_all |
std::string | iburn_ng |
std::string | iburn |
std::string | burn |
std::string | burnSurfIN |
std::string | burnVolIN |
std::string | burnIntBak |
std::string | burnBufOUT |
bool | ignmodel |
Protected Attributes | |
int | tbl_flag |
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 |
Static Protected Attributes | |
static const char * | window_name = "BurnAgent" |
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 |
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) |
Definition at line 29 of file BurnAgent.h.
BurnAgent | ( | Coupling * | coup, |
std::string | mod, | ||
std::string | obj, | ||
MPI_Comm | com, | ||
const std::string | parent | ||
) |
Definition at line 39 of file BurnAgent.C.
References burn, Control_parameters::burn_module, burnBufOUT, burnIntBak, burnSurfIN, burnVolIN, Coupling::get_control_param(), iburn, iburn_all, iburn_ng, ignmodel, load_module(), and Agent::tmp_window.
|
virtual |
Reimplemented from Agent.
Definition at line 149 of file BurnAgent.C.
References burnBufOUT, burnIntBak, COM_clone_attribute(), COM_get_attribute_handle(), COM_get_attribute_handle_const(), COM_new_window(), COM_use_attribute(), COM_window_init_done(), Agent::create_buffer_all(), Agent::create_registered_window_attributes(), Agent::get_coupling(), Coupling::get_max_ipc(), iburn_all, iburn_ng, MAN_DEBUG, parentWin, Agent::pc_count, Agent::pc_hdls, read_restart_data(), Agent::surf_window, and Agent::vol_window.
|
virtual |
Reimplemented from Agent.
Definition at line 284 of file BurnAgent.C.
References burnIntBak, COM_delete_window(), Agent::finalize(), Agent::get_coupling(), Coupling::get_max_ipc(), iburn_all, and iburn_ng.
|
virtual |
Reimplemented from Agent.
Definition at line 110 of file BurnAgent.C.
References burnSurfIN, burnVolIN, COM_call_function(), COM_delete_window(), COM_get_attribute_handle_const(), COM_use_attribute(), COM_window_init_done(), Agent::communicator, Agent::get_coupling(), Agent::ic_handle, Agent::init_handle, Agent::init_module(), Coupling::initial_start(), MAN_DEBUG, Agent::obtain_attr_handle, Agent::option_data, parentWin, and tbl_flag.
|
virtual |
Implements Agent.
Definition at line 95 of file BurnAgent.C.
References burn, burnSurfIN, burnVolIN, COM_new_window(), COM_window_init_done(), iburn, and Agent::read_by_control_file().
|
virtual |
Reimplemented from Agent.
Definition at line 68 of file BurnAgent.C.
References COM_assertion_msg, COM_F_FUNC2, COM_load_module(), Agent::comm_rank, Agent::init_function_handles(), MAN_DEBUG, Agent::mod_instance, rocburn_load_module(), and Agent::rocmod_name.
Referenced by BurnAgent().
|
virtual |
Implements Agent.
Definition at line 257 of file BurnAgent.C.
References burn, burnBufOUT, Agent::surf_window, Agent::vol_window, Agent::write_control_file(), and Agent::write_data_files().
|
virtual |
Implements Agent.
Definition at line 280 of file BurnAgent.C.
|
virtual |
Reimplemented from Agent.
Definition at line 250 of file BurnAgent.C.
References burnSurfIN, COM_call_function(), COM_get_attribute_handle(), COM_get_attribute_handle_const(), iburn_all, and Agent::obtain_attr_handle.
Referenced by create_buffer_all().
|
virtual |
Reimplemented from Agent.
Definition at line 81 of file BurnAgent.C.
References COM_assertion_msg, COM_close_module(), COM_F_FUNC2, COM_unload_module(), Agent::get_coupling(), Coupling::in_restart(), MAN_DEBUG, Agent::mod_instance, rocburn_unload_module(), and Agent::rocmod_name.
std::string burn |
Definition at line 59 of file BurnAgent.h.
Referenced by BurnAgent(), input(), and output_restart_files().
std::string burnBufOUT |
Definition at line 67 of file BurnAgent.h.
Referenced by BurnAgent(), create_buffer_all(), and output_restart_files().
std::string burnIntBak |
Definition at line 65 of file BurnAgent.h.
Referenced by BurnAgent(), create_buffer_all(), and finalize().
std::string burnSurfIN |
Definition at line 62 of file BurnAgent.h.
Referenced by BurnAgent(), init_module(), input(), and read_restart_data().
std::string burnVolIN |
Definition at line 63 of file BurnAgent.h.
Referenced by BurnAgent(), init_module(), and input().
std::string iburn |
Definition at line 58 of file BurnAgent.h.
Referenced by BurnAgent(), and input().
std::string iburn_all |
Definition at line 54 of file BurnAgent.h.
Referenced by BurnAgent(), create_buffer_all(), finalize(), MassTransfer::MassTransfer(), MassTransfer_SF_ALE::MassTransfer_SF_ALE(), and read_restart_data().
std::string iburn_ng |
Definition at line 55 of file BurnAgent.h.
Referenced by BurnAgent(), create_buffer_all(), finalize(), FluidBurnAlone::FluidBurnAlone(), MassTransfer_SF_ALE::init(), ZoomInterface::init(), and ComputeBurnPane::init().
bool ignmodel |
Definition at line 68 of file BurnAgent.h.
Referenced by BurnAgent(), and CopyBflagFromBurn::run().
std::string parentWin |
Definition at line 51 of file BurnAgent.h.
Referenced by create_buffer_all(), CopyBurnFromParentMesh::init(), CopyBflagFromBurn::init(), init_module(), MassTransfer::MassTransfer(), and MassTransfer_SF_ALE::MassTransfer_SF_ALE().
|
protected |
Definition at line 49 of file BurnAgent.h.
Referenced by init_module().
|
staticprotected |
Definition at line 48 of file BurnAgent.h.