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

#include <transfer_actions.h>

Inheritance diagram for DeformationVelTransfer_SF:
Collaboration diagram for DeformationVelTransfer_SF:

Public Member Functions

 DeformationVelTransfer_SF (FluidAgent *fag, SolidAgent *sag, const std::string s_vs, const std::string f_vs)
 
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 s_vs_str
 
std::string f_vs_str
 
int s_vs_hdl
 
int f_vs_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 136 of file transfer_actions.h.

Constructor & Destructor Documentation

DeformationVelTransfer_SF ( FluidAgent fag,
SolidAgent sag,
const std::string  s_vs,
const std::string  f_vs 
)
explicit

Definition at line 702 of file transfer_actions.C.

References InterMeshTransfer::fagent, FluidAgent::ifluid_i, Action::IN, Action::OUT, Action::set_attr(), and Action::set_io().

703  :
704  InterMeshTransfer(fag, sag, (char *)"DeformationVelTransfer_SF"),
705  s_vs_str(s_vs), f_vs_str(f_vs)
706 {
707  // added a builtin in (ifluid_i+".vm")
708  // ifluid_i+".vm" (in), isolid_i+".vs", ifluid_i+".vs"
709  int io[] = {IN, IN, OUT};
710  set_io( 3, io);
711 
712  std::string atts[3];
713  atts[0] = fagent->ifluid_i+".vm";
714  atts[1] = s_vs;
715  atts[2] = f_vs;
716  set_attr(3, atts);
717 }
FluidAgent * fagent
std::string ifluid_i
Definition: FluidAgent.h:70
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 719 of file transfer_actions.C.

References COM_get_function_handle(), f_vs_hdl, InterMeshTransfer::fagent, Action::get_attribute_handle(), Agent::get_coupling(), Coupling::get_rocmancontrol_param(), InterMeshTransfer::load_rocface(), RFC_transfer, and s_vs_hdl.

719  {
722 
724 
725  RFC_transfer = COM_get_function_handle("RFC.least_squares_transfer");
726 }
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
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 728 of file transfer_actions.C.

References COM_call_function(), f_vs_hdl, MAN_DEBUG, RFC_transfer, and s_vs_hdl.

728  {
729  MAN_DEBUG(3, ("Rocstar: DeformationVelTransfer_SF::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
730 
731  // c. Transfer vs from solid nodes to fluid faces using Rocface
733 }
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 f_vs_hdl
private

Definition at line 143 of file transfer_actions.h.

Referenced by init(), and run().

std::string f_vs_str
private

Definition at line 142 of file transfer_actions.h.

int RFC_transfer
private

Definition at line 144 of file transfer_actions.h.

Referenced by init(), and run().

int s_vs_hdl
private

Definition at line 143 of file transfer_actions.h.

Referenced by init(), and run().

std::string s_vs_str
private

Definition at line 142 of file transfer_actions.h.


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