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

#include <GridCollection.h>

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

Public Types

enum  {
  THEmask = MappedGridData::THEmask, THEinverseVertexDerivative = MappedGridData::THEinverseVertexDerivative, THEinverseCenterDerivative, THEvertex = MappedGridData::THEvertex,
  THEcenter = MappedGridData::THEcenter, THEcorner = MappedGridData::THEcorner, THEvertexDerivative = MappedGridData::THEvertexDerivative, THEcenterDerivative = MappedGridData::THEcenterDerivative,
  THEvertexJacobian = MappedGridData::THEvertexJacobian, THEcenterJacobian = MappedGridData::THEcenterJacobian, THEcellVolume = MappedGridData::THEcellVolume, THEcenterNormal = MappedGridData::THEcenterNormal,
  THEcenterArea = MappedGridData::THEcenterArea, THEfaceNormal = MappedGridData::THEfaceNormal, THEfaceArea = MappedGridData::THEfaceArea, THEvertexBoundaryNormal = MappedGridData::THEvertexBoundaryNormal,
  THEcenterBoundaryNormal = MappedGridData::THEcenterBoundaryNormal, THEcenterBoundaryTangent = MappedGridData::THEcenterBoundaryTangent, THEboundingBox = MappedGridData::THEboundingBox, ENDtheGridCollectionData = ENDtheGenericGridCollectionData,
  THEusualSuspects, EVERYTHING, USEdifferenceApproximation = MappedGridData::USEdifferenceApproximation, COMPUTEgeometry = MappedGridData::COMPUTEgeometry,
  COMPUTEgeometryAsNeeded = MappedGridData::COMPUTEgeometryAsNeeded, COMPUTEtheUsual, ISinterpolationPoint = MappedGridData::ISinterpolationPoint, ISdiscretizationPoint = MappedGridData::ISdiscretizationPoint,
  ISghostPoint = MappedGridData::ISghostPoint, ISinteriorBoundaryPoint = MappedGridData::ISinteriorBoundaryPoint, USESbackupRules = MappedGridData::USESbackupRules, IShiddenByRefinement = MappedGridData::IShiddenByRefinement,
  ISreservedBit2 = MappedGridData::ISreservedBit2, ISreservedBit1 = MappedGridData::ISreservedBit1, ISreservedBit0 = MappedGridData::ISreservedBit0, GRIDnumberBits = MappedGridData::GRIDnumberBits,
  ISusedPoint = MappedGridData::ISusedPoint
}
 
- Public Types inherited from GenericGridCollectionData
enum  {
  THEbaseGrid = 1 << 20, THErefinementLevel = THEbaseGrid << 1, THEcomponentGrid = THErefinementLevel << 1, THEmultigridLevel = THEcomponentGrid << 1,
  THEdomain = THEmultigridLevel << 1, ENDtheGenericGridCollectionData = THEdomain << 1, NOTHING = GenericGridData::NOTHING, THEusualSuspects = GenericGridData::THEusualSuspects,
  THElists, EVERYTHING, COMPUTEnothing = GenericGridData::COMPUTEnothing, COMPUTEtheUsual = GenericGridData::COMPUTEtheUsual,
  COMPUTEfailed = GenericGridData::COMPUTEfailed
}
 

Public Member Functions

 GridCollectionData (const Integer numberOfDimensions_=0, const Integer numberOfGrids_=0)
 
 GridCollectionData (const GridCollectionData &x, const CopyType ct=DEEP)
 
virtual ~GridCollectionData ()
 
GridCollectionDataoperator= (const GridCollectionData &x)
 
MappedGridoperator[] (const Integer &i)
 
const MappedGridoperator[] (const Integer &i) const
 
void reference (const GridCollectionData &x)
 
virtual void breakReference ()
 
virtual void consistencyCheck () const
 
virtual Integer get (const GenericDataBase &db, const aString &name)
 
virtual Integer put (GenericDataBase &db, const aString &name, int geometryToPut=-1) const
 
Integer update (const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
Integer update (GridCollectionData &x, const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
void updateParentChildSiblingInfo (GridCollection &gc)
 Update the parent child sibling info.
 
virtual void destroy (const Integer what=NOTHING)
 
virtual Integer addRefinement (const IntegerArray &range, const IntegerArray &factor, const Integer &level, const Integer k=0)
 
virtual Integer replaceRefinementLevels (int level0, int numberOfRefinementLevels0, IntegerArray **gridInfo)
 Replace refinement levels "level0" and higher.
 
virtual void deleteRefinement (const Integer &k)
 
virtual void deleteRefinementLevels (const Integer level=0)
 
void referenceRefinementLevels (GridCollectionData &x, const Integer level=INTEGER_MAX)
 
virtual Integer addMultigridCoarsening (const IntegerArray &factor, const Integer &level, const Integer k=0)
 
virtual void deleteMultigridCoarsening (const Integer &k)
 
virtual void deleteMultigridLevels (const Integer level=0)
 
virtual void setNumberOfGrids (const Integer &numberOfGrids_)
 Set the number of grids.
 
virtual void setNumberOfDimensions (const Integer &numberOfDimensions_)
 
virtual void setNumberOfDimensionsAndGrids (const Integer &numberOfDimensions_, const Integer &numberOfGrids_)
 
void initialize (const Integer &numberOfDimensions_, const Integer &numberOfGrids_)
 
virtual aString getClassName () const
 
- Public Member Functions inherited from GenericGridCollectionData
 GenericGridCollectionData (const Integer numberOfGrids_=0)
 
 GenericGridCollectionData (const GenericGridCollectionData &x, const CopyType ct=DEEP)
 
virtual ~GenericGridCollectionData ()
 
GenericGridCollectionDataoperator= (const GenericGridCollectionData &x)
 
GenericGridoperator[] (const Integer &i)
 
const GenericGridoperator[] (const Integer &i) const
 
void reference (const GenericGridCollectionData &x)
 
const aStringgetDomainName (int domain) const
 
void setDomainName (int domain, const aString &name)
 
Integer update (const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
virtual void geometryHasChanged (const Integer what=~NOTHING)
 
virtual Integer addRefinements (const Integer level, const Integer k, const Integer numberToAdd)
 
void initialize (const Integer &numberOfGrids_)
 
- 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
 
RealArray boundingBox
 
IntegerArray refinementFactor
 
IntegerArray multigridCoarseningFactor
 
ListOfMappedGrid grid
 
ListOfGridCollection baseGrid
 
ListOfGridCollection refinementLevel
 
ListOfGridCollection componentGrid
 
ListOfGridCollection multigridLevel
 
ListOfGridCollection domain
 
Interpolantinterpolant
 
ListOfParentChildSiblingInfoparentChildSiblingInfoList
 
int parentChildSiblingInfoNeedsUpdate
 
- Public Attributes inherited from GenericGridCollectionData
Integer computedGeometry
 
Integer numberOfGrids
 
ListOfGenericGrid grid
 
IntegerArray gridNumber
 
Integer numberOfBaseGrids
 
ListOfGenericGridCollection baseGrid
 
IntegerArray baseGridNumber
 
Integer numberOfRefinementLevels
 
ListOfGenericGridCollection refinementLevel
 
IntegerArray refinementLevelNumber
 
Integer numberOfComponentGrids
 
ListOfGenericGridCollection componentGrid
 
IntegerArray componentGridNumber
 
Integer numberOfMultigridLevels
 
ListOfGenericGridCollection multigridLevel
 
IntegerArray multigridLevelNumber
 
Integer numberOfDomains
 
ListOfGenericGridCollection domain
 
IntegerArray domainNumber
 
std::vector< aStringdomainName
 
bool keepGridDistributionOnCopy
 
GridDistributionList gridDistributionList
 
LoadBalancerpLoadBalancer
 

Protected Member Functions

virtual Integer update (GenericGridCollectionData &x, const Integer what=THEusualSuspects, const Integer how=COMPUTEtheUsual)
 
virtual void referenceRefinementLevels (GenericGridCollectionData &x, const Integer level=INTEGER_MAX)
 
Integer updateCollection (const Integer &what, Integer &numberOfCollections, ListOfGridCollection &list, ListOfGenericGridCollection &genericList, IntegerArray &collection)
 update "collections" such as THEbaseGrid, THErefinementLevel, THEcomponentGrid, THEmultigridLevel, and THEdomain.
 
int updateRefinementGrid (int n, int b, int p, const IntegerArray &range, const IntegerArray &factor, const Integer &level)
 Protected routine to update parameters in a new grid.
 
virtual Integer addRefinement (const Integer &level, const Integer k=0)
 
virtual Integer addMultigridCoarsening (const Integer &level, const Integer k=0)
 
- Protected Member Functions inherited from GenericGridCollectionData
Integer updateCollection (const Integer &what, Integer &numberOfCollections, ListOfGenericGridCollection &list, IntegerArray &number)
 

Additional Inherited Members

- Protected Types inherited from GenericGridCollectionData
enum  GridCollectionTypes {
  masterGridCollection, refinementLevelGridCollection, multigridLevelGridCollection, baseGridGridCollection,
  domainGridCollection
}
 
- Protected Attributes inherited from GenericGridCollectionData
enum
GenericGridCollectionData::GridCollectionTypes 
gridCollectionType
 

Member Enumeration Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

Integer GridCollectionData::addMultigridCoarsening ( const IntegerArray factor,
const Integer level,
const Integer  k = 0 
)
virtual
virtual Integer GridCollectionData::addMultigridCoarsening ( const Integer level,
const Integer  k = 0 
)
inlineprotectedvirtual

Reimplemented from GenericGridCollectionData.

Reimplemented in CompositeGridData.

Integer GridCollectionData::addRefinement ( const IntegerArray range,
const IntegerArray factor,
const Integer level,
const Integer  k = 0 
)
virtual
virtual Integer GridCollectionData::addRefinement ( const Integer level,
const Integer  k = 0 
)
inlineprotectedvirtual

Reimplemented from GenericGridCollectionData.

Reimplemented in CompositeGridData.

void GridCollectionData::breakReference ( void  )
virtual
void GridCollectionData::consistencyCheck ( void  ) const
virtual
void GridCollectionData::deleteMultigridCoarsening ( const Integer k)
virtual
void GridCollectionData::deleteMultigridLevels ( const Integer  level = 0)
virtual
void GridCollectionData::deleteRefinement ( const Integer k)
virtual
void GridCollectionData::deleteRefinementLevels ( const Integer  level = 0)
virtual
void GridCollectionData::destroy ( const Integer  what = NOTHING)
virtual
Integer GridCollectionData::get ( const GenericDataBase db,
const aString name 
)
virtual
virtual aString GridCollectionData::getClassName ( void  ) const
inlinevirtual
void GridCollectionData::initialize ( const Integer numberOfDimensions_,
const Integer numberOfGrids_ 
)
GridCollectionData & GridCollectionData::operator= ( const GridCollectionData x)
MappedGrid& GridCollectionData::operator[] ( const Integer i)
inline

References grid.

const MappedGrid& GridCollectionData::operator[] ( const Integer i) const
inline

References grid.

Integer GridCollectionData::put ( GenericDataBase db,
const aString name,
int  geometryToPut = -1 
) const
virtual
void GridCollectionData::reference ( const GridCollectionData x)
void GridCollectionData::referenceRefinementLevels ( GridCollectionData x,
const Integer  level = INTEGER_MAX 
)
inline
void GridCollectionData::referenceRefinementLevels ( GenericGridCollectionData x,
const Integer  level = INTEGER_MAX 
)
protectedvirtual
Integer GridCollectionData::replaceRefinementLevels ( int  level0,
int  numberOfRefinementLevels0,
IntegerArray **  gridInfo 
)
virtual
void GridCollectionData::setNumberOfDimensions ( const Integer numberOfDimensions_)
virtual
void GridCollectionData::setNumberOfDimensionsAndGrids ( const Integer numberOfDimensions_,
const Integer numberOfGrids_ 
)
virtual
void GridCollectionData::setNumberOfGrids ( const Integer numberOfGrids_)
virtual

Set the number of grids.

This function will set the number of grids in the grid collection. It will resize the gridNumber, baseGridNumber, refinementLevelNumber etc. arrays and add/delete elements to the "grid" list .

Reimplemented from GenericGridCollectionData.

Reimplemented in CompositeGridData.

References numberOfDimensions, and setNumberOfDimensionsAndGrids().

Referenced by replaceRefinementLevels().

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

References update().

Referenced by update().

Integer GridCollectionData::update ( GenericGridCollectionData x,
const Integer  what = THEusualSuspects,
const Integer  how = COMPUTEtheUsual 
)
protectedvirtual
Integer GridCollectionData::updateCollection ( const Integer what,
Integer numberOfCollections,
ListOfGridCollection list,
ListOfGenericGridCollection genericList,
IntegerArray number 
)
protected
void GridCollectionData::updateParentChildSiblingInfo ( GridCollection gc)
int GridCollectionData::updateRefinementGrid ( int  n,
int  b,
int  p,
const IntegerArray range,
const IntegerArray factor,
const Integer level 
)
protected

Member Data Documentation

ListOfGridCollection GridCollectionData::baseGrid
RealArray GridCollectionData::boundingBox
ListOfGridCollection GridCollectionData::componentGrid

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

ListOfGridCollection GridCollectionData::domain
ListOfMappedGrid GridCollectionData::grid
Interpolant* GridCollectionData::interpolant
IntegerArray GridCollectionData::multigridCoarseningFactor
ListOfGridCollection GridCollectionData::multigridLevel
Integer GridCollectionData::numberOfDimensions
ListOfParentChildSiblingInfo* GridCollectionData::parentChildSiblingInfoList
int GridCollectionData::parentChildSiblingInfoNeedsUpdate
IntegerArray GridCollectionData::refinementFactor
ListOfGridCollection GridCollectionData::refinementLevel

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


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