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

#include <transfer_actions.h>

Inheritance diagram for TransferBurnRate_FS_ALE:
Collaboration diagram for TransferBurnRate_FS_ALE:

Public Member Functions

 TransferBurnRate_FS_ALE (FluidAgent *fag, SolidAgent *sag, const std::string b_rb, const std::string s_rb)
 
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

std::string b_rb_str
 
std::string s_rb_str
 
int b_rb_hdl
 
int p_rb_hdl
 
int s_rb_hdl
 
int f_mdot_tmp_hdl
 
int fb_mdot_tmp_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 176 of file transfer_actions.h.

Constructor & Destructor Documentation

TransferBurnRate_FS_ALE ( FluidAgent fag,
SolidAgent sag,
const std::string  b_rb,
const std::string  s_rb 
)
explicit

Definition at line 859 of file transfer_actions.C.

References Action::IN, Action::OUT, Action::set_attr(), and Action::set_io().

861  :
862  InterMeshTransfer(fag, sag, (char *)"TransferBurnRate_FS_ALE"),
863  b_rb_str(b_rb), s_rb_str(s_rb)
864 {
865  int io[] = {IN, OUT};
866  set_io( 2, io);
867 
868  std::string atts[2];
869  atts[0] = b_rb;
870  atts[1] = s_rb;
871  set_attr(2, atts);
872 }
void set_io(int n, const int *io)
Definition: Action.h:70
InterMeshTransfer(FluidAgent *fag, SolidAgent *sag, char *name=NULL)
void set_attr(int n, const std::string at[], int *id=NULL)
Definition: Action.C:66

Here is the call graph for this function:

Member Function Documentation

void init ( double  t)
virtual

Reimplemented from Action.

Definition at line 874 of file transfer_actions.C.

References b_rb_hdl, COM_get_attribute_handle(), COM_get_function_handle(), f_mdot_tmp_hdl, InterMeshTransfer::fagent, fb_mdot_tmp_hdl, FluidAgent::fluidBufB, FluidAgent::fluidBufNG, Action::get_attribute_handle(), Agent::get_coupling(), Coupling::get_rocmancontrol_param(), InterMeshTransfer::load_rocface(), p_rb_hdl, RocmanControl_parameters::PROP_fom, SolidAgent::propBuf, SolidAgent::propBufAll, RFC_transfer, s_rb_hdl, InterMeshTransfer::sagent, and SolidAgent::withALE.

874  {
875  if (sagent->withALE == 0) return;
876 
879  int PROP_fom = fagent->get_coupling()->get_rocmancontrol_param()->PROP_fom;
880  if ( PROP_fom) {
882  }
883  else {
885  }
888 
890  RFC_transfer = COM_get_function_handle("RFC.least_squares_transfer");
891 }
SolidAgent * sagent
void load_rocface(const RocmanControl_parameters *param)
std::string fluidBufB
Definition: FluidAgent.h:80
int withALE
Definition: SolidAgent.h:84
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 propBuf
Definition: SolidAgent.h:70
Coupling * get_coupling()
Definition: Agent.h:213
std::string fluidBufNG
Definition: FluidAgent.h:78
std::string propBufAll
Definition: SolidAgent.h:69
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 893 of file transfer_actions.C.

References b_rb_hdl, COM_call_function(), RocBlas::copy, RocBlas::copy_scalar, f_mdot_tmp_hdl, fb_mdot_tmp_hdl, MAN_DEBUG, p_rb_hdl, RFC_transfer, s_rb_hdl, InterMeshTransfer::sagent, and SolidAgent::withALE.

893  {
894  if (sagent->withALE == 0) return;
895 
896  MAN_DEBUG(3, ("Rocstar: TransferBurnRate_FS_ALE::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
897 
898  // Transfer rb from fluid faces to solid faces
899  double zero = 0.0;
901 
902  // Here we use f_mdot_tmp as buffer space for holding f_rb
904 
906 
908 }
SolidAgent * sagent
int withALE
Definition: SolidAgent.h:84
static int copy
Definition: RocBlas.h:34
static int copy_scalar
Definition: RocBlas.h:43
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48
#define MAN_DEBUG(l, x)
Definition: rocman.h:98

Here is the call graph for this function:

Member Data Documentation

int b_rb_hdl
private

Definition at line 183 of file transfer_actions.h.

Referenced by init(), and run().

std::string b_rb_str
private

Definition at line 182 of file transfer_actions.h.

int f_mdot_tmp_hdl
private

Definition at line 183 of file transfer_actions.h.

Referenced by init(), and run().

int fb_mdot_tmp_hdl
private

Definition at line 183 of file transfer_actions.h.

Referenced by init(), and run().

int p_rb_hdl
private

Definition at line 183 of file transfer_actions.h.

Referenced by init(), and run().

int RFC_transfer
private

Definition at line 184 of file transfer_actions.h.

Referenced by init(), and run().

int s_rb_hdl
private

Definition at line 183 of file transfer_actions.h.

Referenced by init(), and run().

std::string s_rb_str
private

Definition at line 182 of file transfer_actions.h.


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