Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MassTransfer_SF_ALE Class Reference

#include <transfer_actions.h>

Inheritance diagram for MassTransfer_SF_ALE:
Collaboration diagram for MassTransfer_SF_ALE:

Public Member Functions

 MassTransfer_SF_ALE (FluidAgent *ag, SolidAgent *sag, BurnAgent *bag, const std::string f_mdot)
 
void init (double t)
 
void run (double t, double dt, double alpha)
 
- Public Member Functions inherited from InterMeshTransfer
 InterMeshTransfer (FluidAgent *fag, SolidAgent *sag, char *name=NULL)
 
- Public Member Functions inherited from Action
 Action (void *p=0, char *name=NULL)
 
 Action (int n, const char *at[], int *i=NULL, void *p=0, char *name=NULL)
 
 Action (int n, const std::string at[], int *i=NULL, void *p=0, char *name=NULL)
 
virtual ~Action ()
 
virtual void declare (Scheduler &)
 
virtual void finalize ()
 
virtual char * name ()
 
void set_name (const char *name)
 
virtual void print (FILE *f)
 
virtual void print_toposort (FILE *f)
 
virtual void schedule ()
 

Private Attributes

BurnAgentbagent
 
int f_mdot_hdl
 
int b_rhos_hdl
 
int b_rb_hdl
 
int fb_mdot_hdl
 
int f_total_disp_hdl
 
int f_nc_hdl
 
int f_nc_t0_hdl
 
int s_mdot_hdl
 
int RFC_transfer
 

Additional Inherited Members

- Protected Types inherited from Action
enum  { IN =1, OUT =2, INOUT =3 }
 
- Protected Member Functions inherited from InterMeshTransfer
void load_rocface (const RocmanControl_parameters *param)
 
- Protected Member Functions inherited from Action
int get_attribute_handle (int i)
 
int get_attribute_handle_const (int i)
 
int get_attribute_handle (const std::string str)
 
void set_attr (int n, const std::string at[], int *id=NULL)
 
void set_attr (int n, const char *at[], int *id=NULL)
 
void set_io (int n, const int *io)
 
void set_io (const char *io)
 
int get_io (int i)
 
- Protected Attributes inherited from InterMeshTransfer
FluidAgentfagent
 
SolidAgentsagent
 
- Protected Attributes inherited from Action
char * action_name
 
char ** attr
 
int * idx
 
int count
 
void * usr_ptr
 
std::vector< int > inout
 

Detailed Description

Definition at line 187 of file transfer_actions.h.

Constructor & Destructor Documentation

MassTransfer_SF_ALE ( FluidAgent ag,
SolidAgent sag,
BurnAgent bag,
const std::string  f_mdot 
)

Definition at line 917 of file transfer_actions.C.

References bagent, COM_DOUBLE, InterMeshTransfer::fagent, BurnAgent::iburn_all, FluidAgent::ifluid_i, Action::OUT, BurnAgent::parentWin, Agent::register_new_attribute(), Agent::register_use_attribute(), Action::set_attr(), and Action::set_io().

918  :
919  InterMeshTransfer(fag, sag, (char *)"MassTransfer_SF_ALE"),
920  bagent(bag)
921 {
922  int io[] = {OUT};
923  set_io( 1, io);
924 
925  std::string atts[1];
926  atts[0] = f_mdot;
927  set_attr(1, atts);
928 
929  fagent->register_new_attribute(fagent->ifluid_i, ".rhos", 'e', COM_DOUBLE, 1, "kg/(m^3)");
930  fagent->register_new_attribute(fagent->ifluid_i, ".mdot", 'e', COM_DOUBLE, 1, "kg/(m^2 s)");
932 }
FluidAgent * fagent
void register_new_attribute(std::string target_window_, std::string attr_, char loc_, int type_, int ncomp_, const char *unit_)
Definition: Agent.C:322
std::string ifluid_i
Definition: FluidAgent.h:70
void set_io(int n, const int *io)
Definition: Action.h:70
std::string iburn_all
Definition: BurnAgent.h:54
InterMeshTransfer(FluidAgent *fag, SolidAgent *sag, char *name=NULL)
void set_attr(int n, const std::string at[], int *id=NULL)
Definition: Action.C:66
std::string parentWin
Definition: BurnAgent.h:51
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)
Definition: Agent.C:334

Here is the call graph for this function:

Member Function Documentation

void init ( double  t)
virtual

Reimplemented from Action.

Definition at line 934 of file transfer_actions.C.

References b_rb_hdl, b_rhos_hdl, bagent, COM_get_attribute_handle(), COM_get_function_handle(), f_mdot_hdl, f_nc_hdl, f_nc_t0_hdl, f_total_disp_hdl, InterMeshTransfer::fagent, fb_mdot_hdl, FluidAgent::fluidBufB, FluidAgent::fluidBufNG, Action::get_attribute_handle(), Agent::get_coupling(), Coupling::get_rocmancontrol_param(), BurnAgent::iburn_ng, InterMeshTransfer::load_rocface(), RFC_transfer, s_mdot_hdl, InterMeshTransfer::sagent, and SolidAgent::solidBuf.

934  {
935  //f_mdot_hdl = COM_get_attribute_handle( fagent->fluidBufNG+".mdot");
937 
941 
942  // ALE
947 
949  RFC_transfer = COM_get_function_handle("RFC.least_squares_transfer");
950 }
SolidAgent * sagent
void load_rocface(const RocmanControl_parameters *param)
std::string fluidBufB
Definition: FluidAgent.h:80
FluidAgent * fagent
int get_attribute_handle(int i)
Definition: Action.C:93
int COM_get_attribute_handle(const char *waname)
Definition: roccom_c++.h:412
std::string iburn_ng
Definition: BurnAgent.h:55
Coupling * get_coupling()
Definition: Agent.h:213
std::string fluidBufNG
Definition: FluidAgent.h:78
std::string solidBuf
Definition: SolidAgent.h:68
const RocmanControl_parameters * get_rocmancontrol_param()
Definition: Coupling.h:184
int COM_get_function_handle(const char *wfname)
Definition: roccom_c++.h:428

Here is the call graph for this function:

void run ( double  t,
double  dt,
double  alpha 
)
virtual

Reimplemented from Action.

Definition at line 952 of file transfer_actions.C.

References RocBlas::add, b_rb_hdl, b_rhos_hdl, COM_call_function(), RocBlas::copy_scalar, f_mdot_hdl, f_nc_hdl, f_nc_t0_hdl, f_total_disp_hdl, InterMeshTransfer::fagent, fb_mdot_hdl, Agent::get_comm_rank(), MAN_DEBUG, RocBlas::mul, RFC_transfer, s_mdot_hdl, InterMeshTransfer::sagent, and SolidAgent::withALE.

952  {
953  MAN_DEBUG(3, ("[%d] Rocstar: MassTransfer_SF_ALE::run() with t:%e dt:%e.\n", fagent->get_comm_rank(), t, dt));
954 
955  if (sagent->withALE) {
958  }
959  else {
960  double zero = 0.0;
963  }
964 }
SolidAgent * sagent
int withALE
Definition: SolidAgent.h:84
FluidAgent * fagent
static int copy_scalar
Definition: RocBlas.h:43
static int add
Definition: RocBlas.h:35
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48
#define MAN_DEBUG(l, x)
Definition: rocman.h:98
int get_comm_rank() const
Definition: Agent.h:224
static int mul
Definition: RocBlas.h:38

Here is the call graph for this function:

Member Data Documentation

int b_rb_hdl
private

Definition at line 194 of file transfer_actions.h.

Referenced by init(), and run().

int b_rhos_hdl
private

Definition at line 194 of file transfer_actions.h.

Referenced by init(), and run().

BurnAgent* bagent
private

Definition at line 193 of file transfer_actions.h.

Referenced by init(), and MassTransfer_SF_ALE().

int f_mdot_hdl
private

Definition at line 194 of file transfer_actions.h.

Referenced by init(), and run().

int f_nc_hdl
private

Definition at line 195 of file transfer_actions.h.

Referenced by init(), and run().

int f_nc_t0_hdl
private

Definition at line 195 of file transfer_actions.h.

Referenced by init(), and run().

int f_total_disp_hdl
private

Definition at line 195 of file transfer_actions.h.

Referenced by init(), and run().

int fb_mdot_hdl
private

Definition at line 194 of file transfer_actions.h.

Referenced by init(), and run().

int RFC_transfer
private

Definition at line 196 of file transfer_actions.h.

Referenced by init(), and run().

int s_mdot_hdl
private

Definition at line 195 of file transfer_actions.h.

Referenced by init(), and run().


The documentation for this class was generated from the following files: