Overture
Version 25
|
#include <UnstructuredMapping.h>
Classes | |
class | IDTuple |
struct | TagError |
Public Member Functions | |
UnstructuredMapping () | |
UnstructuredMapping (int domainDimension_, int rangeDimension_, mappingSpace domainSpace_, mappingSpace rangeSpace_) | |
UnstructuredMapping (const UnstructuredMapping &, const CopyType copyType=DEEP) | |
~UnstructuredMapping () | |
UnstructuredMapping & | operator= (const UnstructuredMapping &X0) |
void | addGhostElements (bool trueOrFalse=true) |
virtual const realArray & | getGrid (MappingParameters ¶ms=Overture::nullMappingParameters(), bool includeGhost=false) |
int | getNumberOfNodes () const |
int | getNumberOfElements () const |
int | getNumberOfFaces () const |
int | getNumberOfEdges () const |
int | getMaxNumberOfNodesPerElement () const |
int | getMaxNumberOfFacesPerElement () const |
int | getMaxNumberOfNodesPerFace () const |
int | getNumberOfBoundaryFaces () const |
int | size (EntityTypeEnum t) const |
int | capacity (EntityTypeEnum t) const |
int | reserve (EntityTypeEnum, int) |
void | setPreferTriangles (bool trueOrFalse=true) |
void | setElementDensityTolerance (real tol) |
const realArray & | getNodes () const |
const intArray & | getElements () const |
const intArray & | getFaces () |
const intArray & | getFaceElements () |
const intArray & | getEdges () |
const intArray & | getTags () |
const intArray & | getElementFaces () |
const intArray & | getBoundaryFace () |
const intArray & | getBoundaryFaceTags () |
const intArray & | getEntities (EntityTypeEnum) |
const intArray & | getEntityAdjacencyIndices (EntityTypeEnum from, EntityTypeEnum to, intArray &offsets) |
const intArray & | getGhostElements () const |
const intArray & | getMask (EntityTypeEnum entityType) const |
void | createNodeElementList (intArray &nodeElementList) |
int | getNumberOfNodesThisElement (int element) const |
int | getNumberOfNodesThisFace (int face_) const |
int | getBoundaryFace (int bdyface_) const |
int | getBoundaryFaceTag (int bdyface_) const |
int | elementGlobalVertex (int element, int vertex) const |
int | faceGlobalVertex (int face, int vertex) const |
int | getNumberOfFacesThisElement (int element_) const |
UnstructuredMappingIterator | begin (EntityTypeEnum entityType_, bool skipGhostEntities=false) const |
UnstructuredMappingIterator | end (EntityTypeEnum entityType_, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_begin (EntityTypeEnum fromT, int fromE, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_end (EntityTypeEnum fromT, int fromE, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_begin (UnstructuredMappingIterator from, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_end (UnstructuredMappingIterator from, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_begin (UnstructuredMappingAdjacencyIterator from, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_end (UnstructuredMappingAdjacencyIterator from, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_begin (IDTuple from, EntityTypeEnum to, bool skipGhostEntities=false) const |
UnstructuredMappingAdjacencyIterator | adjacency_end (IDTuple from, EntityTypeEnum to, bool skipGhostEntities=false) const |
int | setNodesAndConnectivity (const realArray &nodes, const intArray &elements, int domainDimension=-1, bool buildConnectivity=true) |
int | setNodesAndConnectivity (const realArray &nodes, const intArray &elements, const intArray &faces, const intArray &faceElements, const intArray &elementFaces, int numberOfFaces=-1, int numberOfBoundaryFaces=-1, int domainDimension=-1, bool constantNumberOfNodesPerElement=false) |
int | setNodesElementsAndNeighbours (const realArray &nodes, const intArray &elements, const intArray &neighbours, int numberOfFaces=-1, int numberOfBoundaryFaces=-1, int domainDimension=-1) |
void | setTags (const intArray &new_tags) |
int | splitElement (int e, int relativeEdge, real *x) |
int | insideOrOutside (realArray &x, IntegerArray &inside) |
virtual int | intersects (Mapping &map2, const int &side1=-1, const int &axis1=-1, const int &side2=-1, const int &axis2=-1, const real &tol=0.) const |
int | project (realArray &x, MappingProjectionParameters &mpParameters) |
int | findClosestEntity (UnstructuredMapping::EntityTypeEnum etype, real x, real y, real z=0.) |
int | printConnectivity (FILE *file=stdout) |
int | printStatistics (FILE *file=stdout) |
int | checkConnectivity (bool printResults=true, IntegerArray *pBadElements=NULL) |
void | getNormal (int e, real *normalVector) |
intArray | buildFromAMapping (Mapping &map, intArray &maskin=Overture::nullIntegerDistributedArray()) |
int | buildFromARegularMapping (Mapping &map, ElementType elementTypePreferred=triangle) |
int | buildUnstructuredGrid (Mapping &map, int numberOfGridPoints[2]) |
void | buildFromACompositeGrid (CompositeGrid &cg) |
int | buildFromACompositeSurface (CompositeSurface &mapping) |
int | findBoundaryCurves (int &numberOfBoundaryCurves, Mapping **&boundaryCurves) |
virtual int | get (const GenericDataBase &dir, const aString &name) |
virtual int | put (GenericDataBase &dir, const aString &name) const |
virtual int | get (const aString &fileName) |
virtual int | put (const aString &fileName=nullString) const |
Mapping * | make (const aString &mappingClassName) |
int | update (MappingInformation &mapInfo) |
ElementType | getElementType (int e) const |
virtual aString | getClassName () const |
aString | getColour () const |
int | setColour (const aString &colour) |
int | getDisplayList (DisplayListProperty d) |
void | setDisplayList (DisplayListProperty d, int l) |
void | eraseUnstructuredMapping (GenericGraphicsInterface &gi) |
bool | dumpTags () const |
bool | dumpTags (bool dt) |
EntityTag & | addTag (const EntityTypeEnum entityType, const int entityIndex, const std::string tagName, const void *tagData, const bool copyTag=false, const int tagSize=0) |
int | deleteTag (const EntityTypeEnum entityType, const int entityIndex, const EntityTag &tagToDelete) |
int | deleteTag (const EntityTypeEnum entityType, const int entityIndex, const std::string tagToDelete) |
bool | hasTag (const EntityTypeEnum entityType, const int entityIndex, const std::string tag) |
EntityTag & | getTag (const EntityTypeEnum entityType, const int entityIndex, const std::string tagName) |
void * | getTagData (const EntityTypeEnum entityType, const int entityIndex, const std::string tag) |
int | setTag (const EntityTypeEnum entityType, const int entityIndex, const EntityTag &newTag) |
int | setTagData (const EntityTypeEnum entityType, const int entityIndex, const std::string tagName, const void *data, const bool copyData=false, const int tagSize=0) |
void | maintainTagToEntityMap (bool v) |
bool | maintainsTagToEntityMap () const |
entity_tag_iterator | entity_tag_begin (EntityTypeEnum et, int index) |
return the beginning of the tags for an entity specified with et and index | |
const_entity_tag_iterator | entity_tag_begin (EntityTypeEnum et, int index) const |
entity_tag_iterator | entity_tag_end (EntityTypeEnum et, int index) |
return the end of the tags for an entity specified with et and index | |
const_entity_tag_iterator | entity_tag_end (EntityTypeEnum et, int index) const |
tag_entity_iterator | tag_entity_begin (std::string tagName) |
return the beginning of the entities with the tag tagName; note this inverse mapping will be built if it does not already exist | |
tag_entity_iterator | tag_entity_end (std::string tagName) |
return the end of the entities with the tag tagName; note this inverse mapping will be built if it does not already exist | |
int | maxVerticesInEntity (EntityTypeEnum type) |
get the max number of vertices in a given entity type | |
ElementType | computeElementType (EntityTypeEnum type, int e) |
int | numberOfVertices (EntityTypeEnum, int) |
get the number of vertices in a given entity | |
bool | entitiesAreEquivalent (EntityTypeEnum type, int entity, ArraySimple< int > &verticies) |
compare the vertices of an entity to a list of vertices, return true if the list specifies the entity | |
std::string | tagPrefix (EntityTypeEnum type, EntityInfoMask info) |
tagPrefix returns the prefix associated with builtin tag conventions | |
void | setAsGhost (EntityTypeEnum type, int entity) |
setAsGhost takes an entity and adjusts the data structures to make it a ghost | |
bool | isGhost (EntityTypeEnum type, int entity) const |
isGhost returns true if a given entity is a ghost (it returns false if no ghost entity info exists) | |
void | setBC (EntityTypeEnum type, int entity, int bc) |
setBC assigns a boundary condition number to a particular entity, if the entity==-1 then the the bc is removed | |
bool | hasBC (EntityTypeEnum type, int entity) |
hasBC returns true if the given {type,entity} has a boundary condition specified | |
long | getBC (EntityTypeEnum type, int entity) |
getBC returns the boundary condition number associated with {type,entity} or returns -1 if no bc is specified | |
bool | specifyVertices (const realArray &verts) |
provide an array containing the vertices in for this mapping | |
bool | buildEntity (EntityTypeEnum type, bool rebuild=false, bool keepDownward=true, bool keepUpward=true) |
buildEntity directs the construction of the entity arrays stored in entities and entityMasks | |
bool | specifyEntity (const EntityTypeEnum type, const intArray &entity) |
provide a list of verticies identifying each entity of a particular type | |
int | addVertex (real x, real y, real z=0.) |
add a vertex to the mapping, return the index into the "node" array | |
int | addEntity (EntityTypeEnum type, ArraySimple< int > &newEntVerts) |
add a "type" entity to the mesh; specify the entity with the vertices in newEntVerts; return the new entity's index | |
bool | buildConnectivity (EntityTypeEnum from, EntityTypeEnum to, bool rebuild=false) |
buildConnectivity directs the construction of the connectivity arrays, it returns true if successfull | |
bool | specifyConnectivity (const EntityTypeEnum from, const EntityTypeEnum to, const intArray &index, const char *orientation, const intArray &offset=Overture::nullIntegerDistributedArray()) |
specifyConnectivity tells the mapping to use the given connectivity information rather than building it | |
bool | connectivityExists (EntityTypeEnum from, EntityTypeEnum to) const |
return true if the requested adjacency information exists | |
void | deleteConnectivity (EntityTypeEnum from, EntityTypeEnum to) |
delete specific connectivity information | |
void | deleteConnectivity (EntityTypeEnum type) |
delete all connectivity referring to a particular entity type | |
void | deleteConnectivity () |
delete ALL thet connectivity information | |
void | expandGhostBoundary (int bc=-1) |
expand the ghost boundary by a layer | |
Public Member Functions inherited from Mapping | |
Mapping (int domainDimension=3, int rangeDimension=3, mappingSpace domainSpace=parameterSpace, mappingSpace rangeSpace=cartesianSpace, coordinateSystem domainCoordinateSystem=cartesian, coordinateSystem rangeCoordinateSystem=cartesian) | |
Mapping (const Mapping &, const CopyType copyType=DEEP) | |
Mapping & | operator= (const Mapping &X) |
virtual | ~Mapping () |
void | reference (const Mapping &map) |
void | breakReference () |
virtual void | inverseMap (const realArray &x, realArray &r, realArray &rx=Overture::nullRealDistributedArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | basicInverse (const realArray &x, realArray &r, realArray &rx=Overture::nullRealDistributedArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | mapC (const realArray &r, const realArray &x, const realArray &xr=Overture::nullRealDistributedArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | inverseMapC (const realArray &x, const realArray &r, const realArray &rx=Overture::nullRealDistributedArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | mapGrid (const realArray &r, realArray &x, realArray &xr=Overture::nullRealDistributedArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | inverseMapGrid (const realArray &x, realArray &r, realArray &rx=Overture::nullRealDistributedArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | mapS (const RealArray &r, RealArray &x, RealArray &xr=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | inverseMapS (const RealArray &x, RealArray &r, RealArray &rx=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | basicInverseS (const RealArray &x, RealArray &r, RealArray &rx=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | mapCS (const RealArray &r, const RealArray &x, const RealArray &xr=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | inverseMapCS (const RealArray &x, const RealArray &r, const RealArray &rx=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | mapGridS (const RealArray &r, RealArray &x, RealArray &xr=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual void | inverseMapGridS (const RealArray &x, RealArray &r, RealArray &rx=Overture::nullRealArray(), MappingParameters ¶ms=Overture::nullMappingParameters()) |
virtual int | projectS (RealArray &x, MappingProjectionParameters &mpParams) |
virtual real | sizeOf (FILE *file=NULL) const |
virtual bool | updateWithCommand (MappingInformation &mapInfo, const aString &command) |
virtual int | interactiveUpdate (GenericGraphicsInterface &gi) |
virtual void | display (const aString &label=blankString) const |
int | checkMapping () |
void | reinitialize () |
int | determineResolution (int numberOfGridPoints[], bool collapsedEdge[2][3], real averageArclength[], real elementDensityTolerance=.05) |
void | secondOrderDerivative (const Index &I, const realArray &r, realArray &xrr, const int axis, const int &rAxis) |
int | findNearestGridPoint (RealArray &x, RealArray &r, RealArray &dista, RealArray &xa) |
Find the nearest grid point to each of a given set of points x(i,.) | |
real | getArcLength () |
basicInverseOptions | getBasicInverseOption () const |
int | getBoundaryCondition (const int side, const int axis) const |
virtual RealArray | getBoundingBox (const int &side=-1, const int &axis=-1) const |
virtual int | getBoundingBox (const IntegerArray &indexRange, const IntegerArray &gridIndexRange, RealArray &xBounds, bool local=false) const |
virtual int | getBoundingBox (const RealArray &rBounds, RealArray &xBounds) const |
const BoundingBox & | getBoundingBoxTree (const int &side, const int &axis) const |
int | getCoordinateEvaluationType (const coordinateSystem type) const |
Bound | getDomainBound (const int side, const int axis) const |
int | getDomainDimension () const |
coordinateSystem | getDomainCoordinateSystem () const |
Bound | getDomainCoordinateSystemBound (const int side, const int axis) const |
mappingSpace | getDomainSpace () const |
int | getGridDimensions (const int axis) const |
virtual const RealArray & | getGridSerial (MappingParameters ¶ms=Overture::nullMappingParameters(), bool includeGhost=false) |
int | getID () const |
int | getInvertible () const |
periodicType | getIsPeriodic (const int axis) const |
mappingCoordinateSystem | getMappingCoordinateSystem () const |
aString | getName (const mappingItemName item) const |
int | getGridIndexRange (int side, int axis) |
int | getNumberOfGhostPoints (int side, int axis) |
real | getParameter (const MappingParameters::realParameter ¶m) const |
int | getParameter (const MappingParameters::intParameter ¶m) const |
real | getPeriodVector (const int axis, const int direction) const |
Bound | getRangeBound (const int side, const int axis) const |
coordinateSystem | getRangeCoordinateSystem () const |
Bound | getRangeCoordinateSystemBound (const int side, const int axis) const |
int | getRangeDimension () const |
mappingSpace | getRangeSpace () const |
int | getShare (const int side, const int axis) const |
real | getSignForJacobian () const |
topologyEnum | getTopology (const int side, const int axis) const |
coordinateSingularity | getTypeOfCoordinateSingularity (const int side, const int axis) const |
bool | gridIsValid () const |
int | hasACoordinateSingularity () const |
intArray & | topologyMask () |
void | setArcLength (real length) |
virtual void | setBasicInverseOption (const basicInverseOptions option) |
virtual void | setBoundaryCondition (const int side, const int axis, const int bc) |
virtual void | setCoordinateEvaluationType (const coordinateSystem type, const int trueOrFalse) |
virtual void | setDomainBound (const int side, const int axis, const Bound domainBound) |
virtual void | setDomainCoordinateSystem (const coordinateSystem domainCoordinateSystem) |
virtual void | setDomainCoordinateSystemBound (const int side, const int axis, const Bound domainCoordinateSystemBound) |
virtual void | setDomainDimension (const int domainDimension) |
virtual void | setDomainSpace (const mappingSpace domainSpace) |
virtual void | setGrid (realArray &grid, IntegerArray &gridIndexRange) |
virtual void | setGridDimensions (const int axis, const int dim) |
virtual void | setInvertible (const int invertible) |
void | setID () |
virtual void | setIsPeriodic (const int axis, const periodicType isPeriodic) |
virtual void | setMappingCoordinateSystem (const mappingCoordinateSystem mappingCoordinateSystem0) |
virtual void | setName (const mappingItemName item, const aString &name) |
void | setGridIndexRange (int side, int axis, int num) |
void | setNumberOfGhostPoints (int side, int axis, int numGhost) |
virtual void | setParameter (const MappingParameters::realParameter ¶m, const real &value) |
virtual void | setParameter (const MappingParameters::intParameter ¶m, const int &value) |
void | setPartition (Partitioning_Type &partition) |
virtual void | setPeriodVector (const int axis, const int direction, const real periodVectorComponent) |
virtual void | setRangeBound (const int side, const int axis, const Bound rangeBound) |
virtual void | setRangeCoordinateSystem (const coordinateSystem rangeCoordinateSystem) |
virtual void | setRangeCoordinateSystemBound (const int side, const int axis, const Bound rangeCoordinateSystemBound) |
virtual void | setRangeDimension (const int rangeDimension) |
virtual void | setRangeSpace (const mappingSpace rangeSpace) |
virtual void | setShare (const int side, const int axis, const int share) |
void | setSignForJacobian (const real signForJac) |
virtual void | setTopology (const int side, const int axis, const topologyEnum topo) |
virtual void | setTypeOfCoordinateSingularity (const int side, const int axis, const coordinateSingularity) |
bool | usesDistributedInverse () const |
bool | usesDistributedMap () const |
virtual void | useRobustInverse (const bool trueOrFalse=TRUE) |
bool | usingRobustInverse () const |
Return true if the robust inverse is used. | |
virtual int | outside (const realArray &x) |
virtual int | setNumberOfGhostLines (IndexRangeType &numberOfGhostLinesNew) |
void | setNumberOfDistributedGhostLines (int numGhost) |
void | periodicShift (realArray &r, const Index &I) |
Index | getIndex (const realArray &r, realArray &x, const realArray &xr, int &base, int &bound, int &computeMap, int &computeMapDerivative) |
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) |
virtual void | consistencyCheck () const |
Static Public Member Functions | |
static bool | projectOnTriangle (real *x0, real *x1, real *x2, real *xa, real *xb, real *xt, int &intersectionFace, int &intersectionFace2, real &r0, real &s0, real *normal=NULL) |
Static Public Member Functions inherited from Mapping | |
static void | openDebugFiles () |
static void | closeDebugFiles () |
static real | epsilon () |
static void | setMinimumNumberOfDistributedGhostLines (int numGhost) |
static int | getGridMinAndMax (const realArray &u, const Range &R1, const Range &R2, const Range &R3, real uMin[3], real uMax[3], bool local=false) |
static Mapping * | makeMapping (const aString &mappingClassName) |
static MappingLinkedList & | staticMapList () |
Static Public Attributes | |
static aString | EntityTypeStrings [] |
an array usefull for diagnostics involving EntityTypeEnum | |
static aString | ElementTypeStrings [] |
an array usefull for diagnostics involving ElementType | |
Static Public Attributes inherited from Mapping | |
static int | useInitialGuessForInverse =TRUE |
static int | debug =0 |
static FILE * | debugFile =NULL |
static FILE * | pDebugFile =NULL |
static const real | bogus =10. |
Protected Types | |
enum | TimingsEnum { totalTime =0, timeForBuildingSubSurfaces, timeForConnectivity, timeForProjectGlobalSearch, timeForProjectLocalSearch, timeForStitch, timeForInsideOrOutside, numberOfTimings } |
Protected Member Functions | |
int | buildConnectivityLists () |
void | initMapping () |
int | FEZComputeElementTypes () |
IntegerArray | getElementFaceNodes (int element_, int faceOffset) const |
int | FEZInitializeConnectivity () |
int | addNodeToInterface (int s1, int &i1, int &j1, int &e1m, int &e1p, IntegerArray &connectionInfo1, int s2, int &i2, int &j2, int &e2m, int &e2p, IntegerArray &connectionInfo2, const intArray &elementface2, intArray *bNodep, IntegerArray &faceOffset, IntegerArray &elementOffset, int maxNumberOfElements, int maxNumberOfFaces) |
int | buildSearchTree () |
int | computeConnection (int s, int s2, intArray *bNodep, IntegerArray &numberOfBoundaryNodes, UnstructuredMapping *boundaryp, real epsx, IntegerArray &connectionInfo) |
bool | isDuplicateNode (int i, int n, int e, int s, int s2, real &r0, real &r1, realArray &x, real epsDup, intArray &bNode, intArray &nodeInfo, int &localEdge, real &dist0, real &dist1, real &dist2, int debugFlag) |
void | replaceNode (int n, int n0, intArray &nodeInfo, intArray &ef) |
bool | validStitch (int n, realArray &x0, realArray &x, intArray &nodeInfo, real tol, int debug) |
Protected Member Functions inherited from Mapping | |
int | buildMappingParametersDialog (DialogData &dialog) |
int | getMappingParametersOption (const aString &answer, DialogData &dialog, GenericGraphicsInterface &gi) |
: Look for a change to one of the mapping parameters. | |
int | updateMappingParametersDialog (DialogData &dialog) |
void | initializePartition () |
int | mappingHasChanged () |
void | setGridIsValid () |
void | setDefaultMappingBounds (const mappingSpace ms, Bound mappingBound[3][2]) |
void | setDefaultCoordinateSystemBounds (const coordinateSystem cs, Bound csBound[3][2]) |
int | validSide (const int side) const |
int | validAxis (const int axis) const |
void | mappingError (const aString &subName, const int side, const int axis) const |
Friends | |
class | UnstructuredMappingIterator |
class | UnstructuredMappingAdjacencyIterator |
Additional Inherited Members | |
Public Attributes inherited from Mapping | |
int | computeMap |
int | computeMapDerivative |
int | base |
int | bound |
real | signForJacobian |
ApproximateGlobalInverse * | approximateGlobalInverse |
ExactLocalInverse * | exactLocalInverse |
DistributedInverse * | distributedInverse |
Static Protected Attributes inherited from Mapping | |
static int | defaultNumberOfGhostPoints =0 |
static int | minimumNumberOfDistributedGhostLines =1 |
typedef std::list<EntityTag*>::const_iterator UnstructuredMapping::const_entity_tag_iterator |
typedef std::list<IDTuple>::const_iterator UnstructuredMapping::const_tag_entity_iterator |
typedef std::list<EntityTag*>::iterator UnstructuredMapping::entity_tag_iterator |
iterator for going through the tags in a specific entity
typedef std::list<IDTuple>::iterator UnstructuredMapping::tag_entity_iterator |
iterator for going throught the entities with a specific tag
|
protected |
UnstructuredMapping::UnstructuredMapping | ( | ) |
References absoluteStitchingTolerance, dumpTagsToHDF, edgeMask, elementDensityTolerance, elementFaces, elementMask, faceMask, ghostElements, includeGhostElements, initMapping(), Mapping::mappingName, nodeMask, NULL, preferTriangles, REAL_MAX, search, Mapping::setName(), and stitchingTolerance.
Referenced by buildFromACompositeSurface(), and make().
UnstructuredMapping::UnstructuredMapping | ( | int | domainDimension_, |
int | rangeDimension_, | ||
mappingSpace | domainSpace_, | ||
mappingSpace | rangeSpace_ | ||
) |
UnstructuredMapping::UnstructuredMapping | ( | const UnstructuredMapping & | map, |
const CopyType | copyType = DEEP |
||
) |
References DEEP, and initMapping().
UnstructuredMapping::~UnstructuredMapping | ( | ) |
int UnstructuredMapping::addEntity | ( | EntityTypeEnum | type, |
ArraySimple< int > & | newEntVerts | ||
) |
add a "type" entity to the mesh; specify the entity with the vertices in newEntVerts; return the new entity's index
References capacity(), Mapping::domainDimension, entities, entityMasks, entitySize, EntityTypeStrings, maxVerticesInEntity(), numberOfElements, reserve(), size(), and ArraySimple< T >::size().
Referenced by expandGhostBoundary(), and CompositeGrid::setHybridConnectivity().
void UnstructuredMapping::addGhostElements | ( | bool | trueOrFalse = true | ) |
References includeGhostElements.
Referenced by buildFromACompositeGrid().
|
protected |
References assert, element, face, faceElements, i2, numberOfElements, and numberOfFaces.
EntityTag & UnstructuredMapping::addTag | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const std::string | tagName, | ||
const void * | tagData, | ||
const bool | copyTag = false , |
||
const int | tagSize = 0 |
||
) |
References assert, entityTags, maintainsTagEntities, and tagEntities.
Referenced by buildFromAMapping(), buildFromARegularMapping(), expandGhostBoundary(), get(), operator=(), setAsGhost(), and setBC().
add a vertex to the mapping, return the index into the "node" array
References capacity(), entitySize, node, numberOfNodes, Mapping::rangeDimension, reserve(), size(), and Vertex.
Referenced by expandGhostBoundary().
|
inline |
References connectivityExists(), and UnstructuredMappingAdjacencyIterator.
Referenced by buildConnectivity(), buildSearchTree(), UnstructuredGeometry::computeCellCenters(), UnstructuredGeometry::computeGeometry(), MeshQualityMetrics::computeMetric(), MappingGeometry::computeVolumeIntegrals(), UNSTRUCTURED_OPS_FV2::divergence_uFV2(), expandGhostBoundary(), findClosestEntity(), MappedGridData::getUnstructuredPeriodicBC(), optimize(), optimize_one(), PlotIt::plotUM(), CompositeGrid::setHybridConnectivity(), UNSTRUCTURED_OPS_FV2::u_divergence_uFV2(), UNSTRUCTURED_OPS_FV2::u_xi_uFV2(), UNSTRUCTURED_OPS_FV2::u_xixj_uFV2(), unstructuredLink(), verifyUnstructuredConnectivity(), UNSTRUCTURED_OPS_FV2::xi_uFV2(), and UNSTRUCTURED_OPS_FV2::xixj_uFV2().
|
inline |
References connectivityExists(), and UnstructuredMappingAdjacencyIterator.
|
inline |
References connectivityExists(), and UnstructuredMappingAdjacencyIterator.
|
inline |
|
inline |
References connectivityExists(), and UnstructuredMappingAdjacencyIterator.
Referenced by buildConnectivity(), buildSearchTree(), UnstructuredGeometry::computeCellCenters(), UnstructuredGeometry::computeGeometry(), MeshQualityMetrics::computeMetric(), MappingGeometry::computeVolumeIntegrals(), UNSTRUCTURED_OPS_FV2::divergence_uFV2(), expandGhostBoundary(), findClosestEntity(), MappedGridData::getUnstructuredPeriodicBC(), optimize(), optimize_one(), PlotIt::plotUM(), CompositeGrid::setHybridConnectivity(), UNSTRUCTURED_OPS_FV2::u_divergence_uFV2(), UNSTRUCTURED_OPS_FV2::u_xi_uFV2(), UNSTRUCTURED_OPS_FV2::u_xixj_uFV2(), unstructuredLink(), verifyUnstructuredConnectivity(), UNSTRUCTURED_OPS_FV2::xi_uFV2(), and UNSTRUCTURED_OPS_FV2::xixj_uFV2().
|
inline |
References connectivityExists(), and UnstructuredMappingAdjacencyIterator.
|
inline |
References connectivityExists(), and UnstructuredMappingAdjacencyIterator.
|
inline |
|
inline |
References entities, and UnstructuredMappingIterator.
Referenced by buildConnectivity(), buildSearchTree(), UnstructuredGeometry::computeCellCenters(), UnstructuredGeometry::computeGeometry(), MeshQualityMetrics::computeMetric(), MappingGeometry::computeVolumeIntegrals(), PlotIt::contourOpt2d(), deleteConnectivity(), deleteTag(), UNSTRUCTURED_OPS_FV2::divergence_uFV2(), operator=(), optimize(), PlotIt::plotUnstructured(), UNSTRUCTURED_OPS_FV2::u_divergence_uFV2(), UNSTRUCTURED_OPS_FV2::u_xi_uFV2(), UNSTRUCTURED_OPS_FV2::u_xixj_uFV2(), update(), verifyUnstructuredConnectivity(), UNSTRUCTURED_OPS_FV2::xi_uFV2(), UNSTRUCTURED_OPS_FV2::xixj_uFV2(), and ~UnstructuredMapping().
bool UnstructuredMapping::buildConnectivity | ( | EntityTypeEnum | from, |
EntityTypeEnum | to, | ||
bool | rebuild = false |
||
) |
buildConnectivity directs the construction of the connectivity arrays, it returns true if successfull
connectivityBuilder directs the construction of the connectivity arrays, it returns true if successfull
we always have this if there are Regions
References adjacency_begin(), adjacency_end(), adjacencyOrientation, assert, begin(), buildEntity(), connectivityExists(), constructFace2EdgeFromRegions(), constructUpwardAdjacenciesFromDownward(), deleteConnectivity(), end(), entities, indexLists, UnstructuredMappingAdjacencyIterator::orientation(), size(), upwardOffsets, and Vertex.
Referenced by getEntityAdjacencyIndices().
|
protected |
References assert, bdyFace, bdyFaceTags, Mapping::debug, Mapping::domainDimension, edge, elementFaces, face, faceElements, faceZ1Offset, FEZComputeElementTypes(), getCPU(), getElementFaceNodes(), getNumberOfFacesThisElement(), getNumberOfNodesThisFace(), mask, max(), maxNumberOfFacesPerElement, maxNumberOfNodesPerFace, min(), NULL, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfFaces, and numberOfNodes.
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), getEdges(), getElementFaces(), getFaceElements(), getFaces(), setNodesAndConnectivity(), and update().
bool UnstructuredMapping::buildEntity | ( | EntityTypeEnum | type, |
bool | rebuild = false , |
||
bool | keepDownward = true , |
||
bool | keepUpward = true |
||
) |
buildEntity directs the construction of the entity arrays stored in entities and entityMasks
References adjacencyOrientation, capacity(), constructEdgeEntityFromEntity(), constructFaceEntityFromRegion(), deleteConnectivity(), Mapping::domainDimension, Edge, edge, entities, entityCapacity, entityMasks, entitySize, Face, face, indexLists, maxNumberOfNodesPerFace, maxVerticesInEntity(), Region, size(), upwardOffsets, and Vertex.
Referenced by buildConnectivity(), UnstructuredGeometry::computeGeometry(), expandGhostBoundary(), findClosestEntity(), getEntities(), and CompositeGrid::setHybridConnectivity().
void UnstructuredMapping::buildFromACompositeGrid | ( | CompositeGrid & | cg | ) |
References addGhostElements(), axis1, bdyFaceTags, buildConnectivityLists(), buildFromAMapping(), Mapping::domainDimension, element, End, face, getBoundaryFace(), getBoundaryFaceTag(), Mapping::getDomainDimension(), getElements(), getFaces(), CompositeGrid::getHybridConnectivity(), Mapping::getIndex(), getNodes(), getNumberOfBoundaryFaces(), getNumberOfElements(), getNumberOfNodes(), getNumberOfNodesThisFace(), CompositeGridHybridConnectivity::getUnstructuredGridIndex(), CompositeGridHybridConnectivity::getUVertex2GridIndex(), Mapping::gridIndexRange, i2, initMapping(), isGhost(), mask, MappedGrid::mask(), max(), maxNumberOfNodesPerElement, min(), node, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfElements, numberOfNodes, R, Mapping::rangeDimension, Mapping::setGrid(), Mapping::setGridDimensions(), Mapping::setRangeBound(), Start, tags, MappedGrid::THEmask, CompositeGrid::update(), and Vertex.
Referenced by DataFormats::writeIngrid().
int UnstructuredMapping::buildFromACompositeSurface | ( | CompositeSurface & | mapping | ) |
References abs(), absoluteStitchingTolerance, assert, bdyFace, boundingBox, buildConnectivityLists(), buildFromARegularMapping(), closerSurfaceFound(), Mapping::debug, debugs, ReferenceCounting::decrementReferenceCount(), Mapping::display(), Mapping::domainDimension, edge, element, elementDensityTolerance, elementFaces, End, F, fabs(), face, faceElements, getBoundaryFace(), CompositeSurface::getClassName(), getClassName(), Mapping::getClassName(), getCPU(), Mapping::getDomainDimension(), getElementFaces(), getElements(), getFaces(), Mapping::getGrid(), MappingProjectionParameters::getIntArray(), getNodes(), getNumberOfBoundaryFaces(), getNumberOfElements(), getNumberOfFaces(), getNumberOfNodes(), Mapping::getRangeBound(), Mapping::getRangeDimension(), MappingProjectionParameters::getRealArray(), TrimmedMapping::getTriangulation(), i2, ReferenceCounting::incrementReferenceCount(), intersects(), isDuplicateNode(), Bound::isFinite(), max(), maxNumberOfFacesPerElement, maxNumberOfNodesPerElement, maxNumberOfNodesPerFace, min(), node, nr, NULL, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfFaces, numberOfNodes, CompositeSurface::numberOfSubSurfaces(), printConnectivity(), printStatistics(), project(), r, MappingProjectionParameters::r, R, Mapping::rangeDimension, REAL_EPSILON, REAL_MAX, REAL_MIN, replaceNode(), s, setElementDensityTolerance(), setPreferTriangles(), Mapping::setRangeBound(), MappingProjectionParameters::setSearchBoundingBoxSize(), SQR, SQRT, Start, stitchingTolerance, MappingProjectionParameters::subSurfaceIndex, tags, timeForBuildingSubSurfaces, timeForProjectGlobalSearch, timeForProjectLocalSearch, timeForStitch, timing, totalTime, UnstructuredMapping(), and x.
Referenced by update().
intArray UnstructuredMapping::buildFromAMapping | ( | Mapping & | map, |
intArray & | maskin = Overture::nullIntegerDistributedArray() |
||
) |
References abs(), addTag(), axis1, axis2, axis3, capacity(), Mapping::domainDimension, dr, End, entityCapacity, entityMasks, entitySize, EntityTypeStrings, Mapping::functionPeriodic, Mapping::getBoundaryCondition(), Mapping::getClassName(), Mapping::getDomainDimension(), Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), getNumberOfNodes(), Mapping::getRangeDimension(), Mapping::getTypeOfCoordinateSingularity(), hasTag(), i2, includeGhostElements, initMapping(), isGhost(), Mapping::mapGrid(), max(), min(), node, Overture::nullIntArray(), numberOfElements, numberOfNodes, Mapping::polarSingularity, r, R, Mapping::rangeDimension, REAL_EPSILON, setAsGhost(), Mapping::setDomainDimension(), Mapping::setGridDimensions(), Mapping::setRangeBound(), Mapping::setRangeDimension(), size(), specifyEntity(), Start, Vertex, and x.
Referenced by buildFromACompositeGrid(), update(), and DataFormats::writeIngrid().
int UnstructuredMapping::buildFromARegularMapping | ( | Mapping & | map, |
ElementType | elementTypePreferred = triangle |
||
) |
References addTag(), adjacencyOrientation, assert, axis1, axis2, axis3, bdyFace, bdyFaceTags, buildUnstructuredGrid(), capacity(), checkConnectivity(), Mapping::debug, deleteConnectivity(), Mapping::derivativePeriodic, Mapping::determineResolution(), Mapping::domainDimension, dr, Edge, edge, edgeMask, element, elementDensityTolerance, elementFaces, elementMask, End, entityCapacity, entityMasks, entitySize, EntityTypeStrings, fabs(), Face, face, faceElements, faceMask, Mapping::functionPeriodic, Mapping::getBoundaryCondition(), getCPU(), Mapping::getDomainDimension(), getElementFaces(), Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), getNormal(), Mapping::getRangeBound(), Mapping::getRangeDimension(), ghostElements, i2, includeGhostElements, initMapping(), LOCAL_NODE_NUMBER, Mapping::mapGrid(), max(), min(), node, nodeMask, NULL, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfFaces, numberOfNodes, numberOfNodesPerElementIsConstant, printConnectivity(), quadrilateral, r, Mapping::rangeDimension, REAL_MIN, Region, setAsGhost(), Mapping::setGridDimensions(), Mapping::setIsPeriodic(), Mapping::setRangeBound(), specifyConnectivity(), specifyEntity(), SQR, SQRT, Start, tags, triangle, Vertex, and x.
Referenced by buildFromACompositeSurface(), and update().
|
protected |
References GeometricADT3dInt::addElement(), adjacency_begin(), adjacency_end(), assert, bb, begin(), boundingBox, element, End, end(), fabs(), getCPU(), Mapping::getDomainDimension(), Mapping::getRangeBound(), max(), min(), node, NULL, numberOfElements, Mapping::rangeDimension, REAL_EPSILON, REAL_MAX, search, Start, and Vertex.
Referenced by findClosestEntity(), insideOrOutside(), and project().
int UnstructuredMapping::buildUnstructuredGrid | ( | Mapping & | map, |
int | numberOfGridPoints[2] | ||
) |
References F, TriangleWrapper::generate(), TriangleWrapper::generateElementList(), TriangleWrapper::getNeighbours(), TriangleWrapper::getNumberOfBoundaryEdges(), TriangleWrapper::getNumberOfEdges(), TriangleWrapper::getParameters(), TriangleWrapper::getPoints(), i2, ia, TriangleWrapper::initialize(), Mapping::map(), Mapping::mapGrid(), max(), numberOfBoundaryFaces, numberOfFaces, numberOfNodes, r, R, s, TriangleWrapperParameters::saveNeighbourList(), TriangleWrapperParameters::saveVoronoi(), DataPointMapping::setDataPoints(), TriangleWrapperParameters::setMaximumArea(), setNodesElementsAndNeighbours(), TriangleWrapperParameters::setQuietMode(), SQR, SQRT, and x.
Referenced by buildFromARegularMapping().
|
inline |
References entityCapacity, and Mesh.
Referenced by addEntity(), addVertex(), buildEntity(), buildFromAMapping(), buildFromARegularMapping(), get(), reserve(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), specifyEntity(), specifyVertices(), UnstructuredMappingAdjacencyIterator::UnstructuredMappingAdjacencyIterator(), and UNSTRUCTURED_OPS_FV2::xixj_uFV2().
int UnstructuredMapping::checkConnectivity | ( | bool | printResults = true , |
IntegerArray * | pBadElements = NULL |
||
) |
References element, face, faceElements, getElementFaces(), getNumberOfFacesThisElement(), getNumberOfNodesThisElement(), getNumberOfNodesThisFace(), Mapping::isPeriodic, max(), Mapping::notPeriodic, Overture::nullIntArray(), numberOfElements, numberOfFaces, and numberOfNodes.
Referenced by buildFromARegularMapping(), CompositeTopology::buildTriangulationForVisibleSurfaces(), CompositeTopology::computeTopology(), CompositeTopology::triangulateCompositeSurface(), and CompositeTopology::update().
|
protected |
References assert, bdyFace, fabs(), faceElements, getElementFaces(), MappingProjectionParameters::getIntArray(), getNumberOfBoundaryFaces(), MappingProjectionParameters::getRealArray(), min(), node, numberOfElements, numberOfNodes, project(), MappingProjectionParameters::r, Mapping::rangeDimension, s, SQR, MappingProjectionParameters::subSurfaceIndex, tags, and x.
|
inline |
References hexahedron, numberOfVertices(), other, pyramid, quadrilateral, septahedron, tetrahedron, triangle, and triPrism.
Referenced by MeshQualityMetrics::computeMetric(), and verifyUnstructuredConnectivity().
|
inline |
return true if the requested adjacency information exists
References entities, indexLists, and Vertex.
Referenced by adjacency_begin(), adjacency_end(), and buildConnectivity().
void UnstructuredMapping::createNodeElementList | ( | intArray & | nodeElementList | ) |
References element, getNumberOfNodesThisElement(), numberOfElements, and numberOfNodes.
void UnstructuredMapping::deleteConnectivity | ( | EntityTypeEnum | from, |
EntityTypeEnum | to | ||
) |
delete specific connectivity information
References adjacencyOrientation, indexLists, and upwardOffsets.
Referenced by CompositeGrid::setHybridConnectivity().
void UnstructuredMapping::deleteConnectivity | ( | EntityTypeEnum | type | ) |
delete all connectivity referring to a particular entity type
delete all connectivity information for a specific entity type
References adjacencyOrientation, deleteTag(), entities, entity_tag_begin(), entity_tag_end(), entityCapacity, entityMasks, entitySize, indexLists, Region, size(), upwardOffsets, and Vertex.
void UnstructuredMapping::deleteConnectivity | ( | ) |
delete ALL thet connectivity information
delete ALL the connectivity information
References begin(), deleteTag(), end(), entity_tag_begin(), entity_tag_end(), entityTags, maintainTagToEntityMap(), Mesh, Region, size(), and Vertex.
Referenced by buildConnectivity(), buildEntity(), buildFromARegularMapping(), expandGhostBoundary(), operator=(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), specifyConnectivity(), specifyEntity(), and ~UnstructuredMapping().
int UnstructuredMapping::deleteTag | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const EntityTag & | tagToDelete | ||
) |
References EntityTag::getName().
Referenced by deleteConnectivity(), expandGhostBoundary(), setBC(), and ~UnstructuredMapping().
int UnstructuredMapping::deleteTag | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const std::string | tagToDelete | ||
) |
References begin(), end(), entity_tag_begin(), entity_tag_end(), entityTags, maintainsTagEntities, NULL, size(), and tagEntities.
|
inline |
References dumpTagsToHDF.
|
inline |
References dumpTagsToHDF.
|
inline |
References element.
|
inline |
References entities, and UnstructuredMappingIterator.
Referenced by buildConnectivity(), buildSearchTree(), UnstructuredGeometry::computeCellCenters(), UnstructuredGeometry::computeGeometry(), MeshQualityMetrics::computeMetric(), MappingGeometry::computeVolumeIntegrals(), PlotIt::contourOpt2d(), deleteConnectivity(), deleteTag(), UNSTRUCTURED_OPS_FV2::divergence_uFV2(), operator=(), optimize(), PlotIt::plotUnstructured(), UNSTRUCTURED_OPS_FV2::u_divergence_uFV2(), UNSTRUCTURED_OPS_FV2::u_xi_uFV2(), UNSTRUCTURED_OPS_FV2::u_xixj_uFV2(), update(), verifyUnstructuredConnectivity(), UNSTRUCTURED_OPS_FV2::xi_uFV2(), UNSTRUCTURED_OPS_FV2::xixj_uFV2(), and ~UnstructuredMapping().
bool UnstructuredMapping::entitiesAreEquivalent | ( | EntityTypeEnum | type, |
int | entity, | ||
ArraySimple< int > & | verticies | ||
) |
compare the vertices of an entity to a list of vertices, return true if the list specifies the entity
References entities, numberOfVertices(), size(), and ArraySimple< T >::size().
|
inline |
return the beginning of the tags for an entity specified with et and index
References entityTags.
Referenced by deleteConnectivity(), deleteTag(), getTag(), hasTag(), operator=(), and ~UnstructuredMapping().
|
inline |
References entityTags.
|
inline |
return the end of the tags for an entity specified with et and index
References entityTags.
Referenced by deleteConnectivity(), deleteTag(), getTag(), hasTag(), operator=(), and ~UnstructuredMapping().
|
inline |
References entityTags.
void UnstructuredMapping::eraseUnstructuredMapping | ( | GenericGraphicsInterface & | gi | ) |
References boundaryEdgeDL, GenericGraphicsInterface::deleteList(), dList, edgeDL, faceDL, faceNormalDL, nodeDL, and GenericGraphicsInterface::redraw().
Referenced by PlotIt::plotUM(), CompositeTopology::update(), and update().
void UnstructuredMapping::expandGhostBoundary | ( | int | bc = -1 | ) |
expand the ghost boundary by a layer
References addEntity(), addTag(), addVertex(), adjacency_begin(), adjacency_end(), Mapping::bc, buildEntity(), deleteConnectivity(), deleteTag(), Mapping::domainDimension, edge, End, entities, EntityTypeStrings, FEZComputeElementTypes(), getBC(), getEntities(), getTagData(), hasTag(), maintainTagToEntityMap(), max(), maxVerticesInEntity(), Mesh, min(), UnstructuredMappingAdjacencyIterator::nAdjacent(), node, normal, numberOfElements, UnstructuredMappingAdjacencyIterator::orientation(), R, Mapping::rangeDimension, reserve(), setAsGhost(), setBC(), Mapping::setRangeBound(), setTagData(), size(), Start, tag_entity_begin(), tag_entity_end(), tagEntities, tagPrefix(), tags, and Vertex.
Referenced by update().
|
inline |
References element, elementMasterTemplate, elementType, face, and faceZ1Offset.
|
protected |
References Mapping::domainDimension, elementType, hexahedron, numberOfElements, other, pyramid, quadrilateral, tetrahedron, triangle, and triPrism.
Referenced by buildConnectivityLists(), expandGhostBoundary(), get(), and setNodesAndConnectivity().
|
protected |
References assert, boundary, Mapping::domainDimension, elementMasterTemplate, hexahedron, i2, maxNumberOfFacesPerElement, maxNumberOfNodesPerElement, maxNumberOfNodesPerFace, numberOfElementTypes, numberOfFacesThisElementType, numberOfNodesThisElementFaceType, numberOfNodesThisElementType, other, pyramid, quadrilateral, septahedron, tetrahedron, triangle, and triPrism.
Referenced by get(), initMapping(), and update().
int UnstructuredMapping::findBoundaryCurves | ( | int & | numberOfBoundaryCurves, |
Mapping **& | boundaryCurves | ||
) |
References assert, C, c, cc, face, faceMask, Mapping::functionPeriodic, getBoundaryFace(), Mapping::getDomainDimension(), getNumberOfBoundaryFaces(), Mapping::getRangeDimension(), ReferenceCounting::incrementReferenceCount(), max(), node, numberOfBoundaryFaces, numberOfFaces, numberOfNodes, REAL_MIN, SplineMapping::setIsPeriodic(), SplineMapping::setPoints(), SplineMapping::setShapePreserving(), SQRT, twoPi, and x.
Referenced by update().
int UnstructuredMapping::findClosestEntity | ( | UnstructuredMapping::EntityTypeEnum | etype, |
real | x, | ||
real | y, | ||
real | z = 0. |
||
) |
|
virtual |
Reimplemented from Mapping.
References addTag(), assert, aString, bdyFace, bdyFaceTags, capacity(), Mapping::debug, Mapping::domainDimension, dumpTagsToHDF, edge, elementDensityTolerance, elementFaces, elementType, entities, entityCapacity, entityMasks, entitySize, EntityTypeStrings, face, faceElements, faceZ1Offset, FEZComputeElementTypes(), FEZInitializeConnectivity(), GenericDataBase::find(), GenericDataBase::get(), Mapping::get(), GenericDataBase::getDistributed(), GhostEntity, Mapping::mappingHasChanged(), maxNumberOfFacesPerElement, maxNumberOfNodesPerFace, node, NULL, numberOfBoundaryElements, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfElementTypes, numberOfFaces, numberOfInternalElements, numberOfInternalFaces, numberOfNodes, setAsGhost(), size(), specifyEntity(), tags, Vertex, and GenericDataBase::virtualConstructor().
Referenced by CompositeTopology::get(), CompositeGridData::get(), and TrimmedMapping::get().
|
virtual |
References capacity(), Mapping::domainDimension, entityCapacity, entityMasks, entitySize, node, DataFormats::readIngrid(), specifyEntity(), and Vertex.
|
inline |
getBC returns the boundary condition number associated with {type,entity} or returns -1 if no bc is specified
References BCEntity, getTagData(), hasBC(), and tagPrefix().
Referenced by expandGhostBoundary(), and PlotIt::plotUnstructured().
const intArray & UnstructuredMapping::getBoundaryFace | ( | ) |
References bdyFace.
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), findBoundaryCurves(), optimize(), and refineTriangulation().
|
inline |
References bdyFace.
|
inline |
References bdyFaceTags.
Referenced by buildFromACompositeGrid().
const intArray & UnstructuredMapping::getBoundaryFaceTags | ( | ) |
References bdyFaceTags.
|
inlinevirtual |
Reimplemented from Mapping.
Referenced by buildFromACompositeSurface(), operator=(), and update().
aString UnstructuredMapping::getColour | ( | ) | const |
Referenced by PlotIt::plotUnstructured().
|
inline |
References dList, and numberOfDLProperties.
Referenced by PlotIt::plotUM().
const intArray & UnstructuredMapping::getEdges | ( | ) |
References buildConnectivityLists(), and edge.
Referenced by computeDeviation(), MeshQualityMetrics::outputHistogram(), and refineTriangulation().
|
inlineprotected |
References assert, element, elementMasterTemplate, elementType, ia, numberOfElements, and numberOfNodesThisElementFaceType.
Referenced by buildConnectivityLists().
const intArray & UnstructuredMapping::getElementFaces | ( | ) |
References buildConnectivityLists(), Mapping::domainDimension, element, elementFaces, face, faceElements, Mapping::getIsPeriodic(), getNumberOfNodesThisElement(), maxNumberOfNodesPerElement, Mapping::notPeriodic, NULL, numberOfElements, and numberOfFaces.
Referenced by buildFromACompositeSurface(), buildFromARegularMapping(), CompositeTopology::buildTriangulationForVisibleSurfaces(), checkConnectivity(), computeConnection(), HyperbolicMapping::correctProjectionOfInitialCurve(), printConnectivity(), project(), splitElement(), CompositeTopology::triangulateCompositeSurface(), CompositeTopology::update(), and update().
const intArray & UnstructuredMapping::getElements | ( | ) | const |
References element.
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), CompositeTopology::buildTriangulationForVisibleSurfaces(), computeDeviation(), MeshQualityMetrics::computeJacobianProperties(), PlotIt::contourOpt2d(), HyperbolicMapping::correctProjectionOfInitialCurve(), evaluateDeviation(), MeshQualityMetrics::plot(), refineTriangulation(), Ugen::sealHoles3D(), CompositeTopology::triangulateCompositeSurface(), CompositeTopology::update(), and DataFormats::writeIngrid().
|
inline |
References elementType, maxNumberOfNodesPerElement, and triangle.
Referenced by MeshQualityMetrics::computeJacobianProperties().
const intArray & UnstructuredMapping::getEntities | ( | EntityTypeEnum | type | ) |
References buildEntity(), and entities.
Referenced by Integrate::computeStitchedSurfaceWeights(), Integrate::computeStitchedSurfaceWeightsOld(), expandGhostBoundary(), main(), numberOfVertices(), optimize(), optimize_one(), PlotIt::plotUM(), PlotIt::plotUnstructured(), and verifyUnstructuredConnectivity().
const intArray & UnstructuredMapping::getEntityAdjacencyIndices | ( | EntityTypeEnum | from, |
EntityTypeEnum | to, | ||
intArray & | offsets | ||
) |
References buildConnectivity(), entities, indexLists, upwardOffsets, and Vertex.
const intArray & UnstructuredMapping::getFaceElements | ( | ) |
References buildConnectivityLists(), and faceElements.
Referenced by CompositeTopology::buildTriangulationForVisibleSurfaces(), HyperbolicMapping::correctProjectionOfInitialCurve(), MeshQualityMetrics::plot(), refineTriangulation(), CompositeTopology::triangulateCompositeSurface(), and CompositeTopology::update().
const intArray & UnstructuredMapping::getFaces | ( | ) |
References buildConnectivityLists(), and face.
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), CompositeTopology::buildTriangulationForVisibleSurfaces(), PlotIt::contourOpt2d(), HyperbolicMapping::correctProjectionOfInitialCurve(), MeshQualityMetrics::plot(), refineTriangulation(), CompositeTopology::triangulateCompositeSurface(), and CompositeTopology::update().
const intArray & UnstructuredMapping::getGhostElements | ( | ) | const |
References ghostElements, NULL, and Overture::nullIntegerDistributedArray().
|
inlinevirtual |
const intArray & UnstructuredMapping::getMask | ( | EntityTypeEnum | entityType | ) | const |
References NULL, and Overture::nullIntegerDistributedArray().
int UnstructuredMapping::getMaxNumberOfFacesPerElement | ( | ) | const |
References maxNumberOfNodesPerElement.
int UnstructuredMapping::getMaxNumberOfNodesPerElement | ( | ) | const |
References maxNumberOfNodesPerElement.
Referenced by MeshQualityMetrics::computeJacobianProperties(), PlotIt::contourOpt2d(), optimize(), optimize_one(), and DataFormats::writeIngrid().
int UnstructuredMapping::getMaxNumberOfNodesPerFace | ( | ) | const |
References maxNumberOfNodesPerFace.
const realArray & UnstructuredMapping::getNodes | ( | ) | const |
References node.
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), CompositeTopology::buildSubSurfaceTriangulation(), CompositeTopology::buildTriangulationForVisibleSurfaces(), UnstructuredGeometry::computeCellCenters(), computeDeviation(), UnstructuredGeometry::computeGeometry(), MeshQualityMetrics::computeJacobianProperties(), MeshQualityMetrics::computeMetric(), Integrate::computeStitchedSurfaceWeights(), Integrate::computeStitchedSurfaceWeightsOld(), MappingGeometry::computeVolumeIntegrals(), PlotIt::contourOpt2d(), HyperbolicMapping::correctProjectionOfInitialCurve(), evaluateDeviation(), Ugen::generateWithAdvancingFront(), main(), optimize(), optimize_one(), MeshQualityMetrics::outputHistogram(), MeshQualityMetrics::plot(), PlotIt::plotUM(), PlotIt::plotUnstructured(), refineTriangulation(), Ugen::sealHoles3D(), CompositeTopology::triangulateCompositeSurface(), UNSTRUCTURED_OPS_FV2::u_xixj_uFV2(), CompositeTopology::update(), verifyUnstructuredConnectivity(), DataFormats::writeIngrid(), and UNSTRUCTURED_OPS_FV2::xixj_uFV2().
void UnstructuredMapping::getNormal | ( | int | e, |
real * | normalVector | ||
) |
References element, node, SQR, and SQRT.
Referenced by buildFromARegularMapping(), project(), and validStitch().
int UnstructuredMapping::getNumberOfBoundaryFaces | ( | ) | const |
int UnstructuredMapping::getNumberOfEdges | ( | ) | const |
References numberOfEdges.
Referenced by computeDeviation(), MeshQualityMetrics::outputHistogram(), refineTriangulation(), and UnstructuredMappingIterator::UnstructuredMappingIterator().
int UnstructuredMapping::getNumberOfElements | ( | ) | const |
References Mapping::domainDimension, numberOfElements, and size().
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), CompositeTopology::buildSubSurfaceTriangulation(), CompositeTopology::buildTriangulationForVisibleSurfaces(), computeDeviation(), MeshQualityMetrics::computeJacobianProperties(), PlotIt::contourOpt2d(), HyperbolicMapping::correctProjectionOfInitialCurve(), evaluateDeviation(), MeshQualityMetrics::outputHistogram(), MeshQualityMetrics::plot(), CompositeSurface::project(), HyperbolicMapping::project(), CompositeSurface::refineSubSurface(), refineTriangulation(), Ugen::sealHoles3D(), CompositeTopology::triangulateCompositeSurface(), UnstructuredMappingIterator::UnstructuredMappingIterator(), CompositeTopology::update(), CompositeSurface::update(), and DataFormats::writeIngrid().
int UnstructuredMapping::getNumberOfFaces | ( | ) | const |
References Mapping::domainDimension, numberOfFaces, and size().
Referenced by buildFromACompositeSurface(), CompositeTopology::buildSubSurfaceTriangulation(), CompositeTopology::buildTriangulationForVisibleSurfaces(), PlotIt::contourOpt2d(), MeshQualityMetrics::plot(), CompositeTopology::triangulateCompositeSurface(), and UnstructuredMappingIterator::UnstructuredMappingIterator().
|
inline |
References assert, elementType, maxNumberOfNodesPerElement, numberOfFacesThisElementType, and numberOfNodesPerElementIsConstant.
Referenced by buildConnectivityLists(), checkConnectivity(), and printConnectivity().
int UnstructuredMapping::getNumberOfNodes | ( | ) | const |
References numberOfNodes, size(), and Vertex.
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), buildFromAMapping(), CompositeTopology::buildSubSurfaceTriangulation(), CompositeTopology::buildTriangulationForVisibleSurfaces(), PlotIt::contourOpt2d(), refineTriangulation(), Ugen::sealHoles3D(), CompositeTopology::triangulateCompositeSurface(), UnstructuredMappingIterator::UnstructuredMappingIterator(), CompositeTopology::update(), and DataFormats::writeIngrid().
|
inline |
References assert, elementType, maxNumberOfNodesPerElement, numberOfNodesPerElementIsConstant, and numberOfNodesThisElementType.
Referenced by checkConnectivity(), MeshQualityMetrics::computeJacobianProperties(), createNodeElementList(), getElementFaces(), MeshQualityMetrics::plot(), and printConnectivity().
|
inline |
EntityTag & UnstructuredMapping::getTag | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const std::string | tagName | ||
) |
References entity_tag_begin(), and entity_tag_end().
Referenced by getTagData(), and setTagData().
void * UnstructuredMapping::getTagData | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const std::string | tag | ||
) |
References EntityTag::getData(), and getTag().
Referenced by expandGhostBoundary(), getBC(), MappedGridData::getUnstructuredBCInfo(), and MappedGridData::getUnstructuredPeriodicBC().
const intArray & UnstructuredMapping::getTags | ( | ) |
|
inline |
hasBC returns true if the given {type,entity} has a boundary condition specified
References BCEntity, and entityMasks.
Referenced by getBC(), and PlotIt::plotUnstructured().
bool UnstructuredMapping::hasTag | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const std::string | tag | ||
) |
References entity_tag_begin(), and entity_tag_end().
Referenced by buildFromAMapping(), expandGhostBoundary(), MappedGridData::getUnstructuredPeriodicBC(), optimize(), optimize_one(), setAsGhost(), setBC(), and CompositeGrid::setHybridConnectivity().
|
protected |
References adjacencyOrientation, debugs, dList, Mapping::domainDimension, edgeMask, elementFaces, elementMask, entities, entityCapacity, entityMasks, entitySize, faceMask, FEZInitializeConnectivity(), ghostElements, indexLists, maintainsTagEntities, maintainTagToEntityMap(), Mesh, nodeMask, NULL, numberOfBoundaryFaces, numberOfDLProperties, numberOfEdges, numberOfElements, numberOfFaces, numberOfNodes, numberOfNodesPerElementIsConstant, numberOfTimings, search, Mapping::setGridDimensions(), timing, upwardOffsets, and Vertex.
Referenced by buildFromACompositeGrid(), buildFromAMapping(), buildFromARegularMapping(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), and UnstructuredMapping().
int UnstructuredMapping::insideOrOutside | ( | realArray & | x, |
IntegerArray & | inside | ||
) |
References axis1, axis2, axis3, bb, boundingBox, buildSearchTree(), Mapping::debug, Triangle::display(), element, End, fabs(), getCPU(), Mapping::getRangeBound(), Triangle::getRelativeCoordinates(), Triangle::intersects(), GeometricADTTraversor3dInt::isFinished(), node, NULL, numberOfNodes, Mapping::rangeDimension, REAL_EPSILON, search, GeometricADTTraversor3dInt::setTarget(), Triangle::setVertices(), Start, timeForInsideOrOutside, timing, totalTime, TRUE, Triangle::x1, Triangle::x2, and Triangle::x3.
Referenced by CompositeSurface::insideOrOutside().
|
protected |
References assert, c, duplicateNodeFound(), element, fabs(), max(), min(), node, and SQR.
Referenced by buildFromACompositeSurface().
|
inline |
isGhost returns true if a given entity is a ghost (it returns false if no ghost entity info exists)
References entityMasks, and GhostEntity.
Referenced by buildFromACompositeGrid(), buildFromAMapping(), and PlotIt::plotUnstructured().
bool UnstructuredMapping::maintainsTagToEntityMap | ( | ) | const |
References maintainsTagEntities.
void UnstructuredMapping::maintainTagToEntityMap | ( | bool | v | ) |
References entityTags, maintainsTagEntities, and tagEntities.
Referenced by deleteConnectivity(), expandGhostBoundary(), initMapping(), tag_entity_begin(), tag_entity_end(), and ~UnstructuredMapping().
Reimplemented from Mapping.
References UnstructuredMapping().
|
inline |
get the max number of vertices in a given entity type
References Vertex.
Referenced by addEntity(), buildEntity(), expandGhostBoundary(), PlotIt::plotUnstructured(), reserve(), and CompositeGrid::setHybridConnectivity().
|
inline |
get the number of vertices in a given entity
References getEntities(), and Vertex.
Referenced by computeElementType(), PlotIt::contourOpt2d(), and entitiesAreEquivalent().
UnstructuredMapping & UnstructuredMapping::operator= | ( | const UnstructuredMapping & | X0 | ) |
References absoluteStitchingTolerance, addTag(), adjacencyOrientation, bdyFace, bdyFaceTags, begin(), EntityTag::copiesData(), deleteConnectivity(), dumpTagsToHDF, edge, element, elementDensityTolerance, elementFaces, elementMasterTemplate, elementType, end(), entities, entity_tag_begin(), entity_tag_end(), entityCapacity, entityDataStructureHoles, entityMasks, entitySize, face, faceElements, faceZ1Offset, getClassName(), EntityTag::getData(), EntityTag::getDataSize(), EntityTag::getName(), indexLists, maxNumberOfFacesPerElement, maxNumberOfNodesPerElement, maxNumberOfNodesPerFace, Mesh, node, NULL, numberOfBoundaryElements, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfFaces, numberOfFacesThisElementType, numberOfInternalElements, numberOfInternalFaces, numberOfNodes, numberOfNodesThisElementFaceType, numberOfNodesThisElementType, Mapping::operator=(), preferTriangles, reserve(), search, size(), specifyConnectivity(), stitchingTolerance, tagEntities, tags, upwardOffsets, and Vertex.
int UnstructuredMapping::printConnectivity | ( | FILE * | file = stdout | ) |
References element, face, faceElements, getElementFaces(), getNumberOfFacesThisElement(), getNumberOfNodesThisElement(), numberOfElements, numberOfFaces, and numberOfNodes.
Referenced by buildFromACompositeSurface(), buildFromARegularMapping(), setNodesElementsAndNeighbours(), CompositeTopology::triangulateCompositeSurface(), and update().
int UnstructuredMapping::printStatistics | ( | FILE * | file = stdout | ) |
References aString, max(), numberOfElements, numberOfFaces, numberOfNodes, numberOfTimings, REAL_MIN, timing, and totalTime.
Referenced by buildFromACompositeSurface(), and CompositeSurface::printStatistics().
|
virtual |
Reimplemented from Mapping.
References MappingProjectionParameters::adjustForCornersWhenMarching(), assert, bb, buildSearchTree(), debugs, delta, Mapping::display(), Mapping::domainDimension, element, End, Mapping::epsilon(), fabs(), faceElements, getCPU(), getElementFaces(), MappingProjectionParameters::getIntArray(), getNormal(), Mapping::getRangeBound(), MappingProjectionParameters::getRealArray(), GeometricADTTraversor3dInt::isFinished(), max(), min(), node, normal, NULL, numberOfElements, numberOfNodes, MappingProjectionParameters::onlyChangePointsAdjustedForCornersWhenMarching(), projectOnTriangle(), r, R, Mapping::rangeDimension, REAL_EPSILON, REAL_MAX, s, search, MappingProjectionParameters::searchBoundingBoxMaximumSize, MappingProjectionParameters::searchBoundingBoxSize, GeometricADTTraversor3dInt::setTarget(), SQR, SQRT, Start, timeForProjectGlobalSearch, timeForProjectLocalSearch, timing, and totalTime.
Referenced by buildFromACompositeSurface(), closerSurfaceFound(), computeConnection(), CompositeSurface::project(), HyperbolicMapping::project(), CompositeTopology::update(), and update().
|
virtual |
Reimplemented from Mapping.
References assert, aString, bdyFace, bdyFaceTags, GenericDataBase::create(), Mapping::domainDimension, dumpTagsToHDF, edge, elementDensityTolerance, elementFaces, elementType, entities, entityMasks, entitySize, entityTags, EntityTypeStrings, face, faceElements, faceZ1Offset, maxNumberOfFacesPerElement, maxNumberOfNodesPerFace, node, NULL, numberOfBoundaryElements, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfElementTypes, numberOfInternalElements, numberOfInternalFaces, numberOfNodes, GenericDataBase::put(), Mapping::put(), GenericDataBase::putDistributed(), sPrintF(), tags, Vertex, and GenericDataBase::virtualConstructor().
Referenced by CompositeTopology::update(), and update().
|
virtual |
References DataFormats::writeIngrid().
|
protected |
References element, face, and faceElements.
Referenced by buildFromACompositeSurface().
int UnstructuredMapping::reserve | ( | EntityTypeEnum | type, |
int | amt | ||
) |
References capacity(), entities, entityCapacity, entityMasks, maxVerticesInEntity(), node, NullEntityInfo, Mapping::rangeDimension, size(), and Vertex.
Referenced by addEntity(), addVertex(), expandGhostBoundary(), operator=(), and CompositeGrid::setHybridConnectivity().
void UnstructuredMapping::setAsGhost | ( | EntityTypeEnum | type, |
int | entity | ||
) |
setAsGhost takes an entity and adjusts the data structures to make it a ghost
References addTag(), entityMasks, EntityTypeStrings, GhostEntity, and hasTag().
Referenced by buildFromAMapping(), buildFromARegularMapping(), expandGhostBoundary(), get(), and CompositeGrid::setHybridConnectivity().
void UnstructuredMapping::setBC | ( | EntityTypeEnum | type, |
int | entity, | ||
int | bc | ||
) |
setBC assigns a boundary condition number to a particular entity, if the entity==-1 then the the bc is removed
setBC assigns a boundary condition number to a particular entity, if the entity==-1 the the bc is removed
References addTag(), BCEntity, deleteTag(), entityMasks, hasTag(), setTagData(), and tagPrefix().
Referenced by expandGhostBoundary(), and CompositeGrid::setHybridConnectivity().
int UnstructuredMapping::setColour | ( | const aString & | colour | ) |
Referenced by PlotIt::plotUM(), and CompositeTopology::update().
|
inline |
References dList.
Referenced by PlotIt::plotUM().
void UnstructuredMapping::setElementDensityTolerance | ( | real | tol | ) |
References elementDensityTolerance.
Referenced by buildFromACompositeSurface(), and update().
int UnstructuredMapping::setNodesAndConnectivity | ( | const realArray & | nodes, |
const intArray & | elements, | ||
int | domainDimension = -1 , |
||
bool | buildConnectivity = true |
||
) |
References axis1, buildConnectivityLists(), capacity(), deleteConnectivity(), Mapping::domainDimension, element, End, entityCapacity, entityMasks, entitySize, FEZComputeElementTypes(), initMapping(), max(), maxNumberOfNodesPerElement, min(), node, NULL, numberOfElements, numberOfNodes, R, Mapping::rangeDimension, search, Mapping::setGridDimensions(), Mapping::setRangeBound(), specifyEntity(), Start, tags, and Vertex.
Referenced by Ugen::buildHybridInterfaceMappings(), Ugen::generateWithAdvancingFront(), Ugen::generateWithTriangle(), Ugen::getUnstructuredMapping(), main(), DataFormats::readCart3dTri(), MappingsFromCAD::readFiniteElements(), DataFormats::readIngrid(), DataFormats::readPly(), DataFormats::readSTL(), DataFormats::readTecplot(), refineTriangulation(), CompositeTopology::triangulateCompositeSurface(), and update().
int UnstructuredMapping::setNodesAndConnectivity | ( | const realArray & | nodes, |
const intArray & | elements, | ||
const intArray & | faces, | ||
const intArray & | faceElements, | ||
const intArray & | elementFaces, | ||
int | numberOfFaces = -1 , |
||
int | numberOfBoundaryFaces = -1 , |
||
int | domainDimension = -1 , |
||
bool | constantNumberOfNodesPerElement = false |
||
) |
References axis1, bdyFace, bdyFaceTags, capacity(), Mapping::debug, deleteConnectivity(), Mapping::domainDimension, edge, element, elementFaces, End, entityCapacity, entityMasks, entitySize, F, face, faceElements, getCPU(), initMapping(), max(), maxNumberOfFacesPerElement, maxNumberOfNodesPerElement, maxNumberOfNodesPerFace, min(), node, NULL, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfFaces, numberOfNodes, numberOfNodesPerElementIsConstant, R, Mapping::rangeDimension, search, Mapping::setGridDimensions(), Mapping::setRangeBound(), specifyEntity(), Start, tags, and Vertex.
int UnstructuredMapping::setNodesElementsAndNeighbours | ( | const realArray & | nodes, |
const intArray & | elements, | ||
const intArray & | neighbours, | ||
int | numberOfFaces = -1 , |
||
int | numberOfBoundaryFaces = -1 , |
||
int | domainDimension = -1 |
||
) |
References assert, axis1, bdyFace, bdyFaceTags, capacity(), Mapping::debug, deleteConnectivity(), Mapping::domainDimension, edge, element, elementFaces, End, entityCapacity, entityMasks, entitySize, face, faceElements, getCPU(), initMapping(), max(), maxNumberOfFacesPerElement, maxNumberOfNodesPerElement, maxNumberOfNodesPerFace, min(), node, NULL, numberOfBoundaryFaces, numberOfEdges, numberOfElements, numberOfFaces, numberOfNodes, printConnectivity(), R, Mapping::rangeDimension, search, Mapping::setGridDimensions(), Mapping::setRangeBound(), specifyEntity(), Start, tags, and Vertex.
Referenced by CompositeTopology::buildSubSurfaceTriangulation(), buildUnstructuredGrid(), and TrimmedMapping::triangulate().
|
inline |
References preferTriangles.
Referenced by buildFromACompositeSurface(), and update().
int UnstructuredMapping::setTag | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const EntityTag & | newTag | ||
) |
int UnstructuredMapping::setTagData | ( | const EntityTypeEnum | entityType, |
const int | entityIndex, | ||
const std::string | tagName, | ||
const void * | data, | ||
const bool | copyData = false , |
||
const int | tagSize = 0 |
||
) |
References getTag(), and EntityTag::setData().
Referenced by expandGhostBoundary(), and setBC().
void UnstructuredMapping::setTags | ( | const intArray & | new_tags | ) |
|
inline |
References entitySize, and Mesh.
Referenced by addEntity(), addVertex(), buildConnectivity(), buildEntity(), buildFromAMapping(), Ugen::buildHybridInterfaceMappings(), UnstructuredGeometry::computeGeometry(), MeshQualityMetrics::computeMetric(), Integrate::computeStitchedSurfaceWeights(), Integrate::computeStitchedSurfaceWeightsOld(), deleteConnectivity(), deleteTag(), entitiesAreEquivalent(), expandGhostBoundary(), findClosestEntity(), get(), getIndex(), getNumberOfElements(), getNumberOfFaces(), getNumberOfNodes(), MappedGridData::getUnstructuredPeriodicBC(), main(), operator=(), optimize(), optimize_one(), PlotIt::plotUM(), PlotIt::plotUnstructured(), reserve(), CompositeGrid::setHybridConnectivity(), UNSTRUCTURED_OPS_FV2::u_xi_uFV2(), UNSTRUCTURED_OPS_FV2::u_xixj_uFV2(), UnstructuredMappingIterator::UnstructuredMappingIterator(), verifyUnstructuredConnectivity(), and ~UnstructuredMapping().
bool UnstructuredMapping::specifyConnectivity | ( | const EntityTypeEnum | from, |
const EntityTypeEnum | to, | ||
const intArray & | index, | ||
const char * | orientation, | ||
const intArray & | offset = Overture::nullIntegerDistributedArray() |
||
) |
specifyConnectivity tells the mapping to use the given connectivity information rather than building it
References adjacencyOrientation, deleteConnectivity(), indexLists, Overture::nullIntArray(), and upwardOffsets.
Referenced by buildFromARegularMapping(), and operator=().
bool UnstructuredMapping::specifyEntity | ( | const EntityTypeEnum | type, |
const intArray & | entity | ||
) |
provide a list of verticies identifying each entity of a particular type
References capacity(), deleteConnectivity(), Mapping::domainDimension, E, entities, entityCapacity, entityMasks, entitySize, indexLists, R, and Vertex.
Referenced by buildFromAMapping(), buildFromARegularMapping(), get(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), and CompositeTopology::update().
bool UnstructuredMapping::specifyVertices | ( | const realArray & | verts | ) |
provide an array containing the vertices in for this mapping
References capacity(), entityCapacity, entityMasks, entitySize, node, and Vertex.
int UnstructuredMapping::splitElement | ( | int | e, |
int | relativeEdge, | ||
real * | x | ||
) |
References assert, Mapping::domainDimension, element, faceElements, getElementFaces(), node, numberOfElements, numberOfFaces, numberOfNodes, and Mapping::rangeDimension.
|
inline |
return the beginning of the entities with the tag tagName; note this inverse mapping will be built if it does not already exist
References maintainTagToEntityMap(), and tagEntities.
Referenced by expandGhostBoundary(), MappedGridData::getUnstructuredBCInfo(), MappedGridData::getUnstructuredPeriodicBC(), PlotIt::plotUnstructured(), and CompositeGrid::setHybridConnectivity().
|
inline |
return the end of the entities with the tag tagName; note this inverse mapping will be built if it does not already exist
References maintainTagToEntityMap(), and tagEntities.
Referenced by expandGhostBoundary(), MappedGridData::getUnstructuredBCInfo(), MappedGridData::getUnstructuredPeriodicBC(), PlotIt::plotUnstructured(), and CompositeGrid::setHybridConnectivity().
std::string UnstructuredMapping::tagPrefix | ( | EntityTypeEnum | type, |
EntityInfoMask | info | ||
) |
tagPrefix returns the prefix associated with builtin tag conventions
References BCEntity, EntityTypeStrings, GhostEntity, and s.
Referenced by expandGhostBoundary(), getBC(), and setBC().
|
virtual |
Reimplemented from Mapping.
References absoluteStitchingTolerance, SelectionInfo::active, DialogData::addInfoLabel(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, axis1, begin(), buildConnectivityLists(), buildFromACompositeSurface(), buildFromAMapping(), buildFromARegularMapping(), MappingInformation::command, MappingInformation::commandOption, GraphicsParameters::curveLineWidth, debugs, ReferenceCounting::decrementReferenceCount(), Mapping::domainDimension, element, elementDensityTolerance, MappingProjectionParameters::elementIndex, End, end(), GenericGraphicsInterface::erase(), eraseUnstructuredMapping(), expandGhostBoundary(), face, faceElements, FALSE, FEZInitializeConnectivity(), findBoundaryCurves(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), getClassName(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), getCPU(), Mapping::getDomainDimension(), getElementFaces(), MappingProjectionParameters::getIntArray(), ListOfMappingRC::getLength(), getLineFromFile(), GenericGraphicsInterface::getMenuItem(), Mapping::getName(), Mapping::getRangeDimension(), TrimmedMapping::getTriangulation(), GenericGraphicsInterface::getValues(), ghostElements, GI_MAPPING_COLOUR, GI_PLOT_BLOCK_BOUNDARIES, GI_PLOT_GRID_LINES, GI_PLOT_LINES_ON_GRID_BOUNDARIES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_PLOT_UNS_BOUNDARY_EDGES, GI_PLOT_UNS_EDGES, GI_PLOT_UNS_FACES, GI_PLOT_WIRE_FRAME, GI_POINT_SIZE, GI_TOP_LABEL, MappingInformation::graphXInterface, includeGhostElements, GenericGraphicsInterface::inputString(), MappingInformation::interactive, Mapping::mappingHasChanged(), MappingInformation::mappingList, Mapping::mappingName, max(), maxNumberOfNodesPerElement, min(), node, SelectionInfo::nSelect, NULL, numberOfElements, numberOfNodes, CompositeSurface::numberOfSubSurfaces(), GenericGraphicsInterface::outputString(), PlotIt::plot(), GenericGraphicsInterface::plotPoints(), GenericGraphicsInterface::popGUI(), preferTriangles, printConnectivity(), printF(), project(), GenericGraphicsInterface::pushGUI(), put(), quadrilateral, SelectionInfo::r, R, Mapping::rangeDimension, MappingInformation::readOneCommand, DataFormats::readSTL(), s, GraphicsParameters::set(), setElementDensityTolerance(), DialogData::setExitCommand(), Mapping::setGridDimensions(), setNodesAndConnectivity(), setPreferTriangles(), Mapping::setRangeBound(), DialogData::setWindowTitle(), sPrintF(), sScanF(), Start, stitchingTolerance, GenericGraphicsInterface::stopReadingCommandFile(), MappingProjectionParameters::subSurfaceIndex, tags, triangle, TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), Mapping::update(), verifyUnstructuredConnectivity(), SelectionInfo::x, and x.
Referenced by MappingsFromCAD::readMappings(), CompositeTopology::update(), and HyperbolicMapping::update().
|
protected |
References assert, element, face, faceElements, getNormal(), max(), node, REAL_MIN, SQR, and SQRT.
|
friend |
Referenced by adjacency_begin(), and adjacency_end().
|
friend |
|
protected |
Referenced by buildFromACompositeSurface(), operator=(), UnstructuredMapping(), and update().
|
protected |
entity adjacency orientations
Referenced by buildConnectivity(), buildEntity(), buildFromARegularMapping(), deleteConnectivity(), initMapping(), operator=(), specifyConnectivity(), and UnstructuredMappingAdjacencyIterator::UnstructuredMappingAdjacencyIterator().
|
protected |
|
protected |
|
protected |
Referenced by buildFromACompositeSurface(), initMapping(), project(), and update().
|
protected |
Referenced by eraseUnstructuredMapping(), getDisplayList(), initMapping(), and setDisplayList().
|
protected |
Referenced by dumpTags(), get(), operator=(), put(), UnstructuredMapping(), and ~UnstructuredMapping().
|
protected |
|
protected |
|
protected |
Referenced by addNodeToInterface(), buildFromACompositeGrid(), buildFromACompositeSurface(), buildFromARegularMapping(), buildSearchTree(), checkConnectivity(), createNodeElementList(), elementGlobalVertex(), faceGlobalVertex(), getElementFaceNodes(), getElementFaces(), getElements(), getNormal(), insideOrOutside(), isDuplicateNode(), operator=(), printConnectivity(), project(), replaceNode(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), splitElement(), update(), and validStitch().
|
protected |
Referenced by buildFromACompositeSurface(), buildFromARegularMapping(), get(), operator=(), put(), setElementDensityTolerance(), UnstructuredMapping(), and update().
|
protected |
|
protected |
|
protected |
Referenced by faceGlobalVertex(), FEZInitializeConnectivity(), getElementFaceNodes(), and operator=().
|
protected |
|
static |
an array usefull for diagnostics involving ElementType
Referenced by verifyUnstructuredConnectivity().
|
protected |
entities maintains the node/vertex ID lists for each entity
Referenced by addEntity(), begin(), buildConnectivity(), buildEntity(), connectivityExists(), deleteConnectivity(), end(), entitiesAreEquivalent(), expandGhostBoundary(), get(), getEntities(), getEntityAdjacencyIndices(), initMapping(), operator=(), put(), reserve(), and specifyEntity().
|
protected |
entityCapacity maintains the current allocated size of the container arrays for a particular entity
Referenced by buildEntity(), buildFromAMapping(), buildFromARegularMapping(), capacity(), deleteConnectivity(), get(), initMapping(), operator=(), reserve(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), specifyEntity(), and specifyVertices().
|
protected |
lists of holes in the entity arrays
Referenced by operator=().
|
protected |
entity identification array that determines if an entity index refers to an internal, ghost or null entity
Referenced by addEntity(), buildEntity(), buildFromAMapping(), buildFromARegularMapping(), deleteConnectivity(), get(), hasBC(), initMapping(), isGhost(), operator=(), put(), reserve(), setAsGhost(), setBC(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), specifyEntity(), specifyVertices(), UnstructuredMappingAdjacencyIterator::UnstructuredMappingAdjacencyIterator(), and UnstructuredMappingIterator::UnstructuredMappingIterator().
|
protected |
entitySize maintains the current number of entities of a given type
Referenced by addEntity(), addVertex(), buildEntity(), buildFromAMapping(), buildFromARegularMapping(), deleteConnectivity(), get(), initMapping(), operator=(), put(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), size(), specifyEntity(), and specifyVertices().
Referenced by addTag(), deleteConnectivity(), deleteTag(), entity_tag_begin(), entity_tag_end(), maintainTagToEntityMap(), put(), and ~UnstructuredMapping().
|
static |
an array usefull for diagnostics involving EntityTypeEnum
Referenced by addEntity(), buildFromAMapping(), buildFromARegularMapping(), Ugen::buildHybridInterfaceMappings(), expandGhostBoundary(), get(), MappedGridData::getUnstructuredBCInfo(), MappedGridData::getUnstructuredPeriodicBC(), optimize(), optimize_one(), PlotIt::plotUM(), PlotIt::plotUnstructured(), put(), setAsGhost(), CompositeGrid::setHybridConnectivity(), tagPrefix(), and verifyUnstructuredConnectivity().
|
protected |
Referenced by addNodeToInterface(), buildConnectivityLists(), buildEntity(), buildFromACompositeGrid(), buildFromACompositeSurface(), buildFromARegularMapping(), checkConnectivity(), faceGlobalVertex(), findBoundaryCurves(), get(), getElementFaces(), getFaces(), operator=(), printConnectivity(), put(), replaceNode(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), update(), and validStitch().
|
protected |
Referenced by addNodeToInterface(), buildConnectivityLists(), buildFromACompositeSurface(), buildFromARegularMapping(), checkConnectivity(), computeConnection(), get(), getElementFaces(), getFaceElements(), getNumberOfNodesThisFace(), operator=(), printConnectivity(), project(), put(), replaceNode(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), splitElement(), update(), and validStitch().
|
protected |
|
protected |
Referenced by buildConnectivityLists(), faceGlobalVertex(), get(), getNumberOfNodesThisFace(), operator=(), and put().
|
protected |
Referenced by buildFromARegularMapping(), getGhostElements(), initMapping(), UnstructuredMapping(), update(), and ~UnstructuredMapping().
|
protected |
Referenced by addGhostElements(), buildFromAMapping(), buildFromARegularMapping(), UnstructuredMapping(), and update().
|
protected |
entity adjacencies, the array is read [From][To]
Referenced by buildConnectivity(), buildEntity(), connectivityExists(), deleteConnectivity(), getEntityAdjacencyIndices(), initMapping(), operator=(), specifyConnectivity(), specifyEntity(), and UnstructuredMappingAdjacencyIterator::UnstructuredMappingAdjacencyIterator().
|
protected |
Referenced by addTag(), deleteTag(), initMapping(), maintainsTagToEntityMap(), and maintainTagToEntityMap().
|
protected |
|
protected |
Referenced by buildFromACompositeGrid(), buildFromACompositeSurface(), FEZInitializeConnectivity(), getElementFaces(), getElementType(), getMaxNumberOfFacesPerElement(), getMaxNumberOfNodesPerElement(), getNumberOfFacesThisElement(), getNumberOfNodesThisElement(), getNumberOfNodesThisFace(), operator=(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), and update().
|
protected |
|
protected |
Referenced by addVertex(), buildFromACompositeGrid(), buildFromACompositeSurface(), buildFromAMapping(), buildFromARegularMapping(), buildSearchTree(), computeConnection(), expandGhostBoundary(), findBoundaryCurves(), findClosestEntity(), get(), getGrid(), getNodes(), getNormal(), insideOrOutside(), isDuplicateNode(), operator=(), project(), put(), reserve(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), specifyVertices(), splitElement(), update(), and validStitch().
|
protected |
|
protected |
Referenced by get(), operator=(), and put().
|
protected |
|
protected |
|
protected |
Referenced by addEntity(), addNodeToInterface(), buildConnectivityLists(), buildFromACompositeGrid(), buildFromACompositeSurface(), buildFromAMapping(), buildFromARegularMapping(), buildSearchTree(), checkConnectivity(), computeConnection(), createNodeElementList(), expandGhostBoundary(), FEZComputeElementTypes(), get(), getElementFaceNodes(), getElementFaces(), getNumberOfElements(), initMapping(), operator=(), printConnectivity(), printStatistics(), project(), put(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), setTags(), splitElement(), and update().
|
protected |
Referenced by FEZInitializeConnectivity(), get(), and put().
|
protected |
Referenced by addNodeToInterface(), buildConnectivityLists(), buildFromACompositeSurface(), buildFromARegularMapping(), buildUnstructuredGrid(), checkConnectivity(), findBoundaryCurves(), get(), getElementFaces(), getNumberOfFaces(), initMapping(), operator=(), printConnectivity(), printStatistics(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), and splitElement().
|
protected |
Referenced by FEZInitializeConnectivity(), getNumberOfFacesThisElement(), and operator=().
|
protected |
Referenced by get(), operator=(), and put().
|
protected |
Referenced by get(), operator=(), and put().
|
protected |
Referenced by addVertex(), buildConnectivityLists(), buildFromACompositeGrid(), buildFromACompositeSurface(), buildFromAMapping(), buildFromARegularMapping(), buildUnstructuredGrid(), checkConnectivity(), computeConnection(), createNodeElementList(), findBoundaryCurves(), get(), getNumberOfNodes(), initMapping(), insideOrOutside(), operator=(), printConnectivity(), printStatistics(), project(), put(), setNodesAndConnectivity(), setNodesElementsAndNeighbours(), splitElement(), and update().
|
protected |
|
protected |
Referenced by FEZInitializeConnectivity(), getElementFaceNodes(), getNumberOfNodesThisFace(), and operator=().
|
protected |
Referenced by FEZInitializeConnectivity(), getNumberOfNodesThisElement(), and operator=().
|
protected |
Referenced by operator=(), setPreferTriangles(), UnstructuredMapping(), and update().
|
protected |
|
protected |
Referenced by buildFromACompositeSurface(), operator=(), UnstructuredMapping(), and update().
|
mutableprotected |
Referenced by addTag(), deleteTag(), expandGhostBoundary(), maintainTagToEntityMap(), operator=(), tag_entity_begin(), and tag_entity_end().
|
protected |
|
protected |
Referenced by buildFromACompositeSurface(), initMapping(), insideOrOutside(), printStatistics(), and project().
|
protected |
upwardOffsets allows random access into the upward adjacencies for a given entity
Referenced by buildConnectivity(), buildEntity(), deleteConnectivity(), getEntityAdjacencyIndices(), initMapping(), operator=(), specifyConnectivity(), and UnstructuredMappingAdjacencyIterator::UnstructuredMappingAdjacencyIterator().