Chombo + EB + MF  3.2
Public Member Functions | List of all members
CoordSys< T, Tface > Class Template Referenceabstract

Virtual base class encapsulating mapped-grid coordinate systems. More...

#include <CoordSys.H>

Inheritance diagram for CoordSys< T, Tface >:
Inheritance graph
[legend]

Public Member Functions

 CoordSys ()
 default constructor More...
 
virtual ~CoordSys ()
 
virtual void define (const DisjointBoxLayout &a_grids, const ProblemDomain &a_domain, const RealVect &a_cellSpacing, const IntVect &a_ghostVect)=0
 
virtual void regrid (const DisjointBoxLayout &a_newGrids)=0
 
virtual RealVect realCoord (const RealVect &a_X) const =0
 given coordinate in mapped space, return its location in real space More...
 
virtual RealVect mappedCoord (const RealVect &a_x) const =0
 given coordinate in real space, return its location in the mapped space More...
 
virtual void realCoord (T &a_x, const T &a_X) const =0
 given coordinates in mapped space, return locations in real space More...
 
virtual void mappedCoord (T &a_X, const T &a_x) const =0
 given coordinate in real space, return its location in the mapped space More...
 
virtual Real pointwiseJ (const RealVect &a_X) const =0
 Jacobian evaluated at location X in real space. More...
 
virtual void pointwiseJ (T &a_J, const T &a_Xi) const =0
 Jacobian evaluated at locations Xi in mapped space. More...
 
virtual void mappedGridDivergence (LevelData< T > &a_divF, const LevelData< Tface > &a_F) const =0
 returns integral of divergence over mapped-grid cells More...
 
virtual const LevelData< Tface > & getFaceMetricTerms () const =0
 reuturns reference to face-averaged N metric terms More...
 
virtual const LevelData< T > & getCellVolumes () const =0
 
virtual const LevelData< T > & getJ () const =0
 returns second-order averaged cell-centered J More...
 
virtual const LevelData< Tface > & getJInverse () const =0
 returns averaged face-centered 1/J More...
 
virtual const LevelData< Tface > & getNJinverse () const =0
 returns averaged face-centered N/J More...
 

Detailed Description

template<class T, class Tface>
class CoordSys< T, Tface >

Virtual base class encapsulating mapped-grid coordinate systems.

The CoordSys class is a virtual base class providing an API for performing operations in a mapped grid coordinate space. Implementations of specific coordinate systems will be provided by derived classes.

Constructor & Destructor Documentation

◆ CoordSys()

template<class T, class Tface>
CoordSys< T, Tface >::CoordSys ( )
inline

default constructor

◆ ~CoordSys()

template<class T, class Tface>
virtual CoordSys< T, Tface >::~CoordSys ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ define()

template<class T, class Tface>
virtual void CoordSys< T, Tface >::define ( const DisjointBoxLayout a_grids,
const ProblemDomain a_domain,
const RealVect a_cellSpacing,
const IntVect a_ghostVect 
)
pure virtual

◆ regrid()

template<class T, class Tface>
virtual void CoordSys< T, Tface >::regrid ( const DisjointBoxLayout a_newGrids)
pure virtual

◆ realCoord() [1/2]

template<class T, class Tface>
virtual RealVect CoordSys< T, Tface >::realCoord ( const RealVect a_X) const
pure virtual

given coordinate in mapped space, return its location in real space

Implemented in CartesianCoordSys, and FourthOrderCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ mappedCoord() [1/2]

template<class T, class Tface>
virtual RealVect CoordSys< T, Tface >::mappedCoord ( const RealVect a_x) const
pure virtual

given coordinate in real space, return its location in the mapped space

Implemented in CartesianCoordSys, and FourthOrderCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ realCoord() [2/2]

template<class T, class Tface>
virtual void CoordSys< T, Tface >::realCoord ( T &  a_x,
const T &  a_X 
) const
pure virtual

given coordinates in mapped space, return locations in real space

Implemented in FourthOrderCoordSys.

◆ mappedCoord() [2/2]

template<class T, class Tface>
virtual void CoordSys< T, Tface >::mappedCoord ( T &  a_X,
const T &  a_x 
) const
pure virtual

given coordinate in real space, return its location in the mapped space

Implemented in FourthOrderCoordSys.

◆ pointwiseJ() [1/2]

template<class T, class Tface>
virtual Real CoordSys< T, Tface >::pointwiseJ ( const RealVect a_X) const
pure virtual

Jacobian evaluated at location X in real space.

Implemented in FourthOrderCoordSys, and CartesianCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ pointwiseJ() [2/2]

template<class T, class Tface>
virtual void CoordSys< T, Tface >::pointwiseJ ( T &  a_J,
const T &  a_Xi 
) const
pure virtual

Jacobian evaluated at locations Xi in mapped space.

Implemented in FourthOrderCoordSys.

◆ mappedGridDivergence()

template<class T, class Tface>
virtual void CoordSys< T, Tface >::mappedGridDivergence ( LevelData< T > &  a_divF,
const LevelData< Tface > &  a_F 
) const
pure virtual

returns integral of divergence over mapped-grid cells

Implemented in FourthOrderCoordSys, and CartesianCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ getFaceMetricTerms()

template<class T, class Tface>
virtual const LevelData<Tface>& CoordSys< T, Tface >::getFaceMetricTerms ( ) const
pure virtual

reuturns reference to face-averaged N metric terms

Implemented in FourthOrderCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ getCellVolumes()

template<class T, class Tface>
virtual const LevelData<T>& CoordSys< T, Tface >::getCellVolumes ( ) const
pure virtual

◆ getJ()

template<class T, class Tface>
virtual const LevelData<T>& CoordSys< T, Tface >::getJ ( ) const
pure virtual

returns second-order averaged cell-centered J

Implemented in FourthOrderCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ getJInverse()

template<class T, class Tface>
virtual const LevelData<Tface>& CoordSys< T, Tface >::getJInverse ( ) const
pure virtual

returns averaged face-centered 1/J

Implemented in FourthOrderCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().

◆ getNJinverse()

template<class T, class Tface>
virtual const LevelData<Tface>& CoordSys< T, Tface >::getNJinverse ( ) const
pure virtual

returns averaged face-centered N/J

Implemented in FourthOrderCoordSys.

Referenced by CoordSys< FArrayBox, FluxBox >::~CoordSys().


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