50 MAN_DEBUG(3, (
"Rocstar: load module RocFace.\n"));
73 std::string fluid_dir = rfc_dir+
"ifluid";
74 std::string solid_dir = rfc_dir+
"isolid";
77 MAN_DEBUG(2, (
"Rocstar: read RocFace overlay mesh from %s.\n", rfc_dir.c_str()));
80 COM_call_function( RFC_read, &fluid_mesh, &solid_mesh, &comm, fluid_dir.c_str(), solid_dir.c_str(),
"CGNS");
96 Action(0, (const char **)NULL, NULL, NULL, name),
97 fagent(fag), sagent(sag)
106 const std::string f_ts,
107 const std::string s_ts,
108 const std::string s_pf) :
110 f_ts_str(f_ts), s_ts_str(s_ts), s_pf_str(s_pf)
130 std::string::size_type pos =
f_ts_str.find(
".");
132 std::string f =
f_ts_str.substr( 0, pos);
149 COM_assertion_msg(0,
"If traction mode is with sheer, then solid tractions must be vectors!");
175 MAN_DEBUG(3, (
"Rocstar: LoadTransfer_FS::run() with t:%e dt:%e.\n", t, dt));
209 const std::string f_pf,
210 const std::string fb_mdot,
211 const std::string b_rb,
212 const std::string s_ts,
213 const std::string s_pf) :
254 COM_assertion_msg(0,
"If traction mode is with sheer, then solid tractions must be vectors!");
289 MAN_DEBUG(3, (
"Rocstar: LoadTransfer_FSc_ALE::run() with t:%e dt:%e.\n", t, dt));
333 if ( P_ambient != 0.0) {
352 COM_assertion_msg(0,
"If traction mode is with sheer, then solid tractions must be vectors!");
365 const std::string f_ts,
366 const std::string s_ts,
367 const std::string s_pf) :
371 int io[] = {
IN,
OUT, OUT};
406 COM_assertion_msg(0,
"If traction mode is with sheer, then solid tractions must be vectors!");
428 MAN_DEBUG(3, (
"Rocstar: LoadTransferOnly_FSc_ALE::run() with t:%e dt:%e.\n", t, dt));
441 COM_assertion_msg(0,
"If traction mode is with sheer, then solid tractions must be vectors!");
470 s_x_str(s_x), s_uhat_str(s_uhat), s_y_str(s_y)
516 MAN_DEBUG(3, (
"Rocstar: calling GetDeformedMesh::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
523 s_x_str(s_x), s_uhat_str(s_uhat), s_y_str(s_y), zoom(z)
581 MAN_DEBUG(3, (
"Rocstar: calling GetDeformedMesh_ALE::run() with t:%e dt:%e alpha:%e withALE=%d zoom=%e.\n", t, dt, alpha,
withALE,
zoom));
606 printf(
"Rocstar ERROR: Negative mdot found %e. Aborting...\n", mdot_min);
635 const std::string s_u,
const std::string f_total_disp,
636 const std::string f_vm):
646 atts[2] = f_total_disp;
685 MAN_DEBUG(3, (
"Rocstar: calling MeshMotionTransfer_SF::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
703 SolidAgent *sag,
const std::string s_vs,
const std::string f_vs):
705 s_vs_str(s_vs), f_vs_str(f_vs)
729 MAN_DEBUG(3, (
"Rocstar: DeformationVelTransfer_SF::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
738 s_u_str(s_u), s_vs_str(s_vs), f_vm_str(f_vm)
750 std::string::size_type pos =
f_vm_str.find(
".");
752 std::string f =
f_vm_str.substr( 0, pos);
788 MAN_DEBUG(3, (
"Rocstar: calling MeshMotionTransferISS::run() with t:%e dt:%e.\n", t, dt));
813 const std::string s_rhos,
const std::string f_rhos):
815 s_rhos_str(s_rhos), f_rhos_str(f_rhos)
817 int io[] = {
IN,
OUT};
834 MAN_DEBUG(3, (
"Rocstar: TransferSolidDensity::init() with t:%e.\n", t));
846 MAN_DEBUG(3, (
"Rocstar: TransferSolidDensity::run() with rhs_mode=%d t:%e dt:%e alpha:%e.\n", rhos_mode, t, dt, alpha));
852 else if (rhos_mode == 3)
861 const std::string b_rb,
const std::string s_rb):
863 b_rb_str(b_rb), s_rb_str(s_rb)
865 int io[] = {
IN,
OUT};
896 MAN_DEBUG(3, (
"Rocstar: TransferBurnRate_FS_ALE::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
918 BurnAgent *bag,
const std::string f_mdot):
970 const std::string s_Ts,
971 const std::string fb_Tflm,
const std::string fn_Tb):
974 int io[] = {
IN,
OUT, OUT};
986 std::string::size_type pos = fn_Tb.find(
".");
988 std::string fn = fn_Tb.substr( 0, pos);
989 std::string Tb = fn_Tb.substr( pos, fn_Tb.size());
1026 const std::string f_qc,
const std::string f_qr,
1027 const std::string b_qev,
const std::string s_qs):
1033 std::string atts[4];
1089 if (traction_mode ==
NO_SHEER && size_ts == 3) {
1092 else if ( traction_mode ==
NO_SHEER && size_ts == 1) {
1105 std::cerr <<
"Rocstar WARNING: No qev is obtained! " << std::endl;
1118 else if (size_ts == 1) {
1119 COM_assertion_msg(0,
"If traction mode is with sheer, then solid tractions must be vectors!");
1131 const std::string s_u,
const std::string f_total_disp,
1132 const std::string f_nc,
const std::string f_nc_t0):
1138 std::string atts[4];
1140 atts[1] = f_total_disp;
1160 MAN_DEBUG(3, (
"Rocstar: calling RemeshInit::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
void run(double t, double dt, double alpha)
here we put it at the!beginning of the common block The point to point and collective!routines know about but MPI_TYPE_STRUCT as yet does not!MPI_STATUS_IGNORE and MPI_STATUSES_IGNORE are similar objects!Until the underlying MPI library implements the C version of these are declared as arrays of MPI_STATUS_SIZE!The types and are OPTIONAL!Their values are zero if they are not available Note that!using these reduces the portability of MPI_IO INTEGER MPI_BOTTOM INTEGER MPI_DOUBLE_PRECISION INTEGER MPI_LOGICAL INTEGER MPI_2REAL INTEGER MPI_2DOUBLE_COMPLEX INTEGER MPI_LB INTEGER MPI_WTIME_IS_GLOBAL INTEGER MPI_COMM_WORLD
TransferSolidDensity(FluidAgent *fag, SolidAgent *sag, const std::string s_rhos, const std::string f_rhos)
TemperatureTransfer_SF(SolidAgent *sag, FluidAgent *ag, const std::string s_Tf, const std::string fb_Tflm_alp, const std::string fn_Tb)
std::string get_modinstance_name() const
here we put it at the!beginning of the common block The point to point and collective!routines know about but MPI_TYPE_STRUCT as yet does not!MPI_STATUS_IGNORE and MPI_STATUSES_IGNORE are similar objects!Until the underlying MPI library implements the C version of these are declared as arrays of MPI_STATUS_SIZE!The types and are OPTIONAL!Their values are zero if they are not available Note that!using these reduces the portability of MPI_IO INTEGER MPI_BOTTOM INTEGER MPI_DOUBLE_PRECISION INTEGER MPI_LOGICAL INTEGER MPI_2REAL INTEGER MPI_2DOUBLE_COMPLEX INTEGER MPI_LB INTEGER MPI_WTIME_IS_GLOBAL INTEGER MPI_COMM_SELF
void COM_get_attribute(const std::string wa_str, char *loc, int *type, int *ncomp, std::string *unit)
void load_rocface(const RocmanControl_parameters *param)
#define COM_assertion_msg(EX, msg)
void run(double t, double dt, double alpha)
LoadTransfer_FSc_ALE(FluidAgent *fag, SolidAgent *sag, BurnAgent *bag, const std::string f_pf, const std::string fb_mdot, const std::string b_rb, const std::string s_ts, const std::string s_pf)
void run(double t, double dt, double alpha)
static int min_scalar_MPI
int SURF_compute_face_normals
void COM_get_array(const char *wa_str, int pane_id, void **addr, int *strd, int *cap)
Get the address for an attribute on a specific pane.
MeshMotionTransfer_SF(FluidAgent *fag, SolidAgent *sag, const std::string s_u, const std::string f_total_disp, const std::string f_vm)
int get_attribute_handle(int i)
int COM_get_attribute_handle(const char *waname)
int get_attribute_handle_const(int i)
int SURF_compute_face_normals
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)
HeatTransfer_FS(FluidAgent *ag, SolidAgent *sag, BurnAgent *bag, const std::string f_qc, const std::string f_qr, const std::string fb_qev, const std::string s_qs)
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
MassTransfer_SF_ALE(FluidAgent *ag, SolidAgent *sag, BurnAgent *bag, const std::string f_mdot)
void int int int REAL REAL REAL * z
Coupling * get_coupling()
RemeshInit(FluidAgent *fag, SolidAgent *sag, const std::string s_u, const std::string f_total_disp, const std::string f_nc, const std::string f_nc_t0)
TransferBurnRate_FS_ALE(FluidAgent *fag, SolidAgent *sag, const std::string b_rb, const std::string s_rb)
LoadTransfer_FS(FluidAgent *fag, SolidAgent *sag, const std::string f_ts, const std::string s_ts, const std::string s_pf)
void set_io(int n, const int *io)
int SURF_compute_face_normals
void COM_set_profiling_barrier(int hdl, MPI_Comm comm)
void run(double t, double dt, double alpha)
void _load_rocface(FluidAgent *fagent, SolidAgent *sagent, const RocmanControl_parameters *param)
void run(double t, double dt, double alpha)
void run(double t, double dt, double alpha)
void COM_call_function(const int wf, int argc,...)
int COM_get_attribute_handle_const(const char *waname)
int COM_get_window_handle(const char *wname)
InterMeshTransfer(FluidAgent *fag, SolidAgent *sag, char *name=NULL)
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.
int get_comm_rank() const
void set_attr(int n, const std::string at[], int *id=NULL)
static void load_rocsurf()
const RocmanControl_parameters * get_rocmancontrol_param()
void run(double t, double dt, double alpha)
MeshMotionTransferISS(FluidAgent *fag, SolidAgent *sag, const std::string s_u, const std::string s_vs, const std::string f_vm)
void compute_overlay(FluidAgent *fagent, SolidAgent *sagent, double t)
MPI_Comm get_communicator() const
void run(double t, double dt, double alpha)
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()
int initial_start() const
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
int COM_get_function_handle(const char *wfname)
void run(double t, double dt, double alpha)
LoadTransferOnly_FSc_ALE(FluidAgent *fag, SolidAgent *sag, BurnAgent *bag, const std::string f_ts, const std::string s_ts, const std::string s_pf)
void run(double t, double dt, double alpha)
#define COM_EXTERN_MODULE(moduleName)