Overture  Version 25
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MappedGridData Class Reference

#include <MappedGrid.h>

Inheritance diagram for MappedGridData:
Inheritance graph
[legend]
Collaboration diagram for MappedGridData:
Collaboration graph
[legend]

Public Types

enum  {
  THEmask = ENDtheGenericGridData, THEinverseVertexDerivative = THEmask << 1, THEinverseCenterDerivative = THEinverseVertexDerivative << 1, THEvertex = THEinverseCenterDerivative << 1,
  THEcenter = THEvertex << 1, THEcorner = THEcenter << 1, THEvertexDerivative = THEcorner << 1, THEcenterDerivative = THEvertexDerivative << 1,
  THEvertexJacobian = THEcenterDerivative << 1, THEcenterJacobian = THEvertexJacobian << 1, THEcellVolume = THEcenterJacobian << 1, THEcenterNormal = THEcellVolume << 1,
  THEcenterArea = THEcenterNormal << 1, THEfaceNormal = THEcenterArea << 1, THEfaceArea = THEfaceNormal << 1, THEvertexBoundaryNormal = THEfaceArea << 1,
  THEcenterBoundaryNormal = THEvertexBoundaryNormal << 1, THEcenterBoundaryTangent = THEcenterBoundaryNormal << 1, THEfreeBit18 = THEcenterBoundaryTangent << 1, THEboundingBox = THEfreeBit18 << 1,
  ENDtheMappedGridData = THEboundingBox << 1, THEusualSuspects, EVERYTHING, USEdifferenceApproximation = 1,
  COMPUTEgeometry = USEdifferenceApproximation << 1, COMPUTEgeometryAsNeeded = COMPUTEgeometry << 1, COMPUTEtheUsual, ISinterpolationPoint = INT_MIN,
  ISdiscretizationPoint = 1 << 30, ISghostPoint = ISdiscretizationPoint >> 1, ISinteriorBoundaryPoint = ISghostPoint >> 1, USESbackupRules = ISinteriorBoundaryPoint >> 1,
  IShiddenByRefinement = USESbackupRules >> 1, ISreservedBit2 = IShiddenByRefinement >> 1, ISreservedBit1 = ISreservedBit2 >> 1, ISreservedBit0 = ISreservedBit1 >> 1,
  GRIDnumberBits = ISreservedBit0 - 1, ISusedPoint
}
 
enum  BoundaryFlagEnum {
  branchCutPeriodicBoundary, periodicBoundary, interpolationBoundary, mixedPhysicalInterpolationBoundary,
  physicalBoundary
}
 
- Public Types inherited from GenericGridData
enum  {
  ENDtheGenericGridData = 1, NOTHING = 0, THEusualSuspects = INT_MIN, EVERYTHING = NOTHING,
  COMPUTEnothing = 0, COMPUTEtheUsual = COMPUTEnothing, COMPUTEfailed = INT_MIN
}
 

Public Member Functions

 MappedGridData (const Integer numberOfDimensions_=0)
 
 MappedGridData (const MappedGridData &x, const CopyType ct=DEEP)
 
virtual ~MappedGridData ()
 
MappedGridDataoperator= (const MappedGridData &x)
 
virtual GenericGridDataequals (const GenericGridData &x, int option=0)
 
void reference (const MappedGridData &x)
 
virtual void breakReference ()
 
virtual void consistencyCheck () const
 
virtual Integer get (const GenericDataBase &db, const aString &name, bool getMapping=true)
 
virtual Integer put (GenericDataBase &db, const aString &name, bool putMapping=true, int geometryToPut=-1) const
 
Integer update (const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
Integer update (MappedGridData &x, const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
virtual void destroy (const Integer what=NOTHING)
 
virtual void specifyProcesses (const Range &range)
 
void initialize (const Integer &numberOfDimensions_)
 
virtual int getWhatForGrid (const int what) const
 
void initializePartition ()
 
Integer domainDimension () const
 
Integer rangeDimension () const
 
const IntegerArraygetUnstructuredBCInfo (int type)
 
const IntegerArraygetUnstructuredPeriodicBC (int type)
 
virtual aString getClassName () const
 
- Public Member Functions inherited from GenericGridData
 GenericGridData ()
 
 GenericGridData (const GenericGridData &x, const CopyType ct=DEEP)
 
virtual ~GenericGridData ()
 
GenericGridDataoperator= (const GenericGridData &x)
 
void reference (const GenericGridData &x)
 
Integer update (const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
virtual void geometryHasChanged (const Integer what=~NOTHING)
 
void initialize ()
 
- Public Member Functions inherited from ReferenceCounting
 ReferenceCounting ()
 
 ReferenceCounting (const ReferenceCounting &x, const CopyType ct=DEEP)
 
virtual ~ReferenceCounting ()
 
Integer incrementReferenceCount ()
 
Integer decrementReferenceCount ()
 
Integer getReferenceCount () const
 
Logical uncountedReferencesMayExist ()
 
Integer getGlobalID () const
 
void setGlobalID (int id)
 

Public Attributes

Integer numberOfDimensions
 
IntegerArray boundaryCondition
 
IntegerArray boundaryDiscretizationWidth
 
RealArray boundingBox
 
RealArray localBoundingBox
 
RealArray gridSpacing
 
Logical isAllCellCentered
 
Logical isAllVertexCentered
 
LogicalArray isCellCentered
 
IntegerArray discretizationWidth
 
IntegerArray indexRange
 
IntegerArray extendedIndexRange
 
int pExtendedRange [6]
 
IntegerArray gridIndexRange
 
IntegerArray dimension
 
IntegerArray numberOfGhostPoints
 
Logical useGhostPoints
 
IntegerArray isPeriodic
 
IntegerArray sharedBoundaryFlag
 
RealArray sharedBoundaryTolerance
 
IntegerArray I1array
 
IntegerArray I2array
 
IntegerArray I3array
 
IntegerI1
 
IntegerI2
 
IntegerI3
 
Partitioning_Type partition
 
bool partitionInitialized
 
Partitioning_Type matrixPartition
 
bool matrixPartitionInitialized
 
GenericGrid::GridTypeEnum gridType
 
bool refinementGrid
 
int shareGridWithMapping
 
IntegerArrayunstructuredBoundaryConditionInfo [4]
 
IntegerArrayunstructuredPeriodicBoundaryInfo [4]
 
BoundaryFlagEnum boundaryFlag [2][3]
 
IntegerMappedGridFunctionmask
 
RealMappedGridFunctioninverseVertexDerivative
 
RealMappedGridFunctioninverseCenterDerivative
 
RealMappedGridFunctionvertex
 
RealMappedGridFunctioncenter
 
RealMappedGridFunctioncorner
 
RealMappedGridFunctionvertexDerivative
 
RealMappedGridFunctioncenterDerivative
 
RealMappedGridFunctionvertexJacobian
 
RealMappedGridFunctioncenterJacobian
 
RealMappedGridFunctioncellVolume
 
RealMappedGridFunctioncenterNormal
 
RealMappedGridFunctioncenterArea
 
RealMappedGridFunctionfaceNormal
 
RealMappedGridFunctionfaceArea
 
RealMappedGridFunctionvertexBoundaryNormal [3][2]
 
RealMappedGridFunctioncenterBoundaryNormal [3][2]
 
RealMappedGridFunctioncenterBoundaryTangent [3][2]
 
realSerialArraypVertexBoundaryNormal [3][2]
 
realSerialArraypCenterBoundaryNormal [3][2]
 
realSerialArraypCenterBoundaryTangent [3][2]
 
MappingRC mapping
 
Box box
 
- Public Attributes inherited from GenericGridData
Integer computedGeometry
 

Protected Member Functions

virtual Integer update (GenericGridData &x, const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 

Member Enumeration Documentation

anonymous enum
Enumerator
THEmask 
THEinverseVertexDerivative 
THEinverseCenterDerivative 
THEvertex 
THEcenter 
THEcorner 
THEvertexDerivative 
THEcenterDerivative 
THEvertexJacobian 
THEcenterJacobian 
THEcellVolume 
THEcenterNormal 
THEcenterArea 
THEfaceNormal 
THEfaceArea 
THEvertexBoundaryNormal 
THEcenterBoundaryNormal 
THEcenterBoundaryTangent 
THEfreeBit18 
THEboundingBox 
ENDtheMappedGridData 
THEusualSuspects 
EVERYTHING 
USEdifferenceApproximation 
COMPUTEgeometry 
COMPUTEgeometryAsNeeded 
COMPUTEtheUsual 
ISinterpolationPoint 
ISdiscretizationPoint 
ISghostPoint 
ISinteriorBoundaryPoint 
USESbackupRules 
IShiddenByRefinement 
ISreservedBit2 
ISreservedBit1 
ISreservedBit0 
GRIDnumberBits 
ISusedPoint 
Enumerator
branchCutPeriodicBoundary 
periodicBoundary 
interpolationBoundary 
mixedPhysicalInterpolationBoundary 
physicalBoundary 

Constructor & Destructor Documentation

MappedGridData::MappedGridData ( const Integer  numberOfDimensions_ = 0)
MappedGridData::MappedGridData ( const MappedGridData x,
const CopyType  ct = DEEP 
)
MappedGridData::~MappedGridData ( )
virtual

References destroy(), and EVERYTHING.

Member Function Documentation

void MappedGridData::breakReference ( void  )
virtual

Reimplemented from GenericGridData.

References GenericGridData::breakReference().

void MappedGridData::consistencyCheck ( void  ) const
virtual
void MappedGridData::destroy ( const Integer  what = NOTHING)
virtual
Integer MappedGridData::domainDimension ( ) const
inline
GenericGridData & MappedGridData::equals ( const GenericGridData x,
int  option = 0 
)
virtual

Reimplemented from GenericGridData.

References assert, assign(), boundaryCondition, boundaryDiscretizationWidth, boundaryFlag, boundingBox, cellVolume, center, centerArea, centerBoundaryNormal, centerBoundaryTangent, centerDerivative, centerJacobian, centerNormal, GenericGridData::computedGeometry, GenericGridData::COMPUTEnothing, CopyArray::copyArray(), corner, destroy(), dimension, discretizationWidth, extendedIndexRange, extendedRange, faceArea, faceNormal, GenericGridData::getClassName(), intMappedGridFunction::grid, doubleMappedGridFunction::grid, gridIndexRange, gridSpacing, gridType, hasSameDistribution(), indexRange, inverseCenterDerivative, inverseVertexDerivative, isAllCellCentered, isAllVertexCentered, isCellCentered, isPeriodic, localBoundingBox, mapping, mask, GenericGridData::NOTHING, numberOfDimensions, numberOfGhostPoints, GenericGridData::operator=(), partition, pCenterBoundaryNormal, pCenterBoundaryTangent, pVertexBoundaryNormal, refinementGrid, sharedBoundaryFlag, sharedBoundaryTolerance, shareGridWithMapping, THEboundingBox, THEcellVolume, THEcenter, THEcenterArea, THEcenterBoundaryNormal, THEcenterBoundaryTangent, THEcenterDerivative, THEcenterJacobian, THEcenterNormal, THEcorner, THEfaceArea, THEfaceNormal, THEinverseCenterDerivative, THEinverseVertexDerivative, THEmask, THEvertex, THEvertexBoundaryNormal, THEvertexDerivative, THEvertexJacobian, update(), doubleMappedGridFunction::updateToMatchGrid(), intMappedGridFunction::updateToMatchGrid(), useGhostPoints, vertex, vertexBoundaryNormal, vertexDerivative, and vertexJacobian.

Referenced by MappedGrid::equals(), operator=(), and MappedGrid::operator=().

Integer MappedGridData::get ( const GenericDataBase db,
const aString name,
bool  getMapping = true 
)
virtual

Reimplemented from GenericGridData.

References boundaryCondition, boundaryDiscretizationWidth, boundaryFlag, boundingBox, branchCutPeriodicBoundary, cellVolume, center, centerArea, centerBoundaryNormal, centerBoundaryTangent, centerDerivative, centerJacobian, centerNormal, GenericGridData::computedGeometry, GenericGridData::COMPUTEnothing, corner, dimension, discretizationWidth, End, EVERYTHING, extendedGridIndexRange(), extendedIndexRange, extendedRange, faceArea, faceNormal, GenericDataBase::find(), Mapping::functionPeriodic, GenericGridData::get(), GenericDataBase::get(), MappingRC::get(), doubleMappedGridFunction::get(), intMappedGridFunction::get(), Mapping::getBoundingBox(), getClassName(), MappingRC::getMapping(), gridIndexRange, gridSpacing, gridType, I1, I1array, I2, I2array, I3, I3array, indexRange, GenericGridData::initialize(), initializePartition(), interpolationBoundary, inverseCenterDerivative, inverseVertexDerivative, isAllCellCentered, isAllVertexCentered, isCellCentered, isPeriodic, localBoundingBox, mapping, mask, mixedPhysicalInterpolationBoundary, NULL, numberOfDimensions, numberOfGhostPoints, partition, pCenterBoundaryNormal, pCenterBoundaryTangent, periodicBoundary, pExtendedRange, physicalBoundary, printF(), pVertexBoundaryNormal, sharedBoundaryFlag, sharedBoundaryTolerance, shareGridWithMapping, Start, GenericGrid::structuredGrid, THEboundingBox, THEcellVolume, THEcenter, THEcenterArea, THEcenterBoundaryNormal, THEcenterBoundaryTangent, THEcenterDerivative, THEcenterJacobian, THEcenterNormal, THEcorner, THEfaceArea, THEfaceNormal, THEinverseCenterDerivative, THEinverseVertexDerivative, THEmask, THEvertex, THEvertexBoundaryNormal, THEvertexDerivative, THEvertexJacobian, update(), useGhostPoints, vertex, vertexBoundaryNormal, vertexDerivative, vertexJacobian, and GenericDataBase::virtualConstructor().

Referenced by MappedGrid::get().

virtual aString MappedGridData::getClassName ( void  ) const
inlinevirtual

Reimplemented from GenericGridData.

Referenced by MappedGrid::equals(), get(), and MappedGrid::operator=().

const IntegerArray * MappedGridData::getUnstructuredBCInfo ( int  type)
const IntegerArray * MappedGridData::getUnstructuredPeriodicBC ( int  type)
int MappedGridData::getWhatForGrid ( const int  what) const
virtual
void MappedGridData::initialize ( const Integer numberOfDimensions_)
void MappedGridData::initializePartition ( )
MappedGridData & MappedGridData::operator= ( const MappedGridData x)

References equals().

Integer MappedGridData::put ( GenericDataBase db,
const aString name,
bool  putMapping = true,
int  geometryToPut = -1 
) const
virtual
Integer MappedGridData::rangeDimension ( ) const
inline
void MappedGridData::reference ( const MappedGridData x)
void MappedGridData::specifyProcesses ( const Range &  range)
virtual
Integer MappedGridData::update ( const Integer  what = THEusualSuspects,
const Integer  how = COMPUTEtheUsual 
)
inline

References update().

Referenced by equals(), get(), and update().

Integer MappedGridData::update ( MappedGridData x,
const Integer  what = THEusualSuspects,
const Integer  how = COMPUTEtheUsual 
)
inline

References update().

Referenced by update().

Integer MappedGridData::update ( GenericGridData x,
const Integer  what = THEusualSuspects,
const Integer  how = COMPUTEtheUsual 
)
protectedvirtual

Member Data Documentation

IntegerArray MappedGridData::boundaryCondition
IntegerArray MappedGridData::boundaryDiscretizationWidth
BoundaryFlagEnum MappedGridData::boundaryFlag[2][3]
RealArray MappedGridData::boundingBox
Box MappedGridData::box

Referenced by MappedGrid::box(), and update().

RealMappedGridFunction* MappedGridData::cellVolume
RealMappedGridFunction* MappedGridData::center
RealMappedGridFunction* MappedGridData::centerArea
RealMappedGridFunction* MappedGridData::centerBoundaryNormal[3][2]
RealMappedGridFunction* MappedGridData::centerBoundaryTangent[3][2]
RealMappedGridFunction* MappedGridData::centerDerivative
RealMappedGridFunction* MappedGridData::centerJacobian
RealMappedGridFunction* MappedGridData::centerNormal
RealMappedGridFunction* MappedGridData::corner
IntegerArray MappedGridData::dimension
IntegerArray MappedGridData::discretizationWidth
IntegerArray MappedGridData::extendedIndexRange
RealMappedGridFunction* MappedGridData::faceArea
RealMappedGridFunction* MappedGridData::faceNormal
IntegerArray MappedGridData::gridIndexRange
RealArray MappedGridData::gridSpacing
GenericGrid::GridTypeEnum MappedGridData::gridType
Integer* MappedGridData::I1

Referenced by get(), MappedGrid::I1(), and update().

IntegerArray MappedGridData::I1array

Referenced by consistencyCheck(), get(), and update().

Integer * MappedGridData::I2

Referenced by get(), MappedGrid::I2(), and update().

IntegerArray MappedGridData::I2array

Referenced by consistencyCheck(), get(), and update().

Integer * MappedGridData::I3

Referenced by get(), MappedGrid::I3(), and update().

IntegerArray MappedGridData::I3array

Referenced by consistencyCheck(), get(), and update().

IntegerArray MappedGridData::indexRange
RealMappedGridFunction* MappedGridData::inverseCenterDerivative
RealMappedGridFunction* MappedGridData::inverseVertexDerivative
Logical MappedGridData::isAllCellCentered
Logical MappedGridData::isAllVertexCentered
LogicalArray MappedGridData::isCellCentered
IntegerArray MappedGridData::isPeriodic
RealArray MappedGridData::localBoundingBox
MappingRC MappedGridData::mapping
IntegerMappedGridFunction* MappedGridData::mask
Partitioning_Type MappedGridData::matrixPartition
bool MappedGridData::matrixPartitionInitialized
Integer MappedGridData::numberOfDimensions
IntegerArray MappedGridData::numberOfGhostPoints
Partitioning_Type MappedGridData::partition
bool MappedGridData::partitionInitialized
realSerialArray* MappedGridData::pCenterBoundaryNormal[3][2]
realSerialArray* MappedGridData::pCenterBoundaryTangent[3][2]
int MappedGridData::pExtendedRange[6]

Referenced by MappedGrid::extendedRange(), and get().

realSerialArray* MappedGridData::pVertexBoundaryNormal[3][2]
bool MappedGridData::refinementGrid
IntegerArray MappedGridData::sharedBoundaryFlag
RealArray MappedGridData::sharedBoundaryTolerance
int MappedGridData::shareGridWithMapping
IntegerArray* MappedGridData::unstructuredBoundaryConditionInfo[4]
IntegerArray* MappedGridData::unstructuredPeriodicBoundaryInfo[4]
Logical MappedGridData::useGhostPoints
RealMappedGridFunction* MappedGridData::vertex
RealMappedGridFunction* MappedGridData::vertexBoundaryNormal[3][2]
RealMappedGridFunction* MappedGridData::vertexDerivative
RealMappedGridFunction* MappedGridData::vertexJacobian

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