Overture
Version 25
|
#include <Ugen.h>
Public Types | |
enum | GeneratorType { TriWrap, AdvFront } |
Public Member Functions | |
Ugen () | |
Ugen (GenericGraphicsInterface &ps_) | |
~Ugen () | |
void | updateHybrid (CompositeGrid &cg, MappingInformation &mapInfo) |
void | updateHybrid (CompositeGrid &cg) |
void | buildHybridInterfaceMappings (MappingInformation &mapInfo, CompositeGrid &cg, Ugen::GeneratorType genWith, intArray *&gridIndex2UnstructuredVertex, intArray &unstructuredVertex2GridIndex, intArray *&gridVertex2UnstructuredVertex, intArray &initialFaceZones) |
UnstructuredMapping * | getUnstructuredMapping () const |
Protected Member Functions | |
int | initialize () |
void | plot (const aString &title, CompositeGrid &cg, bool plotComponentGrids, bool plotTriangle, bool plotAdvFront) |
void | preprocessCompositeGridMasks (CompositeGrid &cg) |
void | initializeGeneration (CompositeGrid &cg, intArray *vertexIndex, intArray &numberOfVertices, intArray *vertexIDMap, intArray &vertexGridIndexMap, intArray *gridIndexVertexMap, intArray &initialFaces, intArray &initialFaceZones, realArray &xyz_initial) |
void | removeHangingFaces (CompositeGrid &cg) |
void | buildHybridVertexMappings (CompositeGrid &cg, intArray *vertexIndex, intArray &numberOfVertices, intArray *vertexIDMap, intArray &vertexGridIndexMap, intArray *gridIndexVertexMap, realArray &xyz_initial) |
void | generateInitialFaceList (CompositeGrid &cg, intArray *vertexIndex, intArray &numberOfVertices, intArray *vertexIDMap, intArray &vertexGridIndexMap, intArray *gridIndexVertexMap, intArray &initialFaces, intArray &initialFaceZones) |
void | computeZoneMasks (CompositeGrid &cg, intArray *&zoneMasks, intArray &numberOfMaskedZones) |
void | generateSpacingControlMesh (CompositeGrid &cg, const intArray &initialFaceZones, const realArray &xyz_initial) |
void | generateSpacingControlMeshForSurface (const intArray &initialFaces, const realArray &initial_vertices) |
void | enlargeHole (CompositeGrid &cg, intArray &vertexGridIndexMap, int egrd=-1) |
void | generateHoleLists (CompositeGrid &cg, intArray *vertexIndex, intArray &numberOfVertices) |
void | sealHoles (CompositeGrid &cg, intArray *gridIndexVertexMap, intArray &initialFaces, realArray &xyz_initial, intArray &initialSurfaceMapping) |
void | generateWithAdvancingFront () |
void | generateWithTriangle () |
void | sealHoles3D (CompositeGrid &cg, intArray *gridIndexVertexMap, intArray &boundaryHoleVertices, intArray &initialFaces, realArray &xyz_initial) |
Protected Attributes | |
AdvancingFront | advancingFront |
TriangleWrapper | triangleWrapper |
UnstructuredMapping | delaunayMesh |
GenericGraphicsInterface * | ps |
GraphicsParameters | psp |
enum Ugen::GeneratorType |
Ugen::Ugen | ( | ) |
References initialize(), NULL, and ps.
Ugen::Ugen | ( | GenericGraphicsInterface & | ps_ | ) |
References initialize(), and ps.
Ugen::~Ugen | ( | ) |
void Ugen::buildHybridInterfaceMappings | ( | MappingInformation & | mapInfo, |
CompositeGrid & | cg, | ||
Ugen::GeneratorType | genWith, | ||
intArray *& | gridIndex2UnstructuredVertex, | ||
intArray & | unstructuredVertex2GridIndex, | ||
intArray *& | gridVertex2UnstructuredVertex, | ||
intArray & | initialFaceZones | ||
) |
References CompositeGrid::add(), ListOfMappingRC::addElement(), advancingFront, AdvFront, Mapping::cartesianSpace, UnstructuredMapping::EntityTypeStrings, TriangleWrapper::generateElementList(), AdvancingFront::generateElementList(), AdvancingFront::getDomainDimension(), AdvancingFront::getFaces(), TriangleWrapper::getInitialFaces2TriangleMapping(), AdvancingFront::getNumberOfVertices(), TriangleWrapper::getPoints(), AdvancingFront::getVertices(), MappingInformation::mappingList, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), Mapping::parameterSpace, R, UnstructuredMapping::Region, CompositeGrid::setHybridConnectivity(), UnstructuredMapping::setNodesAndConnectivity(), UnstructuredMapping::size(), MappedGrid::THEmask, triangleWrapper, TriWrap, and CompositeGrid::update().
Referenced by updateHybrid().
|
protected |
References generateHoleLists(), MappingRC::getDomainDimension(), getIndex(), MappingRC::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), MappedGrid::mapping(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), Mapping::polarSingularity, MappedGrid::THEvertex, and CompositeGrid::update().
Referenced by initializeGeneration().
|
protected |
References debug_Ugen, getIndex(), MappedGrid::gridIndexRange(), i2, MappedGrid::mask(), NULL, GenericGridCollection::numberOfComponentGrids(), and GridCollection::numberOfDimensions().
Referenced by generateInitialFaceList().
|
protected |
References MappedGrid::domainDimension(), getIndex(), MappingRC::getMapping(), Mapping::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), i2, MappedGrid::isPeriodic(), MappedGrid::mapping(), MappedGrid::mask(), notPeriodic, GridCollection::numberOfDimensions(), and Mapping::polarSingularity.
Referenced by updateHybrid().
|
protected |
|
protected |
References computeZoneMasks(), Mapping::getClassName(), getIndex(), MappingRC::getMapping(), Mapping::getSignForJacobian(), MappedGrid::gridIndexRange(), i2, MappedGrid::isPeriodic(), MappedGrid::mapping(), NULL, GenericGridCollection::numberOfComponentGrids(), and GridCollection::numberOfDimensions().
Referenced by initializeGeneration().
|
protected |
References advancingFront, center, cf, ReferenceCounting::decrementReferenceCount(), getIndex(), getSignForJacobian(), gridIndexRange, i2, ReferenceCounting::incrementReferenceCount(), max(), min(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), doubleGridCollectionFunction::periodicUpdate(), pow(), REAL_MAX, CompositeGrid::reference(), Mapping::reinitialize(), AdvancingFront::setControlFunction(), Mapping::setGridDimensions(), doubleCompositeGridFunction::setOperators(), MappedGrid::THEcenter, MappedGrid::THEvertex, MappedGrid::THEvertexDerivative, CompositeGrid::update(), MappedGrid::update(), and CompositeGrid::updateReferences().
Referenced by initializeGeneration().
|
protected |
References advancingFront, ReferenceCounting::decrementReferenceCount(), getIndex(), gridIndexRange, ReferenceCounting::incrementReferenceCount(), max(), min(), REAL_MAX, CompositeGrid::reference(), Mapping::reinitialize(), AdvancingFront::setControlFunction(), Mapping::setGridDimensions(), MappedGrid::THEcenter, MappedGrid::THEvertex, MappedGrid::update(), and CompositeGrid::updateReferences().
Referenced by initializeGeneration().
|
protected |
References AdvancingFront::advanceFront(), advancingFront, AbstractException::debug_print(), GeometricADTError::debug_print(), AdvancingFrontError::debug_print(), AdvancingFront::generateElementList(), AdvancingFront::getControlFunction(), getCPU(), AdvancingFront::getDomainDimension(), UnstructuredMapping::getNodes(), AdvancingFront::getNumberOfElements(), AdvancingFront::getNumberOfFaces(), AdvancingFront::getNumberOfVertices(), AdvancingFront::getRangeDimension(), AdvancingFront::getVertices(), AdvancingFront::isFrontEmpty(), optimize(), MeshQualityMetrics::outputHistogram(), ps, R, UnstructuredMapping::setNodesAndConnectivity(), and MeshQualityMetrics::setReferenceTransformation().
Referenced by updateHybrid().
|
protected |
|
inline |
|
protected |
Referenced by Ugen().
|
protected |
References advancingFront, buildHybridVertexMappings(), center, AbstractException::debug_print(), AdvancingFrontError::debug_print(), debug_Ugen, dimension, generateInitialFaceList(), generateSpacingControlMesh(), generateSpacingControlMeshForSurface(), AdvancingFront::getControlFunction(), TriangleWrapperParameters::getFreezeSegments(), TriangleWrapper::getParameters(), TriangleWrapperParameters::getVoronoi(), AdvancingFront::initialize(), TriangleWrapper::initialize(), max(), GridCollection::numberOfDimensions(), doubleGridCollectionFunction::numberOfGrids(), GenericGridCollection::numberOfGrids(), ps, removeHangingFaces(), sealHoles(), TriangleWrapper::setHoles(), TriangleWrapperParameters::toggleFreezeSegments(), TriangleWrapperParameters::toggleVoronoi(), and triangleWrapper.
Referenced by updateHybrid().
|
protected |
References advancingFront, delaunayMesh, GenericGraphicsInterface::erase(), GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, PlotIt::plot(), ps, psp, GraphicsParameters::set(), and TRUE.
Referenced by updateHybrid().
|
protected |
References c, mask, MappedGrid::mask(), and GenericGridCollection::numberOfComponentGrids().
Referenced by updateHybrid().
|
protected |
References getIndex(), MappedGrid::gridIndexRange(), i2, MappedGrid::isPeriodic(), MappedGrid::mask(), and GenericGridCollection::numberOfComponentGrids().
Referenced by initializeGeneration().
|
protected |
References advancingFront, axis1, axis2, FALSE, AdvancingFront::getParameters(), GI_PLOT_THE_OBJECT_AND_EXIT, IntersectionMapping::intersectCurves(), Mapping::intersects(), MappedGrid::mixedPhysicalInterpolationBoundary, NULL, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::physicalBoundary, GenericGraphicsInterface::plotPoints(), ps, psp, sealHoles3D(), GraphicsParameters::set(), TRUE, and AdvancingFrontParameters::usingControlFunction().
Referenced by initializeGeneration().
|
protected |
References CompositeGrid::add(), MappedGrid::boundaryFlag(), ReferenceCounting::decrementReferenceCount(), MappedGrid::domainDimension(), getBoundaryIndex(), UnstructuredMapping::getElements(), Overture::getGraphicsInterface(), CompositeGrid::getHybridConnectivity(), UnstructuredMapping::getNodes(), UnstructuredMapping::getNumberOfElements(), UnstructuredMapping::getNumberOfNodes(), Mapping::getSignForJacobian(), CompositeGridHybridConnectivity::getUnstructuredGridIndex(), CompositeGridHybridConnectivity::getUVertex2GridIndex(), MappingInformation::graphXInterface, MappedGrid::gridIndexRange(), ReferenceCounting::incrementReferenceCount(), CompositeGridData::initialize(), MappedGrid::mapping(), MappingRC::mapPointer, MappedGrid::mask(), MappedGrid::mixedPhysicalInterpolationBoundary, GridCollection::numberOfDimensions(), GenericGridCollection::numberOfGrids(), MappedGrid::physicalBoundary, ArraySimple< T >::redim(), MappedGrid::sharedBoundaryFlag(), MappedGrid::THEboundingBox, MappingParameters::THEboundingBoxExtensionFactor, MappedGridData::THEmask, MappingParameters::THEstencilWalkBoundingBoxExtensionFactor, MappedGrid::THEvertex, CompositeGrid::update(), and updateHybrid().
Referenced by sealHoles().
void Ugen::updateHybrid | ( | CompositeGrid & | cg, |
MappingInformation & | mapInfo | ||
) |
References advancingFront, AdvFront, GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, buildHybridInterfaceMappings(), GenericGraphicsInterface::createWindow(), AbstractException::debug_print(), debug_Ugen, delaunayMesh, AdvancingFront::destroyFront(), enlargeHole(), GenericGraphicsInterface::erase(), AdvancingFront::expandFront(), FALSE, generateWithAdvancingFront(), generateWithTriangle(), GenericGraphicsInterface::getAnswer(), GUIState::getDialogSibling(), AdvancingFrontParameters::getEdgeGrowthFactor(), AdvancingFront::getFaces(), TriangleWrapperParameters::getMaximumArea(), AdvancingFrontParameters::getMaxNeighborAngle(), TriangleWrapperParameters::getMinimumAngle(), AdvancingFrontParameters::getNumberOfAdvances(), AdvancingFront::getNumberOfElements(), AdvancingFront::getNumberOfFaces(), DialogData::getOptionMenu(), AdvancingFront::getParameters(), TriangleWrapper::getParameters(), GI_PLOT_THE_OBJECT_AND_EXIT, GenericGraphicsInterface::graphicsIsOn(), MappingInformation::graphXInterface, DialogData::hideSibling(), AdvancingFrontParameters::highlightFace(), initializeGeneration(), GenericGraphicsInterface::inputString(), AdvancingFrontParameters::meshEdges, AdvancingFrontParameters::meshFaces, NULL, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), GenericGridCollection::numberOfGrids(), numberOfVertices, GenericGraphicsInterface::outputString(), PlotIt::plot(), plot(), GenericGraphicsInterface::popGUI(), preprocessCompositeGridMasks(), ps, psp, GenericGraphicsInterface::pushGUI(), GraphicsParameters::set(), OptionMenu::setCurrentChoice(), AdvancingFrontParameters::setEdgeGrowthFactor(), DialogData::setExitCommand(), TriangleWrapperParameters::setMaximumArea(), AdvancingFrontParameters::setMaxNeighborAngle(), TriangleWrapperParameters::setMinimumAngle(), AdvancingFrontParameters::setNumberOfAdvances(), AdvancingFrontParameters::setQualityTolerance(), DialogData::setSensitive(), DialogData::setTextLabel(), DialogData::setWindowTitle(), DialogData::showSibling(), sPrintF(), sScanF(), AdvancingFrontParameters::toggle(), triangleWrapper, TriWrap, TRUE, and GenericGraphicsInterface::unAppendTheDefaultPrompt().
Referenced by ogen(), sealHoles3D(), SurfaceStitcher::stitchSurfaceCompositeGrid(), and updateHybrid().
void Ugen::updateHybrid | ( | CompositeGrid & | cg | ) |
References ListOfMappingRC::addElement(), advancingFront, AdvFront, buildHybridInterfaceMappings(), debug_Ugen, generateWithAdvancingFront(), Overture::getGraphicsInterface(), AdvancingFront::getNumberOfElements(), AdvancingFront::getParameters(), TriangleWrapper::getParameters(), MappingInformation::graphXInterface, initializeGeneration(), MappingInformation::mappingList, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), GenericGridCollection::numberOfGrids(), numberOfVertices, preprocessCompositeGridMasks(), triangleWrapper, and updateHybrid().
|
mutableprotected |
|
protected |
Referenced by generateWithTriangle(), plot(), and updateHybrid().
|
protected |
Referenced by generateWithAdvancingFront(), initializeGeneration(), plot(), sealHoles(), Ugen(), and updateHybrid().
|
protected |
Referenced by plot(), sealHoles(), and updateHybrid().
|
protected |
Referenced by buildHybridInterfaceMappings(), generateWithTriangle(), initializeGeneration(), and updateHybrid().