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

#include <transfer_actions.h>

Inheritance diagram for TemperatureTransfer_SF:
Collaboration diagram for TemperatureTransfer_SF:

Public Member Functions

 TemperatureTransfer_SF (SolidAgent *sag, FluidAgent *ag, const std::string s_Tf, const std::string fb_Tflm_alp, const std::string fn_Tb)
 
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

int s_Ts_hdl
 
int fb_Tflm_hdl
 
int fn_Tb_hdl
 
int f_Ts_hdl
 
int bcflag_hdl
 
int RFC_interpolate
 
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 199 of file transfer_actions.h.

Constructor & Destructor Documentation

TemperatureTransfer_SF ( SolidAgent sag,
FluidAgent ag,
const std::string  s_Tf,
const std::string  fb_Tflm_alp,
const std::string  fn_Tb 
)

Definition at line 969 of file transfer_actions.C.

References COM_assertion_msg, InterMeshTransfer::fagent, FluidAgent::fluidBufNG, Agent::get_surface_window(), Action::IN, Action::OUT, Agent::register_clone_attribute(), Action::set_attr(), and Action::set_io().

971  :
972  InterMeshTransfer(fag, sag, (char *)"TemperatureTransfer_SF")
973 {
974  int io[] = {IN, OUT, OUT};
975  set_io( 3, io);
976 
977  std::string atts[3];
978  atts[0] = s_Ts;
979  atts[1] = fb_Tflm;
980  atts[2] = fn_Tb;
981  set_attr(3, atts);
982 
984 
985  // Tb is rocman internal buffer
986  std::string::size_type pos = fn_Tb.find( ".");
987  COM_assertion_msg(pos!=std::string::npos, "LoadTransfer_FS failed!");
988  std::string fn = fn_Tb.substr( 0, pos);
989  std::string Tb = fn_Tb.substr( pos, fn_Tb.size());
990  fagent->register_clone_attribute( 0, fn, Tb, fagent->get_surface_window(), ".Tb_alp", 0);
991  fagent->register_clone_attribute( 0, fn, Tb+"_old", fagent->get_surface_window(), ".Tb_alp", 0);
992 }
#define COM_assertion_msg(EX, msg)
FluidAgent * fagent
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)
Definition: Agent.C:328
std::string get_surface_window() const
Definition: Agent.h:217
std::string fluidBufNG
Definition: FluidAgent.h:78
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 994 of file transfer_actions.C.

References bcflag_hdl, COM_get_function_handle(), f_Ts_hdl, InterMeshTransfer::fagent, fb_Tflm_hdl, FluidAgent::fluidBufNG, fn_Tb_hdl, Action::get_attribute_handle(), Agent::get_coupling(), Coupling::get_rocmancontrol_param(), InterMeshTransfer::load_rocface(), RFC_interpolate, RFC_transfer, and s_Ts_hdl.

994  {
998 
1000 
1002 
1004  RFC_transfer = COM_get_function_handle("RFC.least_squares_transfer");
1005  RFC_interpolate = COM_get_function_handle("RFC.interpolate");
1006 }
void load_rocface(const RocmanControl_parameters *param)
FluidAgent * fagent
int get_attribute_handle(int i)
Definition: Action.C:93
Coupling * get_coupling()
Definition: Agent.h:213
std::string fluidBufNG
Definition: FluidAgent.h:78
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 1008 of file transfer_actions.C.

References bcflag_hdl, COM_call_function(), COM_copy_attribute(), f_Ts_hdl, InterMeshTransfer::fagent, fb_Tflm_hdl, fn_Tb_hdl, Agent::get_comm_rank(), MAN_DEBUG, RFC_transfer, and s_Ts_hdl.

1008  {
1009  MAN_DEBUG(3, ("[%d] Rocstar: TemperatureTransfer_SF::run() with t:%e dt:%e.\n", fagent->get_comm_rank(), t, dt));
1010 
1011  //debug_print(sagent->solidBuf+".Ts", 102, 0);
1013 
1014  // extract burn and non-burn values
1017  //debug_print(fagent->fluidBufNG+".Tf", 2, 0);
1018 }
FluidAgent * fagent
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48
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.
Definition: roccom_c++.h:244
#define MAN_DEBUG(l, x)
Definition: rocman.h:98
int get_comm_rank() const
Definition: Agent.h:224

Here is the call graph for this function:

Member Data Documentation

int bcflag_hdl
private

Definition at line 206 of file transfer_actions.h.

Referenced by init(), and run().

int f_Ts_hdl
private

Definition at line 206 of file transfer_actions.h.

Referenced by init(), and run().

int fb_Tflm_hdl
private

Definition at line 205 of file transfer_actions.h.

Referenced by init(), and run().

int fn_Tb_hdl
private

Definition at line 205 of file transfer_actions.h.

Referenced by init(), and run().

int RFC_interpolate
private

Definition at line 207 of file transfer_actions.h.

Referenced by init().

int RFC_transfer
private

Definition at line 208 of file transfer_actions.h.

Referenced by init(), and run().

int s_Ts_hdl
private

Definition at line 205 of file transfer_actions.h.

Referenced by init(), and run().


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