Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
surfaceZonesInfo Class Reference
Collaboration diagram for surfaceZonesInfo:
Collaboration graph
[legend]

Public Types

enum  areaSelectionAlgo { INSIDE, OUTSIDE, INSIDEPOINT, NONE }
 Types of selection of area. More...
 
enum  faceZoneType { INTERNAL, BAFFLE, BOUNDARY }
 What to do with faceZone faces. More...
 

Public Member Functions

 surfaceZonesInfo (const searchableSurface &surface, const dictionary &surfacesDict)
 Construct from surfaces and dictionary. More...
 
 surfaceZonesInfo (const word &faceZoneNames, const word &cellZoneNames, const areaSelectionAlgo &zoneInside, const point &zoneInsidePoints, const faceZoneType &faceType)
 Construct from components. More...
 
 surfaceZonesInfo (const surfaceZonesInfo &)
 Copy constructor. More...
 
autoPtr< surfaceZonesInfoclone () const
 Return clone. More...
 
const wordfaceZoneName () const
 Per 'interface' surface : empty or name of faceZone to put. More...
 
const wordcellZoneName () const
 Per 'interface' surface : empty or name of cellZone to put. More...
 
const areaSelectionAlgozoneInside () const
 
const pointzoneInsidePoint () const
 Get specified inside locations for surfaces with a cellZone. More...
 
const faceZoneTypefaceType () const
 How to handle face of surfaces with a faceZone. More...
 

Static Public Member Functions

static labelList getUnnamedSurfaces (const PtrList< surfaceZonesInfo > &surfList)
 Get indices of unnamed surfaces (surfaces without faceZoneName) More...
 
static labelList getNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList)
 Get indices of named surfaces (surfaces with faceZoneName) More...
 
static labelList getClosedNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList, const searchableSurfaces &allGeometry, const labelList &surfaces)
 Get indices of surfaces with a cellZone that are closed and. More...
 
static labelList getUnclosedNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList, const searchableSurfaces &allGeometry, const labelList &surfaces)
 Get indices of surfaces with a cellZone that are unclosed. More...
 
static labelList getAllClosedNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList, const searchableSurfaces &allGeometry, const labelList &surfaces)
 Get indices of surfaces with a cellZone that are closed. More...
 
static labelList getInsidePointNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList)
 Get indices of surfaces with a cellZone that have 'insidePoint'. More...
 
static labelList addCellZonesToMesh (const PtrList< surfaceZonesInfo > &surfList, const labelList &namedSurfaces, polyMesh &mesh)
 
static labelList addFaceZonesToMesh (const PtrList< surfaceZonesInfo > &surfList, const labelList &namedSurfaces, polyMesh &mesh)
 

Static Public Attributes

static const NamedEnum< areaSelectionAlgo, 4 > areaSelectionAlgoNames
 
static const NamedEnum< faceZoneType, 3 > faceZoneTypeNames
 

Detailed Description

Source files

Definition at line 56 of file surfaceZonesInfo.H.

Member Enumeration Documentation

Types of selection of area.

Enumerator
INSIDE 
OUTSIDE 
INSIDEPOINT 
NONE 

Definition at line 61 of file surfaceZonesInfo.H.

What to do with faceZone faces.

Enumerator
INTERNAL 
BAFFLE 
BOUNDARY 

Definition at line 72 of file surfaceZonesInfo.H.

Constructor & Destructor Documentation

surfaceZonesInfo ( const searchableSurface surface,
const dictionary surfacesDict 
)

Construct from surfaces and dictionary.

Definition at line 74 of file surfaceZonesInfo.C.

References Foam::endl(), searchableSurface::hasVolumeType(), IOWarningInFunction, dictionary::lookup(), and dictionary::readIfPresent().

Referenced by surfaceZonesInfo::clone(), and NamedEnum< Enum, nEnum >::names().

Here is the call graph for this function:

Here is the caller graph for this function:

surfaceZonesInfo ( const word faceZoneNames,
const word cellZoneNames,
const areaSelectionAlgo zoneInside,
const point zoneInsidePoints,
const faceZoneType faceType 
)

Construct from components.

Definition at line 157 of file surfaceZonesInfo.C.

surfaceZonesInfo ( const surfaceZonesInfo surfZone)

Copy constructor.

Definition at line 173 of file surfaceZonesInfo.C.

References surfaceZonesInfo::getUnnamedSurfaces().

Here is the call graph for this function:

Member Function Documentation

autoPtr<surfaceZonesInfo> clone ( ) const
inline

Return clone.

Definition at line 136 of file surfaceZonesInfo.H.

References surfaceZonesInfo::cellZoneName(), surfaceZonesInfo::faceZoneName(), and surfaceZonesInfo::surfaceZonesInfo().

Here is the call graph for this function:

const word& faceZoneName ( ) const
inline

Per 'interface' surface : empty or name of faceZone to put.

faces into

Definition at line 148 of file surfaceZonesInfo.H.

Referenced by surfaceZonesInfo::clone(), and surfaceZonesInfo::getUnnamedSurfaces().

Here is the caller graph for this function:

const word& cellZoneName ( ) const
inline

Per 'interface' surface : empty or name of cellZone to put.

cells into

Definition at line 155 of file surfaceZonesInfo.H.

Referenced by surfaceZonesInfo::clone().

Here is the caller graph for this function:

const areaSelectionAlgo& zoneInside ( ) const
inline

Definition at line 160 of file surfaceZonesInfo.H.

const point& zoneInsidePoint ( ) const
inline

Get specified inside locations for surfaces with a cellZone.

Definition at line 166 of file surfaceZonesInfo.H.

const faceZoneType& faceType ( ) const
inline
Foam::labelList getUnnamedSurfaces ( const PtrList< surfaceZonesInfo > &  surfList)
static

Get indices of unnamed surfaces (surfaces without faceZoneName)

Definition at line 184 of file surfaceZonesInfo.C.

References surfaceZonesInfo::faceZoneName(), forAll, surfaceZonesInfo::getNamedSurfaces(), and UPtrList< T >::size().

Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), surfaceZonesInfo::faceType(), listPlusEqOp< T >::operator()(), snappySnapDriver::repatchToSurface(), and surfaceZonesInfo::surfaceZonesInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList getNamedSurfaces ( const PtrList< surfaceZonesInfo > &  surfList)
static
Foam::labelList getClosedNamedSurfaces ( const PtrList< surfaceZonesInfo > &  surfList,
const searchableSurfaces allGeometry,
const labelList surfaces 
)
static

Get indices of surfaces with a cellZone that are closed and.

have 'inside' or 'outside' selection.

Definition at line 230 of file surfaceZonesInfo.C.

References forAll, surfaceZonesInfo::getUnclosedNamedSurfaces(), surfaceZonesInfo::INSIDE, surfaceZonesInfo::OUTSIDE, PtrList< T >::set(), and UPtrList< T >::size().

Referenced by surfaceZonesInfo::faceType(), surfaceZonesInfo::getNamedSurfaces(), and meshRefinement::zonify().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList getUnclosedNamedSurfaces ( const PtrList< surfaceZonesInfo > &  surfList,
const searchableSurfaces allGeometry,
const labelList surfaces 
)
static

Get indices of surfaces with a cellZone that are unclosed.

Definition at line 262 of file surfaceZonesInfo.C.

References forAll, surfaceZonesInfo::getAllClosedNamedSurfaces(), PtrList< T >::set(), and UPtrList< T >::size().

Referenced by surfaceZonesInfo::faceType(), and surfaceZonesInfo::getClosedNamedSurfaces().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList getAllClosedNamedSurfaces ( const PtrList< surfaceZonesInfo > &  surfList,
const searchableSurfaces allGeometry,
const labelList surfaces 
)
static

Get indices of surfaces with a cellZone that are closed.

Definition at line 289 of file surfaceZonesInfo.C.

References forAll, surfaceZonesInfo::getInsidePointNamedSurfaces(), PtrList< T >::set(), and UPtrList< T >::size().

Referenced by surfaceZonesInfo::faceType(), and surfaceZonesInfo::getUnclosedNamedSurfaces().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList getInsidePointNamedSurfaces ( const PtrList< surfaceZonesInfo > &  surfList)
static

Get indices of surfaces with a cellZone that have 'insidePoint'.

section.

Definition at line 317 of file surfaceZonesInfo.C.

References surfaceZonesInfo::addCellZonesToMesh(), forAll, surfaceZonesInfo::INSIDEPOINT, PtrList< T >::set(), and UPtrList< T >::size().

Referenced by surfaceZonesInfo::faceType(), surfaceZonesInfo::getAllClosedNamedSurfaces(), and meshRefinement::zonify().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList addCellZonesToMesh ( const PtrList< surfaceZonesInfo > &  surfList,
const labelList namedSurfaces,
polyMesh mesh 
)
static
Foam::labelList addFaceZonesToMesh ( const PtrList< surfaceZonesInfo > &  surfList,
const labelList namedSurfaces,
polyMesh mesh 
)
static

Member Data Documentation

const Foam::NamedEnum< Foam::surfaceZonesInfo::areaSelectionAlgo, 4 > areaSelectionAlgoNames
static

Definition at line 69 of file surfaceZonesInfo.H.

Referenced by NamedEnum< Enum, nEnum >::names().

const Foam::NamedEnum< Foam::surfaceZonesInfo::faceZoneType, 3 > faceZoneTypeNames
static

Definition at line 79 of file surfaceZonesInfo.H.

Referenced by NamedEnum< Enum, nEnum >::names().


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