Derived AMRSolver class for implementing ghost fluid schemes. More...
#include <AMRGFMSolver.h>
Public Types | |
typedef GhostFluidMethod < VectorType, dim > | gfm_type |
typedef base::vec_grid_fct_type | vec_grid_fct_type |
typedef base::vec_grid_data_type | vec_grid_data_type |
typedef base::grid_fct_type | grid_fct_type |
typedef base::grid_data_type | grid_data_type |
typedef base::integrator_type | integrator_type |
typedef base::initial_condition_type | initial_condition_type |
typedef base::boundary_conditions_type | boundary_conditions_type |
typedef base::leveltransfer_type | leveltransfer_type |
typedef base::flagging_type | flagging_type |
typedef base::fixup_type | fixup_type |
typedef GFRecomposeSpecificFunc< self, VectorType, dim > | gfm_recompose_functor_type |
typedef GridData< bool, dim > | bool_grid_data_type |
typedef GridFunction< bool, dim > | bool_grid_fct_type |
Public Member Functions | |
AMRGFMSolver (integrator_type &integ, initial_condition_type &init, boundary_conditions_type &bc) | |
virtual | ~AMRGFMSolver () |
virtual void | init () |
virtual void | register_at (ControlDevice &Ctrl, const std::string &prefix) |
virtual void | register_at (ControlDevice &Ctrl) |
virtual void | update () |
virtual void | finish () |
virtual void | SetupData () |
virtual void | SetBndry (vec_grid_fct_type &u, const int Time, const int Level, double t) |
virtual double | IntegrateLevel (vec_grid_fct_type &u, const int Time, const int Level, double t, double dt, bool DoFixup, double tc, const int which) |
virtual void | RecomposeGridHierarchy (const int Time, const int Level, bool ShadowAllowed, bool DoFixup, bool RecomposeBaseLev, bool RecomposeHighLev) |
virtual void | SetRecomposeBndry (vec_grid_fct_type &u, const int &Time, const int &Level, const double &t) |
virtual void | Initialize_ (const double &dt_start) |
virtual void | Output () |
virtual bool | Restart_ (const char *CheckpointFile) |
virtual void | Checkpointing_ (const char *CheckpointFile) |
virtual void | Restart_ (std::stringstream &CheckpointStr) |
virtual void | Checkpointing_ (std::stringstream &CheckpointStr) |
void | AddGFM (gfm_type *gfm) |
void | EliminateGFM (gfm_type *gfm) |
void | DeleteGFM (gfm_type *gfm) |
bool_grid_fct_type * | BFP () |
bool_grid_fct_type & | BF () |
const bool_grid_fct_type & | BF () const |
bool_grid_fct_type & | BFsh () |
const bool_grid_fct_type & | BFsh () const |
bool_grid_fct_type & | BF (vec_grid_fct_type &u) |
const bool_grid_fct_type & | BF (vec_grid_fct_type &u) const |
gfm_type * | GFMP (const int n) |
gfm_type & | GFM (const int n) |
const gfm_type & | GFM (const int n) const |
const int & | NGFM () const |
void | SetRecoveryValue (const VectorType &rec) |
VectorType & | RecoveryValue () const |
Protected Attributes | |
bool_grid_fct_type * | _bf |
bool_grid_fct_type * | _bf_sh |
gfm_recompose_functor_type * | _GFMRecomposeFunc |
gfm_type ** | _GFM |
int | _nGFM |
int | _MaxRecomposeLevel |
int | _RecoverExterior |
int | _RecoverValue |
char | BFName [DAGHBktGFNameWidth] |
char | BFNamesh [DAGHBktGFNameWidth] |
VectorType | _RecoveryValue |
Derived AMRSolver class for implementing ghost fluid schemes.
typedef GridData<bool,dim> AMRGFMSolver< VectorType, FixupType, FlagType, dim >::bool_grid_data_type |
typedef GridFunction<bool,dim> AMRGFMSolver< VectorType, FixupType, FlagType, dim >::bool_grid_fct_type |
typedef base::boundary_conditions_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::boundary_conditions_type |
typedef base::fixup_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::fixup_type |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
typedef base::flagging_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::flagging_type |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
typedef GFRecomposeSpecificFunc<self,VectorType,dim> AMRGFMSolver< VectorType, FixupType, FlagType, dim >::gfm_recompose_functor_type |
typedef GhostFluidMethod<VectorType,dim> AMRGFMSolver< VectorType, FixupType, FlagType, dim >::gfm_type |
typedef base::grid_data_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::grid_data_type |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
typedef base::grid_fct_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::grid_fct_type |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
typedef base::initial_condition_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::initial_condition_type |
typedef base::integrator_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::integrator_type |
typedef base::leveltransfer_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::leveltransfer_type |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
typedef base::vec_grid_data_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::vec_grid_data_type |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
typedef base::vec_grid_fct_type AMRGFMSolver< VectorType, FixupType, FlagType, dim >::vec_grid_fct_type |
AMRGFMSolver< VectorType, FixupType, FlagType, dim >::AMRGFMSolver | ( | integrator_type & | integ, | |
initial_condition_type & | init, | |||
boundary_conditions_type & | bc | |||
) | [inline] |
virtual AMRGFMSolver< VectorType, FixupType, FlagType, dim >::~AMRGFMSolver | ( | ) | [inline, virtual] |
void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::AddGFM | ( | gfm_type * | gfm | ) | [inline] |
const bool_grid_fct_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BF | ( | vec_grid_fct_type & | u | ) | const [inline] |
bool_grid_fct_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BF | ( | vec_grid_fct_type & | u | ) | [inline] |
const bool_grid_fct_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BF | ( | ) | const [inline] |
bool_grid_fct_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BF | ( | ) | [inline] |
Referenced by GFMFileOutput< SchemeType::VectorType, FixupType, FlagType, dim >::BF(), AMRGFMInterpolation< VectorType, FixupType, FlagType, dim >::BF(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::IntegrateLevel(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::RecomposeGridHierarchy(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetBndry(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetRecomposeBndry(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetupData().
bool_grid_fct_type* AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BFP | ( | ) | [inline] |
const bool_grid_fct_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BFsh | ( | ) | const [inline] |
bool_grid_fct_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BFsh | ( | ) | [inline] |
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::Checkpointing_ | ( | std::stringstream & | CheckpointStr | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::Checkpointing_ | ( | const char * | CheckpointFile | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::DeleteGFM | ( | gfm_type * | gfm | ) | [inline] |
void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::EliminateGFM | ( | gfm_type * | gfm | ) | [inline] |
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::finish | ( | ) | [inline, virtual] |
Reimplemented from AMRSolverBase< VectorType, FixupType, FlagType, dim >.
Reimplemented in AMRELCGFMSolver< VectorType, FixupType, FlagType, dim >, and AMRELCGFMSolver< VectorType, FixupType, FlagType, DIM >.
const gfm_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::GFM | ( | const int | n | ) | const [inline] |
gfm_type& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::GFM | ( | const int | n | ) | [inline] |
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Checkpointing_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::finish(), GFMFileOutput< SchemeType::VectorType, FixupType, FlagType, dim >::GFM(), GFMExactSolution< VectorType, FixupType, FlagType, dim >::GFM(), UnflagPhi< VectorType, Fixup, FlagType, dim >::GFM(), ResolvePhi< VectorType, Fixup, FlagType, dim >::GFM(), RefinePhi< VectorType, Fixup, FlagType, dim >::GFM(), AMRGFMInterpolation< VectorType, FixupType, FlagType, dim >::GFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::init(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Initialize_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::IntegrateLevel(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Output(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::RecomposeGridHierarchy(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::register_at(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Restart_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetBndry(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetRecomposeBndry(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetupData(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::update().
gfm_type* AMRGFMSolver< VectorType, FixupType, FlagType, dim >::GFMP | ( | const int | n | ) | [inline] |
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::init | ( | ) | [inline, virtual] |
Reimplemented from AMRSolverBase< VectorType, FixupType, FlagType, dim >.
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::Initialize_ | ( | const double & | dt_start | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
virtual double AMRGFMSolver< VectorType, FixupType, FlagType, dim >::IntegrateLevel | ( | vec_grid_fct_type & | u, | |
const int | Time, | |||
const int | Level, | |||
double | t, | |||
double | dt, | |||
bool | DoFixup, | |||
double | tc, | |||
const int | which | |||
) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
Reimplemented in AMRELCGFMSolver< VectorType, FixupType, FlagType, dim >, and AMRELCGFMSolver< VectorType, FixupType, FlagType, DIM >.
const int& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::NGFM | ( | ) | const [inline] |
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Checkpointing_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::finish(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::init(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Initialize_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::IntegrateLevel(), GFMFileOutput< SchemeType::VectorType, FixupType, FlagType, dim >::NGFM(), GFMExactSolution< VectorType, FixupType, FlagType, dim >::NGFM(), UnflagPhi< VectorType, Fixup, FlagType, dim >::NGFM(), ResolvePhi< VectorType, Fixup, FlagType, dim >::NGFM(), RefinePhi< VectorType, Fixup, FlagType, dim >::NGFM(), AMRGFMInterpolation< VectorType, FixupType, FlagType, dim >::NGFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Output(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::RecomposeGridHierarchy(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::register_at(), ResolvePhi< VectorType, Fixup, FlagType, dim >::ResolvePhi(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Restart_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetBndry(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetRecomposeBndry(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetupData(), UnflagPhi< VectorType, Fixup, FlagType, dim >::UnflagPhi(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::update().
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::Output | ( | ) | [inline, virtual] |
Reimplemented from AMRSolverBase< VectorType, FixupType, FlagType, dim >.
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::RecomposeGridHierarchy | ( | const int | Time, | |
const int | Level, | |||
bool | ShadowAllowed, | |||
bool | DoFixup, | |||
bool | RecomposeBaseLev, | |||
bool | RecomposeHighLev | |||
) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
VectorType& AMRGFMSolver< VectorType, FixupType, FlagType, dim >::RecoveryValue | ( | ) | const [inline] |
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::register_at | ( | ControlDevice & | Ctrl | ) | [inline, virtual] |
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::register_at | ( | ControlDevice & | Ctrl, | |
const std::string & | prefix | |||
) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
Reimplemented in AMRCoupledGFMSolver< VectorType, FixupType, FlagType, dim >, AMRELCGFMSolver< VectorType, FixupType, FlagType, dim >, and AMRELCGFMSolver< VectorType, FixupType, FlagType, DIM >.
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::register_at().
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::Restart_ | ( | std::stringstream & | CheckpointStr | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
virtual bool AMRGFMSolver< VectorType, FixupType, FlagType, dim >::Restart_ | ( | const char * | CheckpointFile | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::SetBndry | ( | vec_grid_fct_type & | u, | |
const int | Time, | |||
const int | Level, | |||
double | t | |||
) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::SetRecomposeBndry | ( | vec_grid_fct_type & | u, | |
const int & | Time, | |||
const int & | Level, | |||
const double & | t | |||
) | [inline, virtual] |
void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::SetRecoveryValue | ( | const VectorType & | rec | ) | [inline] |
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::SetupData | ( | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
Reimplemented in SolverSpecific, SolverSpecific, AMRCoupledGFMSolver< VectorType, FixupType, FlagType, dim >, AMRELCGFMSolver< VectorType, FixupType, FlagType, dim >, and AMRELCGFMSolver< VectorType, FixupType, FlagType, DIM >.
Referenced by AMRCoupledGFMSolver< VectorType, FixupType, FlagType, dim >::Initialize().
virtual void AMRGFMSolver< VectorType, FixupType, FlagType, dim >::update | ( | ) | [inline, virtual] |
Reimplemented from AMRSolverBase< VectorType, FixupType, FlagType, dim >.
bool_grid_fct_type* AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_bf [protected] |
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::AMRGFMSolver(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::BF(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::BFP(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::finish(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetupData(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::~AMRGFMSolver().
bool_grid_fct_type * AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_bf_sh [protected] |
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::AMRGFMSolver(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::BF(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::BFsh(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::finish(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetupData(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::~AMRGFMSolver().
gfm_type** AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_GFM [protected] |
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::AddGFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::AMRGFMSolver(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::EliminateGFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::GFM(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::GFMP().
gfm_recompose_functor_type* AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_GFMRecomposeFunc [protected] |
int AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_MaxRecomposeLevel [protected] |
int AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_nGFM [protected] |
Referenced by AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::AddGFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::AMRGFMSolver(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::EliminateGFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::GFM(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::GFMP(), and AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::NGFM().
int AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_RecoverExterior [protected] |
int AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_RecoverValue [protected] |
VectorType AMRGFMSolver< VectorType, FixupType, FlagType, dim >::_RecoveryValue [protected] |
char AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BFName[DAGHBktGFNameWidth] [protected] |
char AMRGFMSolver< VectorType, FixupType, FlagType, dim >::BFNamesh[DAGHBktGFNameWidth] [protected] |