11 #ifndef _CUBEDSPHERE2DCS_H_ 12 #define _CUBEDSPHERE2DCS_H_ 27 #include "NamespaceHeader.H" 49 virtual void define(
int a_nResolution,
137 int a_srcBlock)
const;
205 #include "NamespaceFooter.H" Definition: CubedSphere2DCS.H:169
void vecTransMatrix(int a_nSourcePanel, int a_nDestPanel, int a_nAlphaIx, int a_nBetaIx, Real a_dDeltaA, Real *a_dAvgT, Real *a_dAlphaGradT, Real *a_dBetaGradT) const
void setFlatMap(bool a_flatMap)
Definition: CubedSphere2DCS.H:185
virtual void separateVolFlux(LevelData< FluxBox > &a_flux) const
Have separate volume flux on each block. Normally does nothing, but cubed-sphere coordinate system ne...
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
void setRadii(Real a_rMin, Real a_rMax)
RealVect realCoord(const RealVect &a_X) const
bool m_flatMap
Definition: CubedSphere2DCS.H:199
Real m_rMin
Definition: CubedSphere2DCS.H:202
virtual Real radialMappedToReal(Real a_rMapped) const
Function to convert from 0:1 to m_rMin:m_rMax.
void mappedFromCartesian(RealVect &a_xiDst, int a_nDst, Real xx, Real yy, Real zz) const
convert from Cartesian coordinates to mapped coordinate
void vecTransMatrix_Pt(int a_nSourcePanel, int a_nDestPanel, Real a_dX, Real a_dY, Real *a_dT) const
virtual void blockRemapping(RealVect &a_xi_valid, int &a_n_valid, const RealVect &a_xiSrc, int a_nSrc) const
block mapping conversion function
virtual ~CubedSphere2DCS()
virtual RealVect blockRemappingGeneral(int a_nDst, const RealVect &a_xiSrc, int a_nSrc) const
int m_nResolution
Definition: CubedSphere2DCS.H:150
void setFlatMap(bool a_flatMap)
void cartesianFromMapped(Real &xx, Real &yy, Real &zz, const RealVect &a_xiSrc, int a_nSrc) const
convert from mapped coordinate to Cartesian coordinates
virtual Vector< RealVect > displacements(const Vector< RealVect > &a_dstCoords, const Vector< int > &a_dstBlocks, const RealVect &a_srcCoords, int a_srcBlock) const
return displacements
double Real
Definition: REAL.H:33
virtual Real radialRealToMapped(Real a_rReal) const
Function to convert from m_rMin:m_rMax to 0:1.
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
VectorTransformation vectorBlockTransformation(int a_nDst, const RealVect &a_xiSrc, int a_nSrc) const
return vector transformation from one block to another at a point.
virtual const NewCoordSys * getCoordSys(int a_n) const
Return the mapping which corresponds to the block with the given index.
Definition: MultiBlockCoordSys.H:250
virtual interface class encapsulating multi-block mapping API
Definition: MultiBlockCoordSys.H:34
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
int m_nLayers
Definition: CubedSphere2DCS.H:153
Real m_rMin
Definition: CubedSphere2DCS.H:159
bool m_flatMap
Definition: CubedSphere2DCS.H:156
pure-virtual base class defining factory interface for MultiBlockCoordSys
Definition: MultiBlockCoordSys.H:409
CubedSphere2DCS()
default constructor
void regrid(const DisjointBoxLayout &a_newGrids)
void setRadii(Real a_rMin, Real a_rMax)
Definition: CubedSphere2DCS.H:190
Real m_rMax
Definition: CubedSphere2DCS.H:159
CubedSphere2DCSFactory()
Definition: CubedSphere2DCS.H:173
virtual ~CubedSphere2DCSFactory()
Definition: CubedSphere2DCS.H:178
RealVect mappedCoord(const RealVect &a_x) const
simple multiblock coordinate system for a cylinder
Definition: CubedSphere2DCS.H:35
virtual void define(int a_nResolution, int a_nLayers=0)