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

#include <builtin_couplings.h>

Inheritance diagram for FluidAlone:
Collaboration diagram for FluidAlone:

Public Member Functions

 FluidAlone (const char *, MPI_Comm com, Control_parameters *p, const RocmanControl_parameters *mp)
 
- Public Member Functions inherited from Coupling
 Coupling (const char *coupl_name, const char *name, Control_parameters *p, const RocmanControl_parameters *mp)
 Constructor. Derived class will add actions for the coupling scheme. More...
 
 Coupling (const char *coupl_name, const char *fluidname, const char *solidname, Control_parameters *p, const RocmanControl_parameters *mp)
 
 Coupling (const char *coupl_name, const char *fluidname, const char *solidname, const char *burnname, Control_parameters *p, const RocmanControl_parameters *mp)
 
virtual ~Coupling ()
 Destructor. More...
 
const char * name ()
 
Agentadd_agent (Agent *)
 Add new agent. More...
 
void schedule ()
 Schedule the top-level actions of the coupling scheme and the actions of the agents. More...
 
void init (double t, double dt, int reinit=0)
 Invoke initialization of the actions in the scheduler and the agents. More...
 
void initialize (int reinit=0)
 
void finalize ()
 Invoke finalization of the actions in the scheduler and the agents. More...
 
double run (double t, double dt, int iPredCorr, double zoom)
 Invoke the scheduler. More...
 
void run_initactions (double t, double dt)
 
void input (double t)
 Invoke input functions of the agents. More...
 
int get_ipc () const
 
int get_max_ipc () const
 
int initial_start () const
 
int in_restart () const
 
int initial_remeshed () const
 true if in initialization step and remeshed is true More...
 
int new_start (double t) const
 
void init_convergence (int iPredCorr)
 
int check_convergence ()
 
virtual void update_integrals (double currentTime)
 
virtual void update_distances (double currentTime)
 
void output_restart_files (double t)
 
void output_visualization_files (double t)
 
const Control_parametersget_control_param ()
 
const RocmanControl_parametersget_rocmancontrol_param ()
 
void read_restart_info ()
 
void write_restart_info (double CurrentTime, int iStep)
 
void restart_at_time (double t, int step)
 
virtual void reload_rocface (const RocmanControl_parameters *param)
 
void print (const char *fname)
 
void Interrupt (int *, const char *)
 
int ProcessInterrupt ()
 

Protected Attributes

double flm_temp
 
- Protected Attributes inherited from Coupling
std::string coupling_name
 
vector< std::string > modules
 
AgentList agents
 
UserScheduler scheduler
 
UserScheduler init_scheduler
 
int comm_rank
 
int init_started
 
int restarting
 
int init_remeshed
 
int iPredCorr
 
int maxPredCorr
 
Control_parametersparam
 
const RocmanControl_parametersrocmanparam
 
std::string restartInfo
 
int overwrite_integ
 
std::string integFname
 
int overwrite_dist
 
std::string distFname
 

Additional Inherited Members

- Protected Member Functions inherited from Coupling
void callMethod (Scheduler_voidfn1_t fn, double t)
 
std::string normalize_modname (const char *mod)
 

Detailed Description

Definition at line 30 of file builtin_couplings.h.

Constructor & Destructor Documentation

FluidAlone ( const char *  module,
MPI_Comm  com,
Control_parameters p,
const RocmanControl_parameters mp 
)

Definition at line 69 of file builtin_couplings.C.

References UserScheduler::add_action(), Coupling::add_agent(), declare_fluid_actions(), Agent::get_main_action(), Coupling::maxPredCorr, and Coupling::scheduler.

69  : Coupling("FluidAloneNoBurn", module, p, mp)
70 {
71 // p->zoomFactor = 1; // ignore zoom factor
72  maxPredCorr = 1;
73 
74  // Create agents
75  FluidAgent *fluid_agent = new FluidAgent( this, module, module, com);
76  add_agent( fluid_agent);
77 
78  // Create and register actions
79  scheduler.add_action( fluid_agent->get_main_action());
80 
81  // Declare the actions for fluid-agent
82  declare_fluid_actions( fluid_agent);
83 }
virtual void add_action(Action *)
Definition: Scheduler.C:401
Agent * add_agent(Agent *)
Add new agent.
Definition: Coupling.C:174
int maxPredCorr
Definition: Coupling.h:111
static void declare_fluid_actions(FluidAgent *fluid_agent)
Coupling(const char *coupl_name, const char *name, Control_parameters *p, const RocmanControl_parameters *mp)
Constructor. Derived class will add actions for the coupling scheme.
Definition: Coupling.C:130
UserScheduler scheduler
Definition: Coupling.h:103
Action * get_main_action()
Definition: Agent.h:183
here we put it at the!beginning of the common block The point to point and collective!routines know about but MPI_TYPE_STRUCT as yet does not!MPI_STATUS_IGNORE and MPI_STATUSES_IGNORE are similar objects!Until the underlying MPI library implements the C version of these are declared as arrays of MPI_STATUS_SIZE!The types and are OPTIONAL!Their values are zero if they are not available Note that!using these reduces the portability of MPI_IO INTEGER MPI_BOTTOM INTEGER MPI_DOUBLE_PRECISION INTEGER MPI_LOGICAL INTEGER MPI_2REAL INTEGER MPI_2DOUBLE_COMPLEX INTEGER MPI_LB INTEGER MPI_WTIME_IS_GLOBAL INTEGER MPI_GROUP_EMPTY INTEGER MPI_BAND INTEGER MPI_MINLOC INTEGER MPI_MAXLOC INTEGER MPI_OP_NULL INTEGER MPI_ERRORS_RETURN!INTEGER MPI_ORDER_FORTRAN INTEGER MPI_DISTRIBUTE_CYCLIC INTEGER MPI_DISTRIBUTE_DFLT_DARG INTEGER MPI_MAX_INFO_VAL INTEGER MPI_INFO_NULL!Optional Fortran Types Configure attempts to determine these!INTEGER MPI_INTEGER8 INTEGER MPI_INTEGER16 INTEGER MPI_REAL16 INTEGER MPI_COMPLEX32!This is now handled with either the pointer extension or this same appended at the end!COMMON MPIPRIV MPI_STATUSES_IGNORE!C!C Without this some Fortran implementations may make the common!C dynamic!C!C For a Fortran90 module

Here is the call graph for this function:

Member Data Documentation

double flm_temp
protected

Definition at line 35 of file builtin_couplings.h.


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