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

#include <transfer_actions.h>

Inheritance diagram for GetDeformedMesh:
Collaboration diagram for GetDeformedMesh:

Public Member Functions

 GetDeformedMesh (FluidAgent *fag, SolidAgent *sag, const std::string s_x, const std::string uhat, const std::string s_y)
 
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_x_str
 
std::string s_uhat_str
 
std::string s_y_str
 
int s_x_hdl
 
int s_uhat_hdl
 
int s_y_hdl
 

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 95 of file transfer_actions.h.

Constructor & Destructor Documentation

GetDeformedMesh ( FluidAgent fag,
SolidAgent sag,
const std::string  s_x,
const std::string  uhat,
const std::string  s_y 
)
explicit

Definition at line 468 of file transfer_actions.C.

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

468  :
469  InterMeshTransfer(fag, sag, (char *)"GetDeformedMesh"),
470  s_x_str(s_x), s_uhat_str(s_uhat), s_y_str(s_y)
471 {
472  int io[] = {IN, IN, OUT};
473  set_io( 3, io);
474 
475  std::string atts[4];
476  atts[0] = s_x;
477  atts[1] = s_uhat;
478  atts[2] = s_y;
479  set_attr(3, atts);
480 
481  // register attributes
482 /*
483  std::string::size_type pos = s_x_str.find( ".");
484  COM_assertion_msg(pos!=std::string::npos, "GetDeformedMesh::create_attribute failed!");
485  std::string s = s_x_str.substr( 0, pos);
486  std::string x = s_x_str.substr( pos, s_x_str.size());
487  sagent->register_use_attribute( s, x, sagent->solidBufBase, ".nc");
488 
489  pos = s_y_str.find( ".");
490  COM_assertion_msg(pos!=std::string::npos, "GetDeformedMesh::create_attribute failed!");
491  s = s_y_str.substr( 0, pos);
492  std::string y = s_y_str.substr( pos, s_y_str.size());
493  sagent->register_clone_attribute( 0, s, y, sagent->get_surface_window(), ".nc");
494 */
495 }
std::string s_y_str
std::string s_x_str
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
std::string s_uhat_str

Here is the call graph for this function:

Member Function Documentation

void init ( double  t)
virtual

Reimplemented from Action.

Definition at line 497 of file transfer_actions.C.

References RocBlas::add, COM_call_function(), Action::get_attribute_handle(), s_uhat_hdl, s_x_hdl, and s_y_hdl.

497  {
501 
502 #if 0
503  // POST_INIT_SOLID
505  // initial_start ?????
506  if (t == 0.0) {
507 // double alpha = 0.0;
508 // ????????????????? strange bug called in bcinitscheduler::init()
509 // sagent->obtain_bc(&alpha);
510  }
511 #endif
512 }
int get_attribute_handle(int i)
Definition: Action.C:93
static int add
Definition: RocBlas.h:35
void COM_call_function(const int wf, int argc,...)
Definition: roccom_c.C:48

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 515 of file transfer_actions.C.

References RocBlas::add, COM_call_function(), MAN_DEBUG, s_uhat_hdl, s_x_hdl, and s_y_hdl.

515  {
516  MAN_DEBUG(3, ("Rocstar: calling GetDeformedMesh::run() with t:%e dt:%e alpha:%e.\n", t, dt, alpha));
518 }
static int add
Definition: RocBlas.h:35
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 s_uhat_hdl
private

Definition at line 102 of file transfer_actions.h.

Referenced by init(), and run().

std::string s_uhat_str
private

Definition at line 101 of file transfer_actions.h.

int s_x_hdl
private

Definition at line 102 of file transfer_actions.h.

Referenced by init(), and run().

std::string s_x_str
private

Definition at line 101 of file transfer_actions.h.

int s_y_hdl
private

Definition at line 102 of file transfer_actions.h.

Referenced by init(), and run().

std::string s_y_str
private

Definition at line 101 of file transfer_actions.h.


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