39 Action( 1, &at, NULL, NULL, (char *)
"SetValueDouble"),
v(val)
52 MAN_DEBUG(3, (
"Rocstar: SetValueDouble::run() %s with %e.\n",
attr[0],
v));
60 Action( 0, (const char**)NULL, NULL, NULL, (char *)
"CopyValue"), condition(cond)
85 Action( 0, (const char**)NULL, NULL, NULL, (char *)
"DummyPrint"),
86 bagent(bag), sagent(sag), fagent(fag), label(l)
95 MAN_DEBUG(3, (
"Rocstar: DummyPrint::init() with %s.\n",
label.c_str()));
99 MAN_DEBUG(3, (
"Rocstar: DummyPrint::run() with %s.\n",
label.c_str()));
113 Action( 0, (const char**)NULL, NULL, NULL, (char *)
"BCInvoker"),
136 Action( 0, (const char**)NULL, NULL, NULL, (char *)
"GMInvoker"),
157 Action( 0, (const char**)NULL, NULL, NULL, (char *)
"BCInitInvoker"),
182 const std::string f_pf,
const std::string fb_mdot,
183 const std::string b_rb,
184 const std::string f_ts) :
185 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ComputeFluidLoad_ALE"),
186 fagent(fag), sagent(sag)
247 MAN_DEBUG(3, (
"Rocstar: ComputeFluidLoad_ALE::run() with t:%e dt:%e.\n", t, dt));
287 if ( P_ambient != 0.0) {
297 const std::string a_vm,
const std::string f_du_alp,
double z):
298 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ComputeMeshMotion"),
301 int io[] = {
IN,
OUT};
323 MAN_DEBUG(3, (
"Rocstar: ComputeMeshMotion::run() with dt:%e alpha:%e.\n", dt, alpha));
325 COM_assertion_msg(alpha>=0.0,
"ERROR: ComputeMeshMotion called with invalid alpha!");
329 double time = alpha * dt;
353 std::string rocon_config_file(
"Rocon/RoconControl.txt");
362 MAN_DEBUG(3, (
"Rocstar: Loading module RocProp...\n"));
386 MAN_DEBUG(3, (
"Rocstar: Loading module RocMap...\n"));
392 const std::string b_nrml):
393 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ComputeFaceCenters"), agent(ag)
395 int io[] = {
IN,
OUT};
457 const std::string b_rb,
458 const std::string a_vm,
460 Action(0, (const char**)NULL, NULL, NULL, (char *)
"FluidPropagateSurface"), fagent(fag), bagent(bag), zoom(z)
462 int io[] = {
IN,
OUT};
511 if (zoom <= 0.0 || fagent->get_coupling()->initial_start() )
return;
515 MPI_Comm_rank(mycomm,&rank);
517 MAN_DEBUG(2, (
"Rocstar: FluidPropagateSurface::run() with t:%e dt:%e zoom:%f p_cnstr_type:%d.\n", t, dt,
zoom,
p_cnstr_type));
559 double data2 = 20000*dt;
586 double data = dt *
zoom;
590 std::cout <<
"Rocstar: Calling Rocprop" << std::endl;
595 std::cout <<
"Rocstar: Rocprop done." << std::endl;
602 std::cout <<
"Rocstar: Finding constraint intersections." << std::endl;
607 std::cout <<
"Rocstar: Reducing intersections." << std::endl;
612 std::cout <<
"Rocstar: Constraining displacements." << std::endl;
616 std::cout <<
"Rocstar: Displacements constrained." << std::endl;
656 const std::string b_rhos,
const std::string b_rb,
657 const std::string f_mdot):
658 Action(0, (const char**)NULL, NULL, NULL, (char *)
"MassTransfer"),
659 fagent(fag), bagent(bag)
682 MAN_DEBUG(3, (
"Rocstar: MassTransfer::run() with t:%e dt:%e.\n", t, dt));
698 const std::string fb_mdot_alp,
700 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ZoomInterface"),
701 fagent(fag), bagent(bag), zoom(z)
707 atts[0] = fb_mdot_alp;
721 if (
zoom <= 1.0)
return;
723 MAN_DEBUG(3, (
"Rocstar: ZoomInterface::run() with t:%e dt:%e zoom:%e.\n", t, dt,
zoom));
744 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ComputeRhofvf"),
752 atts[1] = f_rhof_alp;
753 atts[2] = f_rhofvf_alp;
765 MAN_DEBUG(3, (
"Rocstar: ComputeRhofvf::run() with t:%e dt:%e.\n", t, dt));
774 const std::string fb_mdot_alp,
const std::string rhofvf_alp,
776 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ComputeBurnPane"),
777 fagent(fag), bagent(bag), sagent(sag), zoom(z)
779 int io[] = {
IN,
OUT};
783 atts[0] = fb_mdot_alp;
784 atts[1] = rhofvf_alp;
799 MAN_DEBUG(3, (
"Rocstar: ComputeBurnPane::run() with t:%e dt:%e zoom:%f.\n", t, dt,
zoom));
828 Action(0, (const char**)NULL, NULL, NULL, (char *)
"CopyBurnFromParentMesh"),
829 bagent(bag), fagent(fag)
855 Action(0, (const char**)NULL, NULL, NULL, (char *)
"CopyBflagFromBurn"),
869 MAN_DEBUG(3, (
"Rocstar: CopyBflagFromBurn::run() with t:%e dt:%e.\n", t, dt));
881 Action(0, (const char**)NULL, NULL, NULL, (char *)
"ComputePconn"),
882 agent(ag), a_mesh_str(a_mesh), a_pconn_str(a_pconn), p_pmesh_str(p_pmesh), cond_addr(cond)
884 int io[3] = {
OUT,
OUT, OUT};
938 const std::string p_rb,
const std::string a_vbar,
double z):
939 Action(0, (const char**)NULL, NULL, NULL, (char *)
"SolidPropagateSurface"),
942 int io[] = {
IN,
OUT};
994 MPI_Comm_rank(mycomm,&rank);
996 std::cout <<
"Rocstar: SolidPropagateSurface_ALE::run() with t:"<< t
997 <<
"dt:" << dt <<
" zoom:" <<
zoom << std::endl;
1002 double dtz = dt*
zoom;
1007 std::cout <<
"Rocstar: Rocprop done" << std::endl;
1021 Action( 0, (const char**)NULL, NULL, NULL, (char *)
"Reset_du_alp"), fagent(fag)
1034 MAN_DEBUG(3, (
"Rocstar: Reset_du_alp::run().\n"));
DummyPrint(BurnAgent *bag, SolidAgent *sag, FluidAgent *fag, const std::string l)
void run(double t, double dt, double alpha)
void run(double t, double dt, double alpha)
SolidPropagateSurface_ALE(SolidAgent *ag, const std::string p_rb, const std::string a_vbar, double z)
Reset_du_alp(FluidAgent *fag)
ComputeFaceCenters(BurnAgent *ag, const std::string b_nc, const std::string b_cnts, const std::string b_nrml="")
void run_bcinitaction(double t, double dt)
BCInvoker(Agent *ag, int l=1)
void run(double t, double dt, double alpha)
int PROPCON_constrain_displacements
void run(double t, double dt, double alpha)
void run(double t, double dt, double alpha)
#define COM_assertion_msg(EX, msg)
std::string get_agent_name() const
static void load_rocprop(const RocmanControl_parameters *param, MPI_Comm comm)
void run(double t, double dt, double alpha)
void run(double t, double dt, double alpha)
int PROPCON_find_intersections
int get_attribute_handle(int i)
int COM_get_attribute_handle(const char *waname)
void run(double t, double dt, double alpha)
int get_attribute_handle_const(int i)
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 run(double t, double dt, double alpha)
static void load_rocsurf()
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
void register_new_attribute(std::string target_window_, std::string attr_, char loc_, int type_, int ncomp_, const char *unit_)
std::string get_surface_window() const
void run(double t, double dt, double alpha)
static void load_rocmap()
void obtain_bc(double *a, int *l=NULL)
ComputePconn(Agent *ag, std::string a_mesh, std::string a_pconn, std::string p_pmesh, int *cond=NULL)
ComputeBurnPane(FluidAgent *ag, BurnAgent *bag, SolidAgent *sag, const std::string fb_mdot_alp, const std::string rhofvf_alp, double z)
void int int int REAL REAL REAL * z
Coupling * get_coupling()
ComputeRhofvf(FluidAgent *ag, std::string f_vs_alp, std::string f_rhof_alp, std::string f_rhofvf_alp)
void set_io(int n, const int *io)
void run(double t, double dt, double alpha)
void COM_set_profiling_barrier(int hdl, MPI_Comm comm)
void run(double t, double dt, double alpha)
int PROPCON_find_intersections
SetZero(const std::string at)
CopyValue(const std::string from, const std::string to, int *cond=NULL)
void COM_call_function(const int wf, int argc,...)
ComputeMeshMotion(FluidAgent *ag, const std::string a_vm, const std::string f_du_alp, double z)
void run(double t, double dt, double alpha)
int COM_get_attribute_handle_const(const char *waname)
int COM_get_window_handle(const char *wname)
void run(double t, double dt, double alpha)
ComputeFluidLoad_ALE(FluidAgent *fag, SolidAgent *sag, const std::string f_pf, const std::string fb_mdot, const std::string b_rb, const std::string f_ts)
void run(double t, double dt, double alpha)
void obtain_gm(double *da)
unsigned long time()
Get the value of a system timer with a millisecond precision.
int PROPCON_burnout_filter
void run(double t, double dt, double alpha)
void COM_copy_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Copy an attribute onto another.
void set_attr(int n, const std::string at[], int *id=NULL)
const RocmanControl_parameters * get_rocmancontrol_param()
MassTransfer(FluidAgent *ag, BurnAgent *bag, const std::string b_rhos, const std::string b_rb, const std::string f_mdot)
int PROPCON_constrain_displacements
ZoomInterface(FluidAgent *ag, BurnAgent *bag, const std::string fb_mdot_alp, double z)
FluidPropagateSurface(FluidAgent *ag, BurnAgent *bag, const std::string b_rb, const std::string a_vm, double z)
void run(double t, double dt, double alpha)
MPI_Comm get_communicator() const
void init_bcinitaction(double t)
void run(double t, double dt, double alpha)
CopyBurnFromParentMesh(BurnAgent *bag, FluidAgent *fag)
CopyBflagFromBurn(BurnAgent *bag)
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)
const Control_parameters * get_control_param()
void run(double t, double dt, double alpha)
int initial_start() const
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
SetValueDouble(const std::string at, const double val)
int COM_get_function_handle(const char *wfname)
void init_bcactions(double t)
void init_gmactions(double t)
static void load_rocon(const RocmanControl_parameters *param, MPI_Comm comm)
#define COM_EXTERN_MODULE(moduleName)