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

#include <basic_actions.h>

Inheritance diagram for ComputeBurnPane:
Collaboration diagram for ComputeBurnPane:

Public Member Functions

 ComputeBurnPane (FluidAgent *ag, BurnAgent *bag, SolidAgent *sag, const std::string fb_mdot_alp, const std::string rhofvf_alp, double z)
 
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
 
BurnAgentbagent
 
SolidAgentsagent
 
double zoom
 
int b_rb_alp_hdl
 
int fb_rhof_alp_hdl
 
int fb_mdot_alp_hdl
 
int fb_nf_alp_hdl
 
int fb_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 223 of file basic_actions.h.

Constructor & Destructor Documentation

ComputeBurnPane ( FluidAgent ag,
BurnAgent bag,
SolidAgent sag,
const std::string  fb_mdot_alp,
const std::string  rhofvf_alp,
double  z 
)

Definition at line 772 of file basic_actions.C.

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

775  :
776  Action(0, (const char**)NULL, NULL, NULL, (char *)"ComputeBurnPane"),
777  fagent(fag), bagent(bag), sagent(sag), zoom(z)
778 {
779  int io[] = {IN, OUT};
780  set_io( 2, io);
781 
782  std::string atts[2];
783  atts[0] = fb_mdot_alp;
784  atts[1] = rhofvf_alp;
785  set_attr(2, atts);
786 }
SolidAgent * sagent
FluidAgent * fagent
void int int int REAL REAL REAL * z
Definition: write.cpp:76
BurnAgent * bagent
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 788 of file basic_actions.C.

References b_rb_alp_hdl, bagent, COM_get_attribute_handle(), fagent, fb_mdot_alp_hdl, fb_nf_alp_hdl, fb_rhof_alp_hdl, fb_rhofvf_alp_hdl, FluidAgent::fluidBufB, Action::get_attribute_handle(), and BurnAgent::iburn_ng.

788  {
791 
796 }
std::string fluidBufB
Definition: FluidAgent.h:80
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
FluidAgent * fagent
BurnAgent * bagent

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 798 of file basic_actions.C.

References RocBlas::axpy, b_rb_alp_hdl, COM_call_function(), fb_mdot_alp_hdl, fb_nf_alp_hdl, fb_rhof_alp_hdl, fb_rhofvf_alp_hdl, MAN_DEBUG, RocBlas::mul, RocBlas::neg, sagent, RocBlas::sub, SolidAgent::withALE, and zoom.

798  {
799  MAN_DEBUG(3, ("Rocstar: ComputeBurnPane::run() with t:%e dt:%e zoom:%f.\n", t, dt, zoom));
800 
801  // The rest of computation are on burning panes only
802  // Note that b_rb_alp is used here as a temporary variable.
803  // b_rb_alp is not used elsewhere.
804  if (zoom>=1.0 && sagent==NULL || sagent && sagent->withALE) {
806  // debug_print(fagent->fluidBufB+".mdot_alp", 102, 0);
807  // debug_print(fagent->fluidBufNG+".mdot_alp", 102, 0);
809  }
810  else {
812  }
813 
814  // debug_print(bagent->iburn_ng+".rb_alp", 102, 0);
815  // debug_print(fagent->fluidBufB+".rhofvf_alp", 102, 0);
816 
818 
819  //debug_print(fagent->fluidBufB+".rhofvf_alp", 102, 0);
820  //debug_print(fagent->fluidBufB+".mdot_alp", 102, 0);
821  //debug_print(fagent->fluidBufB+".rhof_alp", 102, 0);
822  //debug_print(fagent->fluidBufB+".nf_alp", 102, 0);
823  //debug_print(bagent->iburn_ng+".rb_alp", 102, 0);
824 }
SolidAgent * sagent
int withALE
Definition: SolidAgent.h:84
static int axpy
Definition: RocBlas.h:41
static int neg
Definition: RocBlas.h:40
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 sub
Definition: RocBlas.h:36
static int mul
Definition: RocBlas.h:38

Here is the call graph for this function:

Member Data Documentation

int b_rb_alp_hdl
private

Definition at line 233 of file basic_actions.h.

Referenced by init(), and run().

BurnAgent* bagent
private

Definition at line 230 of file basic_actions.h.

Referenced by init().

FluidAgent* fagent
private

Definition at line 229 of file basic_actions.h.

Referenced by init().

int fb_mdot_alp_hdl
private

Definition at line 233 of file basic_actions.h.

Referenced by init(), and run().

int fb_nf_alp_hdl
private

Definition at line 234 of file basic_actions.h.

Referenced by init(), and run().

int fb_rhof_alp_hdl
private

Definition at line 233 of file basic_actions.h.

Referenced by init(), and run().

int fb_rhofvf_alp_hdl
private

Definition at line 234 of file basic_actions.h.

Referenced by init(), and run().

SolidAgent* sagent
private

Definition at line 231 of file basic_actions.h.

Referenced by run().

double zoom
private

Definition at line 232 of file basic_actions.h.

Referenced by run().


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