Encapsulates queries for features. More...
Public Member Functions | |
refinementFeatures (const objectRegistry &io, const PtrList< dictionary > &featDicts, const bool dryRun=false) | |
const labelListList & | levels () const |
const List< scalarField > & | distances () const |
scalar | maxDistance () const |
void | findNearestEdge (const pointField &samples, const scalarField &nearestDistSqr, labelList &nearFeature, List< pointIndexHit > &nearInfo, vectorField &nearNormal) const |
void | findNearestRegionEdge (const pointField &samples, const scalarField &nearestDistSqr, labelList &nearFeature, List< pointIndexHit > &nearInfo, vectorField &nearNormal) const |
void | findNearestPoint (const pointField &samples, const scalarField &nearestDistSqr, labelList &nearFeature, List< pointIndexHit > &nearInfo) const |
void | findHigherLevel (const pointField &pt, const labelList &ptLevel, labelList &maxLevel) const |
bool | checkSizes (const scalar maxRatio, const boundBox &meshBb, const bool report, Ostream &os) const |
![]() | |
constexpr | PtrList () noexcept |
PtrList (const label len) | |
PtrList (const PtrList< T > &list) | |
PtrList (PtrList< T > &&list) | |
PtrList (UList< T * > &list) | |
PtrList (const PtrList< T > &list, const CloneArg &cloneArgs) | |
PtrList (PtrList< T > &list, bool reuse) | |
PtrList (const SLPtrList< T > &list) | |
PtrList (Istream &is, const INew &inew) | |
PtrList (Istream &is) | |
PtrList (PtrList< T > &list, bool reuse) | |
PtrList (const SLPtrList< T > &list) | |
constexpr | PtrList () noexcept |
PtrList (const label len) | |
PtrList (const PtrList< T > &list) | |
PtrList (PtrList< T > &&list) | |
PtrList (UList< T * > &list) | |
PtrList (Istream &is) | |
~PtrList () | |
PtrList< T > | clone (Args &&... args) const |
Foam::PtrList< T > | clone (Args &&... args) const |
const T * | set (const label i) const |
autoPtr< T > | set (const label i, T *ptr) |
autoPtr< T > | set (const label i, autoPtr< T > &ptr) |
autoPtr< T > | set (const label i, autoPtr< T > &&ptr) |
autoPtr< T > | set (const label i, std::unique_ptr< T > &&ptr) |
autoPtr< T > | set (const label i, const refPtr< T > &ptr) |
autoPtr< T > | set (const label i, const tmp< T > &ptr) |
void | clear () |
void | resize (const label newLen) |
void | setSize (const label newLen) |
void | emplace_append (Args &&... args) |
void | append (T *ptr) |
void | append (autoPtr< T > &ptr) |
void | append (autoPtr< T > &&ptr) |
void | append (std::unique_ptr< T > &&ptr) |
void | append (const refPtr< T > &ptr) |
void | append (const tmp< T > &ptr) |
autoPtr< T > | emplace (const label i, Args &&... args) |
Foam::autoPtr< T > | emplace (const label i, Args &&... args) |
autoPtr< T > | release (const label i) |
void | transfer (PtrList< T > &list) |
void | operator= (const PtrList< T > &list) |
void | operator= (PtrList< T > &&list) |
Protected Member Functions | |
const PtrList< indexedOctree< treeDataEdge > > & | edgeTrees () const |
const PtrList< indexedOctree< treeDataPoint > > & | pointTrees () const |
const PtrList< indexedOctree< treeDataEdge > > & | regionEdgeTrees () const |
![]() | |
void | readIstream (Istream &is, const INew &inew) |
void | free () |
refinementFeatures | ( | const objectRegistry & | io, |
const PtrList< dictionary > & | featDicts, | ||
const bool | dryRun = false |
||
) |
Definition at line 466 of file refinementFeatures.C.
References forAll, and Foam::read().
|
inlineprotected |
Definition at line 94 of file refinementFeatures.H.
|
inlineprotected |
Definition at line 99 of file refinementFeatures.H.
|
protected |
Definition at line 410 of file refinementFeatures.C.
References Foam::constant::electromagnetic::e, edgeMesh::edges(), treeBoundBox::extend(), forAll, boundBox::max(), boundBox::min(), points, edgeMesh::points(), extendedEdgeMesh::regionEdges(), rndGen, PtrList::set(), and VectorSpace< Vector< scalar >, scalar, 3 >::uniform().
|
inline |
Definition at line 125 of file refinementFeatures.H.
|
inline |
Definition at line 131 of file refinementFeatures.H.
Foam::scalar maxDistance | ( | ) | const |
Definition at line 874 of file refinementFeatures.C.
References forAll, and Foam::max().
void findNearestEdge | ( | const pointField & | samples, |
const scalarField & | nearestDistSqr, | ||
labelList & | nearFeature, | ||
List< pointIndexHit > & | nearInfo, | ||
vectorField & | nearNormal | ||
) | const |
Definition at line 633 of file refinementFeatures.C.
References Foam::constant::electromagnetic::e, treeDataEdge::edges(), forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), PointIndexHit::index(), Foam::magSqr(), treeDataEdge::points(), samples(), List::setSize(), indexedOctree::shapes(), and Foam::Zero.
void findNearestRegionEdge | ( | const pointField & | samples, |
const scalarField & | nearestDistSqr, | ||
labelList & | nearFeature, | ||
List< pointIndexHit > & | nearInfo, | ||
vectorField & | nearNormal | ||
) | const |
Definition at line 692 of file refinementFeatures.C.
References Foam::constant::electromagnetic::e, treeDataEdge::edges(), forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), PointIndexHit::index(), Foam::magSqr(), treeDataEdge::points(), samples(), List::setSize(), indexedOctree::shapes(), and Foam::Zero.
void findNearestPoint | ( | const pointField & | samples, |
const scalarField & | nearestDistSqr, | ||
labelList & | nearFeature, | ||
List< pointIndexHit > & | nearInfo | ||
) | const |
Definition at line 807 of file refinementFeatures.C.
References forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), PointIndexHit::index(), Foam::magSqr(), samples(), List::setSize(), and indexedOctree::shapes().
void findHigherLevel | ( | const pointField & | pt, |
const labelList & | ptLevel, | ||
labelList & | maxLevel | ||
) | const |
Definition at line 858 of file refinementFeatures.C.
References forAll.
bool checkSizes | ( | const scalar | maxRatio, |
const boundBox & | meshBb, | ||
const bool | report, | ||
Ostream & | os | ||
) | const |
Definition at line 563 of file refinementFeatures.C.
References Foam::endl(), forAll, boundBox::mag(), meshBb(), IOobject::name(), Foam::nl, os(), edgeMesh::points(), and Foam::returnReduce().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.