GFMBoundaryBase< VectorType, dim > Class Template Reference

Generic base-class to set internal boundary conditions based on a scalar level set. More...

#include <GFMBoundary.h>

Inheritance diagram for GFMBoundaryBase< VectorType, dim >:
AMRBase< VectorType, dim > Geom< VectorType::InternalDataType, dim > controlable

List of all members.

Public Types

typedef base::vec_grid_fct_type vec_grid_fct_type
typedef base::vec_grid_data_type vec_grid_data_type
typedef GridData< DataType, dim > grid_data_type
typedef GridFunction< DataType,
dim > 
grid_fct_type
typedef GridData< bool, dim > bool_grid_data_type
typedef GridFunction< bool, dim > bool_grid_fct_type
typedef Vector< DataType, dim > point_type
typedef Interpolation
< VectorType, dim > 
interpolation_type

Public Member Functions

 GFMBoundaryBase ()
virtual ~GFMBoundaryBase ()
virtual void SetGrid (vec_grid_data_type &gdu, grid_data_type &gdphi, const BBox &bb, const int &Level, double t, const int &nc, const int *idx, const point_type *xc, DataType *distance, point_type *normal)=0
virtual void GetBndryCells (vec_grid_fct_type &u, grid_data_type &gdphi, bool_grid_data_type &gdbf, const BBox &bb, const int &Time, const int &Level, const int &c, int &nc, int *&idx, int &ni, int *&idx_wrg)=0
virtual void SetBndryAux (vec_grid_data_type &gdu, grid_data_type &gdphi, const BBox &bb, const VectorType *u, DataType *aux, const int &Level, double t, const int &nc, const int *idx, const point_type *xc, const DataType *distance, const point_type *normal)
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 void SetupData (GridHierarchy *gh, const int &ghosts)
void SetPhysbd (vec_grid_fct_type &u, grid_fct_type &phi, bool_grid_fct_type &bf, const int Time, const int Level, double t, bool extrapolate=false)
virtual void Extrapolation (vec_grid_data_type &gdu, grid_data_type &gdphi, VectorType *&u, const int &Level, const int &nc, const int *idx, const point_type *xc, DataType *distance, point_type *normal, const DataType &normal_factor)
void SetInterpolation (interpolation_type *inter)
interpolation_typeInterpolation_ ()
const interpolation_typeInterpolation_ () const
const int & NAux () const
void SetNAux (const int naux)
bool ValidNormalFactor (const DataType &nf) const
const DataTypeNormalFactor () const
const int & BndType () const
int isgn (const DataType val)
const int & NBoundaryWidth () const
const DataTypeCutoff () const
const DataTypeFarAway () const
void SetVerbose (const int v)
const int & GetVerbose () const

Protected Attributes

int _BoundaryWidth
int _bndtype
int _naux
int _Verbose
DataType _Cutoff
DataType _ErrorValue
DataType _normal_factor
DataType _far_away
interpolation_type_interpolation

Detailed Description

template<class VectorType, int dim>
class GFMBoundaryBase< VectorType, dim >

Generic base-class to set internal boundary conditions based on a scalar level set.

Author:
Ralf Deiterding
Version:
1.0
Date:
Jul-2004

Member Typedef Documentation

template<class VectorType, int dim>
typedef GridData<bool,dim> GFMBoundaryBase< VectorType, dim >::bool_grid_data_type
template<class VectorType, int dim>
typedef GridFunction<bool,dim> GFMBoundaryBase< VectorType, dim >::bool_grid_fct_type
template<class VectorType, int dim>
typedef GridData<DataType,dim> GFMBoundaryBase< VectorType, dim >::grid_data_type
template<class VectorType, int dim>
typedef GridFunction<DataType,dim> GFMBoundaryBase< VectorType, dim >::grid_fct_type
template<class VectorType, int dim>
typedef Interpolation<VectorType,dim> GFMBoundaryBase< VectorType, dim >::interpolation_type
template<class VectorType, int dim>
typedef Vector<DataType,dim> GFMBoundaryBase< VectorType, dim >::point_type
template<class VectorType, int dim>
typedef base::vec_grid_data_type GFMBoundaryBase< VectorType, dim >::vec_grid_data_type
template<class VectorType, int dim>
typedef base::vec_grid_fct_type GFMBoundaryBase< VectorType, dim >::vec_grid_fct_type

Constructor & Destructor Documentation

template<class VectorType, int dim>
GFMBoundaryBase< VectorType, dim >::GFMBoundaryBase (  )  [inline]
template<class VectorType, int dim>
virtual GFMBoundaryBase< VectorType, dim >::~GFMBoundaryBase (  )  [inline, virtual]

Member Function Documentation

template<class VectorType, int dim>
const int& GFMBoundaryBase< VectorType, dim >::BndType (  )  const [inline]
template<class VectorType, int dim>
const DataType& GFMBoundaryBase< VectorType, dim >::Cutoff (  )  const [inline]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::Extrapolation ( vec_grid_data_type gdu,
grid_data_type gdphi,
VectorType *&  u,
const int &  Level,
const int &  nc,
const int *  idx,
const point_type xc,
DataType distance,
point_type normal,
const DataType normal_factor 
) [inline, virtual]
template<class VectorType, int dim>
const DataType& GFMBoundaryBase< VectorType, dim >::FarAway (  )  const [inline]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::finish (  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::GetBndryCells ( vec_grid_fct_type u,
grid_data_type gdphi,
bool_grid_data_type gdbf,
const BBox bb,
const int &  Time,
const int &  Level,
const int &  c,
int &  nc,
int *&  idx,
int &  ni,
int *&  idx_wrg 
) [pure virtual]
template<class VectorType, int dim>
const int& GFMBoundaryBase< VectorType, dim >::GetVerbose (  )  const [inline]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::init (  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
const interpolation_type& GFMBoundaryBase< VectorType, dim >::Interpolation_ (  )  const [inline]
template<class VectorType, int dim>
interpolation_type& GFMBoundaryBase< VectorType, dim >::Interpolation_ (  )  [inline]
template<class VectorType, int dim>
int GFMBoundaryBase< VectorType, dim >::isgn ( const DataType  val  )  [inline]
template<class VectorType, int dim>
const int& GFMBoundaryBase< VectorType, dim >::NAux (  )  const [inline]
template<class VectorType, int dim>
const int& GFMBoundaryBase< VectorType, dim >::NBoundaryWidth (  )  const [inline]
template<class VectorType, int dim>
const DataType& GFMBoundaryBase< VectorType, dim >::NormalFactor (  )  const [inline]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::register_at ( ControlDevice Ctrl  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::register_at ( ControlDevice Ctrl,
const std::string &  prefix 
) [inline, virtual]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::SetBndryAux ( vec_grid_data_type gdu,
grid_data_type gdphi,
const BBox bb,
const VectorType u,
DataType aux,
const int &  Level,
double  t,
const int &  nc,
const int *  idx,
const point_type xc,
const DataType distance,
const point_type normal 
) [inline, virtual]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::SetGrid ( vec_grid_data_type gdu,
grid_data_type gdphi,
const BBox bb,
const int &  Level,
double  t,
const int &  nc,
const int *  idx,
const point_type xc,
DataType distance,
point_type normal 
) [pure virtual]
template<class VectorType, int dim>
void GFMBoundaryBase< VectorType, dim >::SetInterpolation ( interpolation_type inter  )  [inline]
template<class VectorType, int dim>
void GFMBoundaryBase< VectorType, dim >::SetNAux ( const int  naux  )  [inline]
template<class VectorType, int dim>
void GFMBoundaryBase< VectorType, dim >::SetPhysbd ( vec_grid_fct_type u,
grid_fct_type phi,
bool_grid_fct_type bf,
const int  Time,
const int  Level,
double  t,
bool  extrapolate = false 
) [inline]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::SetupData ( GridHierarchy gh,
const int &  ghosts 
) [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
void GFMBoundaryBase< VectorType, dim >::SetVerbose ( const int  v  )  [inline]
template<class VectorType, int dim>
virtual void GFMBoundaryBase< VectorType, dim >::update (  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
bool GFMBoundaryBase< VectorType, dim >::ValidNormalFactor ( const DataType nf  )  const [inline]

Member Data Documentation


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