Public Member Functions | Protected Member Functions | List of all members
refinementFeatures Class Reference

Encapsulates queries for features. More...

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

Public Member Functions

 refinementFeatures (const objectRegistry &io, const PtrList< dictionary > &featDicts, const bool dryRun=false)
 
const labelListListlevels () 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
 
- Public Member Functions inherited from PtrList< extendedFeatureEdgeMesh >
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< Tclone (Args &&... args) const
 
Foam::PtrList< Tclone (Args &&... args) const
 
const Tset (const label i) const
 
autoPtr< Tset (const label i, T *ptr)
 
autoPtr< Tset (const label i, autoPtr< T > &ptr)
 
autoPtr< Tset (const label i, autoPtr< T > &&ptr)
 
autoPtr< Tset (const label i, std::unique_ptr< T > &&ptr)
 
autoPtr< Tset (const label i, const refPtr< T > &ptr)
 
autoPtr< Tset (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< Templace (const label i, Args &&... args)
 
Foam::autoPtr< Templace (const label i, Args &&... args)
 
autoPtr< Trelease (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
 
- Protected Member Functions inherited from PtrList< extendedFeatureEdgeMesh >
void readIstream (Istream &is, const INew &inew)
 
void free ()
 

Detailed Description

Encapsulates queries for features.

Source files

Definition at line 49 of file refinementFeatures.H.

Constructor & Destructor Documentation

◆ refinementFeatures()

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().

Here is the call graph for this function:

Member Function Documentation

◆ edgeTrees()

const PtrList<indexedOctree<treeDataEdge> >& edgeTrees ( ) const
inlineprotected

Definition at line 94 of file refinementFeatures.H.

◆ pointTrees()

const PtrList<indexedOctree<treeDataPoint> >& pointTrees ( ) const
inlineprotected

Definition at line 99 of file refinementFeatures.H.

◆ regionEdgeTrees()

const Foam::PtrList< Foam::indexedOctree< Foam::treeDataEdge > > & regionEdgeTrees ( ) const
protected

◆ levels()

const labelListList& levels ( ) const
inline

Definition at line 125 of file refinementFeatures.H.

◆ distances()

const List<scalarField>& distances ( ) const
inline

Definition at line 131 of file refinementFeatures.H.

◆ maxDistance()

Foam::scalar maxDistance ( ) const

Definition at line 874 of file refinementFeatures.C.

References forAll, and Foam::max().

Here is the call graph for this function:

◆ findNearestEdge()

void findNearestEdge ( const pointField samples,
const scalarField nearestDistSqr,
labelList nearFeature,
List< pointIndexHit > &  nearInfo,
vectorField nearNormal 
) const

◆ findNearestRegionEdge()

void findNearestRegionEdge ( const pointField samples,
const scalarField nearestDistSqr,
labelList nearFeature,
List< pointIndexHit > &  nearInfo,
vectorField nearNormal 
) const

◆ findNearestPoint()

void findNearestPoint ( const pointField samples,
const scalarField nearestDistSqr,
labelList nearFeature,
List< pointIndexHit > &  nearInfo 
) const

◆ findHigherLevel()

void findHigherLevel ( const pointField pt,
const labelList ptLevel,
labelList maxLevel 
) const

Definition at line 858 of file refinementFeatures.C.

References forAll.

◆ checkSizes()

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().

Here is the call graph for this function:

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