AMRSolverBase< VectorType, FixupType, FlagType, dim > Class Template Reference

Generic base-class for an adaptive method. More...

#include <AMRSolverBase.h>

Inheritance diagram for AMRSolverBase< VectorType, FixupType, FlagType, dim >:
Solver controlable AMRSolver< VectorType, FixupType, FlagType, dim > AMRSolver< MicroType, FixupType, FlagType, DIM > AMRSolver< MicroType, FixupType, FlagType, dim > AMRSolver< VectorType, FixupType, FlagType, DIM > AMRGFMSolver< VectorType, FixupType, FlagType, dim > AMRGFMSolver< MicroType, FixupType, FlagType, DIM > AMRGFMSolver< VectorType, FixupType, FlagType, DIM > AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim > AMRCoupledGFMSolver< VectorType, FixupType, FlagType, dim > AMRELCGFMSolver< VectorType, FixupType, FlagType, dim > AMRELCGFMSolver< VectorType, FixupType, FlagType, DIM >

List of all members.

Public Types

typedef GridFunction
< VectorType, dim > 
vec_grid_fct_type
typedef GridData< VectorType, dim > vec_grid_data_type
typedef GridFunction< DataType,
dim > 
grid_fct_type
typedef GridData< DataType, dim > grid_data_type
typedef Integrator< VectorType,
dim > 
integrator_type
typedef InitialCondition
< VectorType, dim > 
initial_condition_type
typedef BoundaryConditions
< VectorType, dim > 
boundary_conditions_type
typedef LevelTransfer
< VectorType, dim > 
leveltransfer_type
typedef AMRFlagging
< VectorType, FixupType,
FlagType, dim > 
flagging_type
typedef AMRFixup< VectorType,
FixupType, dim > 
fixup_type
typedef ExactSolution
< VectorType, dim > 
exact_solution_type
typedef FileOutput< VectorType,
dim > 
file_output_type
typedef
GFBndryUpdateSpecificFunc
< boundary_conditions_type,
VectorType, dim > 
boundary_functor_type
typedef
GFLevelTransferSpecificFunc
< leveltransfer_type,
VectorType, dim > 
leveltransfer_functor_type
typedef
GFAdptBndryUpdateSpecificFunc
< leveltransfer_type,
VectorType, dim > 
adaptbnd_functor_type

Public Member Functions

 AMRSolverBase (integrator_type &integ, initial_condition_type &init, boundary_conditions_type &bc)
virtual ~AMRSolverBase ()
virtual double Tick (int VariableTimeStepping, const double dtv[], const double cflv[], int &Rejections)=0
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)=0
virtual void Initialize_ (const double &dt_start)=0
virtual bool Restart_ (const char *CheckpointFile)=0
virtual void Checkpointing_ (const char *CheckpointFile)=0
virtual void register_at (ControlDevice &Ctrl, const std::string &prefix)
virtual void register_at (ControlDevice &Ctrl)
virtual void init ()
virtual void update ()
virtual void finish ()
virtual bool setup ()
virtual void SetupGridHierarchy ()
virtual void SetupData ()
virtual void Initialize (double &t, double &dt)
virtual void Restart (double &t, double &dt)
virtual void Advance (double &t, double &dt)
virtual void Output ()
virtual void Checkpointing ()
virtual int NSteps ()
GridHierarchyGH ()
const GridHierarchyGH () const
GridHierarchyPGH () const
const int & NEquations () const
const int & NGhosts () const
const int & Dim () const
vec_grid_fct_typeU ()
const vec_grid_fct_typeU () const
vec_grid_fct_typeUsh ()
const vec_grid_fct_typeUsh () const
grid_fct_typeWork ()
const grid_fct_typeWork () const
grid_fct_typeWorksh ()
const grid_fct_typeWorksh () const
integrator_typeIntegrator_ ()
const integrator_typeIntegrator_ () const
initial_condition_typeInitialCondition_ ()
const initial_condition_typeInitialCondition_ () const
boundary_conditions_typeBoundaryConditions_ ()
const boundary_conditions_typeBoundaryConditions_ () const
void SetLevelTransfer (leveltransfer_type *_leveltransfer)
leveltransfer_typeLevelTransfer_ ()
const leveltransfer_typeLevelTransfer_ () const
void SetFlagging (flagging_type *_flagging)
flagging_typeFlagging_ ()
const flagging_typeFlagging_ () const
bool ErrorEstimation () const
void SetFixup (fixup_type *_fixup)
fixup_typeFixup_ ()
const fixup_typeFixup_ () const
bool FixupPossible () const
void SetExactSolution (exact_solution_type *exact)
exact_solution_typeExactSolution_ ()
const exact_solution_typeExactSolution_ () const
void SetFileOutput (file_output_type *output)
file_output_typeFileOutput_ ()
const file_output_typeFileOutput_ () const
void SetLastOutputTime (int Time)
int LastOutputTime () const
void SetLastCheckpointTime (int Time)
int LastCheckpointTime () const
virtual int NMethodOrder () const
int FirstNode () const
int LastNode () const
int NNodes () const
int SizeWorld () const
int Size () const
MPI_Group GrpWorld () const
MPI_Group Grp () const
MPI_Comm CommWorld () const
MPI_Comm Comm () const

Protected Attributes

integrator_type_Integrator
initial_condition_type_InitialCondition
boundary_conditions_type_BoundaryConditions
int _Equations
int _Ghosts
int _Dim
GridHierarchy_Hierarchy
vec_grid_fct_type_u
vec_grid_fct_type_u_sh
grid_fct_type_work
grid_fct_type_work_sh
leveltransfer_type_LevelTransfer
flagging_type_Flagging
fixup_type_Fixup
exact_solution_type_ExactSolution
file_output_type_FileOutput
boundary_functor_type_BoundaryFunc
leveltransfer_functor_type_ProlongFunc
leveltransfer_functor_type_RestrictFunc
adaptbnd_functor_type_AdaptBndFunc
int RedistributeEvery
int Distribution
int MaxLev
int GuCFactor
int MaxGridBoxSize
int _RefineFactor [DAGHMaxLevels]
int periodic [dim]
int shape [dim]
double geom [2 *dim]
int CutOffs
int cuts [2 *dim *MaxCutOffRegions]
int NAMRTimeSteps
AMRTimeStep Step [MaxAMRTimeSteps]
int _LastOutputTime
int _LastCheckpointTime
int firstnode
int lastnode
int UseIOServer
std::string CheckpointName
int CheckpointSave
double FinalWaitingTime
ControlDevice LocCtrl
ControlDevice GHCtrl
ControlDevice PCtrl
char GFName [DAGHBktGFNameWidth]
char GFNamesh [DAGHBktGFNameWidth]
char IOName [DAGHBktGFNameWidth]
char IONamesh [DAGHBktGFNameWidth]

Detailed Description

template<class VectorType, class FixupType, class FlagType, int dim>
class AMRSolverBase< VectorType, FixupType, FlagType, dim >

Generic base-class for an adaptive method.

The class allocates a GridFunction< VectorType > for the numerical solution. If error-estimation is used as a refinement criterium, an additional coarser GridFunction< VectorType > is allocated.

Author:
Ralf Deiterding
Version:
1.0
Date:
Jan-2002

Member Typedef Documentation

template<class VectorType, class FixupType, class FlagType, int dim>
typedef GFAdptBndryUpdateSpecificFunc<leveltransfer_type,VectorType,dim> AMRSolverBase< VectorType, FixupType, FlagType, dim >::adaptbnd_functor_type
template<class VectorType, class FixupType, class FlagType, int dim>
typedef GFBndryUpdateSpecificFunc<boundary_conditions_type,VectorType,dim> AMRSolverBase< VectorType, FixupType, FlagType, dim >::boundary_functor_type
template<class VectorType, class FixupType, class FlagType, int dim>
typedef ExactSolution<VectorType,dim> AMRSolverBase< VectorType, FixupType, FlagType, dim >::exact_solution_type
template<class VectorType, class FixupType, class FlagType, int dim>
typedef FileOutput<VectorType,dim> AMRSolverBase< VectorType, FixupType, FlagType, dim >::file_output_type
template<class VectorType, class FixupType, class FlagType, int dim>
typedef GFLevelTransferSpecificFunc<leveltransfer_type,VectorType,dim> AMRSolverBase< VectorType, FixupType, FlagType, dim >::leveltransfer_functor_type

Constructor & Destructor Documentation

template<class VectorType, class FixupType, class FlagType, int dim>
AMRSolverBase< VectorType, FixupType, FlagType, dim >::AMRSolverBase ( integrator_type integ,
initial_condition_type init,
boundary_conditions_type bc 
) [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual AMRSolverBase< VectorType, FixupType, FlagType, dim >::~AMRSolverBase (  )  [inline, virtual]

Member Function Documentation

template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::Advance ( double &  t,
double &  dt 
) [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
const boundary_conditions_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::BoundaryConditions_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
boundary_conditions_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::BoundaryConditions_ (  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::Checkpointing (  )  [inline, virtual]

Reimplemented from Solver.

template<class VectorType, class FixupType, class FlagType, int dim>
MPI_Comm AMRSolverBase< VectorType, FixupType, FlagType, dim >::Comm (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
MPI_Comm AMRSolverBase< VectorType, FixupType, FlagType, dim >::CommWorld (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const int& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Dim (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const exact_solution_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::ExactSolution_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
exact_solution_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::ExactSolution_ (  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const file_output_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::FileOutput_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::FirstNode (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const fixup_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Fixup_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
bool AMRSolverBase< VectorType, FixupType, FlagType, dim >::FixupPossible (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const flagging_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Flagging_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const GridHierarchy& AMRSolverBase< VectorType, FixupType, FlagType, dim >::GH (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
GridHierarchy& AMRSolverBase< VectorType, FixupType, FlagType, dim >::GH (  )  [inline]

Referenced by AMRSolverBase< MicroType, FixupType, FlagType, dim >::Advance(), AMRSolver< VectorType, FixupType, FlagType, DIM >::AdvanceLevel(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::Checkpointing(), AMRSolver< VectorType, FixupType, FlagType, DIM >::Checkpointing_(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::Initialize(), AMRSolver< VectorType, FixupType, FlagType, DIM >::Initialize_(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Initialize_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::IntegrateLevel(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::NSteps(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::Output(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Output(), AMRSolver< VectorType, FixupType, FlagType, DIM >::RecomposeGridHierarchy(), AMRSolver< VectorType, FixupType, FlagType, DIM >::RegridLevel(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::Restart(), AMRSolver< VectorType, FixupType, FlagType, DIM >::Restart_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::Restart_(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetRecomposeBndry(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::SetupData(), AMRSolver< VectorType, FixupType, FlagType, DIM >::SetupData(), AMRGFMSolver< MicroType, FixupType, FlagType, DIM >::SetupData(), AMRSolverBase< MicroType, FixupType, FlagType, dim >::SetupGridHierarchy(), AMRSolver< VectorType, FixupType, FlagType, DIM >::Tick(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Tick(), and AMRSolver< VectorType, FixupType, FlagType, DIM >::UpdateLevel().

template<class VectorType, class FixupType, class FlagType, int dim>
MPI_Group AMRSolverBase< VectorType, FixupType, FlagType, dim >::Grp (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
MPI_Group AMRSolverBase< VectorType, FixupType, FlagType, dim >::GrpWorld (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const initial_condition_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::InitialCondition_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
initial_condition_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::InitialCondition_ (  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::Initialize ( double &  t,
double &  dt 
) [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
const integrator_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Integrator_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::LastCheckpointTime (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::LastNode (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const leveltransfer_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::LevelTransfer_ (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
leveltransfer_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::LevelTransfer_ (  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const int& AMRSolverBase< VectorType, FixupType, FlagType, dim >::NEquations (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual int AMRSolverBase< VectorType, FixupType, FlagType, dim >::NMethodOrder (  )  const [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::NNodes (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual int AMRSolverBase< VectorType, FixupType, FlagType, dim >::NSteps (  )  [inline, virtual]

Implements Solver.

template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::Output (  )  [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
GridHierarchy* AMRSolverBase< VectorType, FixupType, FlagType, dim >::PGH (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::Restart ( double &  t,
double &  dt 
) [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetExactSolution ( exact_solution_type exact  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetFileOutput ( file_output_type output  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetFixup ( fixup_type _fixup  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetFlagging ( flagging_type _flagging  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetLastCheckpointTime ( int  Time  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetLastOutputTime ( int  Time  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetLevelTransfer ( leveltransfer_type _leveltransfer  )  [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual bool AMRSolverBase< VectorType, FixupType, FlagType, dim >::setup (  )  [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::SetupGridHierarchy (  )  [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::Size (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::SizeWorld (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual double AMRSolverBase< VectorType, FixupType, FlagType, dim >::Tick ( int  VariableTimeStepping,
const double  dtv[],
const double  cflv[],
int &  Rejections 
) [pure virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
const vec_grid_fct_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::U (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
virtual void AMRSolverBase< VectorType, FixupType, FlagType, dim >::update (  )  [inline, virtual]
template<class VectorType, class FixupType, class FlagType, int dim>
const vec_grid_fct_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Ush (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const grid_fct_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Work (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
const grid_fct_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Worksh (  )  const [inline]
template<class VectorType, class FixupType, class FlagType, int dim>
grid_fct_type& AMRSolverBase< VectorType, FixupType, FlagType, dim >::Worksh (  )  [inline]

Member Data Documentation

template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::_Dim [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::_Equations [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::_Ghosts [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::cuts[2 *dim *MaxCutOffRegions] [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
char AMRSolverBase< VectorType, FixupType, FlagType, dim >::GFName[DAGHBktGFNameWidth] [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
char AMRSolverBase< VectorType, FixupType, FlagType, dim >::GFNamesh[DAGHBktGFNameWidth] [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
ControlDevice AMRSolverBase< VectorType, FixupType, FlagType, dim >::GHCtrl [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
char AMRSolverBase< VectorType, FixupType, FlagType, dim >::IOName[DAGHBktGFNameWidth] [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
char AMRSolverBase< VectorType, FixupType, FlagType, dim >::IONamesh[DAGHBktGFNameWidth] [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::NAMRTimeSteps [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
ControlDevice AMRSolverBase< VectorType, FixupType, FlagType, dim >::PCtrl [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::RedistributeEvery [protected]
template<class VectorType, class FixupType, class FlagType, int dim>
int AMRSolverBase< VectorType, FixupType, FlagType, dim >::UseIOServer [protected]

The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:19:29 2016 for AMROC Fluid-solver Framework by  doxygen 1.6.3