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

#include <basic_actions.h>

Inheritance diagram for ComputeRhofvf:
Collaboration diagram for ComputeRhofvf:

Public Member Functions

 ComputeRhofvf (FluidAgent *ag, std::string f_vs_alp, std::string f_rhof_alp, std::string f_rhofvf_alp)
 
void init (double t)
 
void run (double t, double dt, double alpha)
 
- 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

FluidAgentfagent
 
std::string f_vs_alp_str
 
std::string f_rhof_alp_str
 
std::string f_rhofvf_alp_str
 
int f_vs_alp_hdl
 
int f_rhof_alp_hdl
 
int f_rhofvf_alp_hdl
 

Additional Inherited Members

- Protected Types inherited from Action
enum  { IN =1, OUT =2, INOUT =3 }
 
- 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 Action
char * action_name
 
char ** attr
 
int * idx
 
int count
 
void * usr_ptr
 
std::vector< int > inout
 

Detailed Description

Definition at line 212 of file basic_actions.h.

Constructor & Destructor Documentation

ComputeRhofvf ( FluidAgent ag,
std::string  f_vs_alp,
std::string  f_rhof_alp,
std::string  f_rhofvf_alp 
)

Definition at line 743 of file basic_actions.C.

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

743  :
744  Action(0, (const char**)NULL, NULL, NULL, (char *)"ComputeRhofvf"),
745  fagent(fag)
746 {
747  int io[] = {IN, IN, OUT};
748  set_io( 3, io);
749 
750  std::string atts[3];
751  atts[0] = f_vs_alp;
752  atts[1] = f_rhof_alp;
753  atts[2] = f_rhofvf_alp;
754  set_attr(3, atts);
755 }
FluidAgent * fagent
void set_io(int n, const int *io)
Definition: Action.h:70
Action(void *p=0, char *name=NULL)
Definition: Action.C:32
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 757 of file basic_actions.C.

References Action::attr, COM_get_attribute_handle(), f_rhof_alp_hdl, f_rhofvf_alp_hdl, and f_vs_alp_hdl.

757  {
761 }
int COM_get_attribute_handle(const char *waname)
Definition: roccom_c++.h:412
char ** attr
Definition: Action.h:37

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 763 of file basic_actions.C.

References COM_call_function(), f_rhof_alp_hdl, f_rhofvf_alp_hdl, f_vs_alp_hdl, MAN_DEBUG, and RocBlas::mul.

763  {
764 
765  MAN_DEBUG(3, ("Rocstar: ComputeRhofvf::run() with t:%e dt:%e.\n", t, dt));
766 
768 }
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48
#define MAN_DEBUG(l, x)
Definition: rocman.h:98
static int mul
Definition: RocBlas.h:38

Here is the call graph for this function:

Member Data Documentation

int f_rhof_alp_hdl
private

Definition at line 220 of file basic_actions.h.

Referenced by init(), and run().

std::string f_rhof_alp_str
private

Definition at line 219 of file basic_actions.h.

int f_rhofvf_alp_hdl
private

Definition at line 220 of file basic_actions.h.

Referenced by init(), and run().

std::string f_rhofvf_alp_str
private

Definition at line 219 of file basic_actions.h.

int f_vs_alp_hdl
private

Definition at line 220 of file basic_actions.h.

Referenced by init(), and run().

std::string f_vs_alp_str
private

Definition at line 219 of file basic_actions.h.

FluidAgent* fagent
private

Definition at line 218 of file basic_actions.h.


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