Container for data on surfaces used for surface-driven refinement. Contains all the data about the level of refinement needed per surface. More...
Public Member Functions | |
refinementSurfaces (const searchableSurfaces &allGeometry, const dictionary &, const label gapLevelIncrement, const bool dryRun) | |
refinementSurfaces (const searchableSurfaces &allGeometry, const labelList &surfaces, const wordList &names, const PtrList< surfaceZonesInfo > &surfZones, const labelList ®ionOffset, const labelList &minLevel, const labelList &maxLevel, const labelList &gapLevel, const scalarField &perpendicularAngle, PtrList< dictionary > &patchInfo, const bool dryRun) | |
const searchableSurfaces & | geometry () const |
const labelList & | surfaces () const |
const wordList & | names () const |
const PtrList< surfaceZonesInfo > & | surfZones () const |
const labelList & | regionOffset () const |
const labelList & | minLevel () const |
const labelList & | maxLevel () const |
const labelList & | gapLevel () const |
const labelList & | blockLevel () const |
const List< FixedList< label, 3 > > & | extendedGapLevel () const |
const List< volumeType > & | extendedGapMode () const |
const boolList & | gapSelf () const |
const scalarField & | perpendicularAngle () const |
const PtrList< dictionary > & | patchInfo () const |
label | globalRegion (const label surfI, const label regionI) const |
labelPair | whichSurface (const label globalRegionI) const |
label | minLevel (const label surfI, const label regionI) const |
label | maxLevel (const label surfI, const label regionI) const |
label | nRegions () const |
labelList | maxGapLevel () const |
void | setMinLevelFields (const shellSurfaces &shells) |
void | findHigherIntersection (const shellSurfaces &shells, const pointField &start, const pointField &end, const labelList ¤tLevel, labelList &surfaces, labelList &surfaceLevel) const |
void | findAllIntersections (const pointField &start, const pointField &end, const labelList ¤tLevel, const labelList &globalMinLevel, const labelList &globalMaxLevel, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const |
void | findAllIntersections (const pointField &start, const pointField &end, const labelList ¤tLevel, const labelList &globalMinLevel, const labelList &globalMaxLevel, List< pointList > &surfaceLocation, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const |
void | findNearestIntersection (const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList ®ion1, labelList &surface2, List< pointIndexHit > &hit2, labelList ®ion2) const |
void | findNearestIntersection (const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList ®ion1, vectorField &normal1, labelList &surface2, List< pointIndexHit > &hit2, labelList ®ion2, vectorField &normal2) const |
void | findNearestIntersection (const pointField &start, const pointField &end, labelList &surfaces, vectorField &normal) const |
void | findNearestIntersection (const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &, vectorField &normal) const |
void | findAnyIntersection (const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const |
void | findNearest (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const |
void | findNearestRegion (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, labelList &hitRegion) const |
void | findNearestRegion (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, List< pointIndexHit > &hitInfo, labelList &hitRegion, vectorField &hitNormal) const |
void | findInside (const labelList &surfacesToTest, const pointField &pt, labelList &insideSurfaces) const |
void | findNearest (const labelList &surfacesToTest, const labelListList ®ions, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, List< pointIndexHit > &hitInfo) const |
void | findNearestRegion (const labelList &surfacesToTest, const labelListList ®ions, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, List< pointIndexHit > &hitInfo, labelList &hitRegion, vectorField &hitNormal) const |
Container for data on surfaces used for surface-driven refinement. Contains all the data about the level of refinement needed per surface.
Definition at line 59 of file refinementSurfaces.H.
refinementSurfaces | ( | const searchableSurfaces & | allGeometry, |
const dictionary & | surfacesDict, | ||
const label | gapLevelIncrement, | ||
const bool | dryRun | ||
) |
Definition at line 150 of file refinementSurfaces.C.
References dictionary::clone(), dict, entry::dict(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::findEntry(), forAll, forAllConstIters(), dictionary::found(), dictionary::get(), dictionary::getOrDefault(), IOWarningInFunction, entry::keyword(), Foam::labelMax, volumeType::MIXED, dictionary::readIfPresent(), keyType::REGEX, regionNames, PtrList::set(), dictionary::set(), FixedList::setSize(), volumeType::str(), dictionary::subDict(), dictionary::toc(), volumeType::UNKNOWN, and Foam::Zero.
refinementSurfaces | ( | const searchableSurfaces & | allGeometry, |
const labelList & | surfaces, | ||
const wordList & | names, | ||
const PtrList< surfaceZonesInfo > & | surfZones, | ||
const labelList & | regionOffset, | ||
const labelList & | minLevel, | ||
const labelList & | maxLevel, | ||
const labelList & | gapLevel, | ||
const scalarField & | perpendicularAngle, | ||
PtrList< dictionary > & | patchInfo, | ||
const bool | dryRun | ||
) |
Definition at line 574 of file refinementSurfaces.C.
References forAll, and PtrList::set().
|
inline |
Definition at line 174 of file refinementSurfaces.H.
Referenced by snappySnapDriver::calcNearestSurface().
|
inline |
Definition at line 179 of file refinementSurfaces.H.
Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), and snappySnapDriver::repatchToSurface().
|
inline |
Definition at line 185 of file refinementSurfaces.H.
|
inline |
Definition at line 190 of file refinementSurfaces.H.
Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), and snappySnapDriver::repatchToSurface().
|
inline |
Definition at line 196 of file refinementSurfaces.H.
|
inline |
Definition at line 202 of file refinementSurfaces.H.
|
inline |
Definition at line 208 of file refinementSurfaces.H.
|
inline |
Definition at line 214 of file refinementSurfaces.H.
|
inline |
Definition at line 221 of file refinementSurfaces.H.
Definition at line 232 of file refinementSurfaces.H.
|
inline |
Definition at line 238 of file refinementSurfaces.H.
|
inline |
Definition at line 245 of file refinementSurfaces.H.
|
inline |
Definition at line 251 of file refinementSurfaces.H.
|
inline |
Definition at line 257 of file refinementSurfaces.H.
|
inline |
Definition at line 266 of file refinementSurfaces.H.
Referenced by snappySnapDriver::calcNearestSurface(), refinementSurfaces::maxLevel(), refinementSurfaces::minLevel(), and snappySnapDriver::repatchToSurface().
Foam::labelPair whichSurface | ( | const label | globalRegionI | ) | const |
Definition at line 614 of file refinementSurfaces.C.
|
inline |
Definition at line 275 of file refinementSurfaces.H.
References refinementSurfaces::globalRegion().
|
inline |
Definition at line 281 of file refinementSurfaces.H.
References refinementSurfaces::globalRegion().
|
inline |
Definition at line 286 of file refinementSurfaces.H.
Foam::labelList maxGapLevel | ( | ) | const |
Definition at line 679 of file refinementSurfaces.C.
References forAll, Foam::max(), regionNames, and Foam::Zero.
void setMinLevelFields | ( | const shellSurfaces & | shells | ) |
Definition at line 700 of file refinementSurfaces.C.
References searchableSurface::boundingSpheres(), Foam::endl(), searchableSurface::findNearest(), forAll, searchableSurface::getRegion(), searchableSurface::globalSize(), Foam::Info, Foam::labelMax, Foam::max(), Foam::min(), IOobject::name(), points, PrimitivePatch< FaceList, PointField >::points(), Foam::returnReduce(), setField(), and Foam::Zero.
void findHigherIntersection | ( | const shellSurfaces & | shells, |
const pointField & | start, | ||
const pointField & | end, | ||
const labelList & | currentLevel, | ||
labelList & | surfaces, | ||
labelList & | surfaceLevel | ||
) | const |
Definition at line 833 of file refinementSurfaces.C.
References stdFoam::end(), searchableSurface::findLineAny(), forAll, searchableSurface::getRegion(), Foam::identity(), p0, Foam::returnReduce(), and List::setSize().
void findAllIntersections | ( | const pointField & | start, |
const pointField & | end, | ||
const labelList & | currentLevel, | ||
const labelList & | globalMinLevel, | ||
const labelList & | globalMaxLevel, | ||
List< vectorList > & | surfaceNormal, | ||
labelListList & | surfaceLevel | ||
) | const |
Definition at line 995 of file refinementSurfaces.C.
References List::clear(), stdFoam::end(), searchableSurface::findLineAll(), forAll, searchableSurface::getNormal(), searchableSurface::getRegion(), n, and List::setSize().
void findAllIntersections | ( | const pointField & | start, |
const pointField & | end, | ||
const labelList & | currentLevel, | ||
const labelList & | globalMinLevel, | ||
const labelList & | globalMaxLevel, | ||
List< pointList > & | surfaceLocation, | ||
List< vectorList > & | surfaceNormal, | ||
labelListList & | surfaceLevel | ||
) | const |
Definition at line 1088 of file refinementSurfaces.C.
References stdFoam::end(), searchableSurface::findLineAll(), forAll, searchableSurface::getNormal(), searchableSurface::getRegion(), n, and List::setSize().
void findNearestIntersection | ( | const labelList & | surfacesToTest, |
const pointField & | start, | ||
const pointField & | end, | ||
labelList & | surface1, | ||
List< pointIndexHit > & | hit1, | ||
labelList & | region1, | ||
labelList & | surface2, | ||
List< pointIndexHit > & | hit2, | ||
labelList & | region2 | ||
) | const |
Definition at line 1185 of file refinementSurfaces.C.
References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getRegion(), and List::setSize().
Referenced by snappySnapDriver::detectNearSurfaces().
void findNearestIntersection | ( | const labelList & | surfacesToTest, |
const pointField & | start, | ||
const pointField & | end, | ||
labelList & | surface1, | ||
List< pointIndexHit > & | hit1, | ||
labelList & | region1, | ||
vectorField & | normal1, | ||
labelList & | surface2, | ||
List< pointIndexHit > & | hit2, | ||
labelList & | region2, | ||
vectorField & | normal2 | ||
) | const |
Definition at line 1315 of file refinementSurfaces.C.
References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getNormal(), searchableSurface::getRegion(), List::setSize(), and Foam::Zero.
void findNearestIntersection | ( | const pointField & | start, |
const pointField & | end, | ||
labelList & | surfaces, | ||
vectorField & | normal | ||
) | const |
Definition at line 1438 of file refinementSurfaces.C.
References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getNormal(), List::setSize(), and Foam::Zero.
void findNearestIntersection | ( | const pointField & | start, |
const pointField & | end, | ||
labelList & | surfaces, | ||
List< pointIndexHit > & | hitInfo1, | ||
vectorField & | normal | ||
) | const |
Definition at line 1481 of file refinementSurfaces.C.
References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getNormal(), List::setSize(), and Foam::Zero.
void findAnyIntersection | ( | const pointField & | start, |
const pointField & | end, | ||
labelList & | surfaces, | ||
List< pointIndexHit > & | hitInfo | ||
) | const |
Definition at line 1531 of file refinementSurfaces.C.
References stdFoam::end(), and searchableSurfacesQueries::findAnyIntersection().
void findNearest | ( | const labelList & | surfacesToTest, |
const pointField & | samples, | ||
const scalarField & | nearestDistSqr, | ||
labelList & | surfaces, | ||
List< pointIndexHit > & | hitInfo | ||
) | const |
Definition at line 1552 of file refinementSurfaces.C.
References searchableSurfacesQueries::findNearest(), forAll, and samples().
Referenced by snappySnapDriver::calcNearestSurface().
void findNearestRegion | ( | const labelList & | surfacesToTest, |
const pointField & | samples, | ||
const scalarField & | nearestDistSqr, | ||
labelList & | hitSurface, | ||
labelList & | hitRegion | ||
) | const |
Definition at line 1585 of file refinementSurfaces.C.
References Foam::findIndices(), searchableSurfacesQueries::findNearest(), forAll, samples(), and List::setSize().
Referenced by snappySnapDriver::calcNearestSurface(), and snappySnapDriver::repatchToSurface().
void findNearestRegion | ( | const labelList & | surfacesToTest, |
const pointField & | samples, | ||
const scalarField & | nearestDistSqr, | ||
labelList & | hitSurface, | ||
List< pointIndexHit > & | hitInfo, | ||
labelList & | hitRegion, | ||
vectorField & | hitNormal | ||
) | const |
Definition at line 1648 of file refinementSurfaces.C.
References Foam::findIndices(), searchableSurfacesQueries::findNearest(), forAll, samples(), List::setSize(), and Foam::Zero.
void findInside | ( | const labelList & | surfacesToTest, |
const pointField & | pt, | ||
labelList & | insideSurfaces | ||
) | const |
Definition at line 1769 of file refinementSurfaces.C.
References surfaceZonesInfo::areaSelectionAlgoNames, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, searchableSurface::getVolumeType(), searchableSurface::hasVolumeType(), surfaceZonesInfo::INSIDE, volumeType::INSIDE, IOobject::name(), surfaceZonesInfo::OUTSIDE, volumeType::OUTSIDE, and List::setSize().
void findNearest | ( | const labelList & | surfacesToTest, |
const labelListList & | regions, | ||
const pointField & | samples, | ||
const scalarField & | nearestDistSqr, | ||
labelList & | hitSurface, | ||
List< pointIndexHit > & | hitInfo | ||
) | const |
Definition at line 1832 of file refinementSurfaces.C.
References searchableSurfacesQueries::findNearest(), forAll, and samples().
void findNearestRegion | ( | const labelList & | surfacesToTest, |
const labelListList & | regions, | ||
const pointField & | samples, | ||
const scalarField & | nearestDistSqr, | ||
labelList & | hitSurface, | ||
List< pointIndexHit > & | hitInfo, | ||
labelList & | hitRegion, | ||
vectorField & | hitNormal | ||
) | const |
Definition at line 1869 of file refinementSurfaces.C.
References Foam::findIndices(), searchableSurfacesQueries::findNearest(), forAll, samples(), List::setSize(), and Foam::Zero.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.