surfaceZonesInfo Class Reference
Collaboration diagram for surfaceZonesInfo:
[legend]

Public Types

enum  areaSelectionAlgo { INSIDE, OUTSIDE, INSIDEPOINT, NONE }
 Types of selection of area. More...
 
enum  faceZoneNaming { NOZONE, SINGLE, REGION }
 How to generate faceZone name. More...
 
enum  faceZoneType { INTERNAL, BAFFLE, BOUNDARY }
 What to do with faceZone faces. More...
 

Public Member Functions

 surfaceZonesInfo (const searchableSurface &surface, const dictionary &surfacesDict, const wordList &regionNames)
 Construct from surfaces and dictionary and fully resolved. More...
 
 surfaceZonesInfo (const wordList &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 wordListfaceZoneNames () const
 Per 'interface' surface : empty or names of faceZones 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 getStandaloneNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList)
 Get indices of named surfaces without a cellZone. 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 label addCellZone (const word &name, const labelList &addressing, polyMesh &mesh)
 
static labelList addCellZonesToMesh (const PtrList< surfaceZonesInfo > &surfList, const labelList &namedSurfaces, polyMesh &mesh)
 
static label addFaceZone (const word &name, const labelList &addressing, const boolList &flipMap, polyMesh &mesh)
 
static labelListList addFaceZonesToMesh (const PtrList< surfaceZonesInfo > &surfList, const labelList &namedSurfaces, polyMesh &mesh)
 

Static Public Attributes

static const Enum< areaSelectionAlgoareaSelectionAlgoNames
 
static const Enum< faceZoneNamingfaceZoneNamingNames
 
static const Enum< faceZoneTypefaceZoneTypeNames
 

Detailed Description

Source files

Definition at line 60 of file surfaceZonesInfo.H.

Member Enumeration Documentation

◆ areaSelectionAlgo

Types of selection of area.

Enumerator
INSIDE 
OUTSIDE 
INSIDEPOINT 
NONE 

Definition at line 65 of file surfaceZonesInfo.H.

◆ faceZoneNaming

How to generate faceZone name.

Enumerator
NOZONE 
SINGLE 
REGION 

Definition at line 76 of file surfaceZonesInfo.H.

◆ faceZoneType

What to do with faceZone faces.

Enumerator
INTERNAL 
BAFFLE 
BOUNDARY 

Definition at line 86 of file surfaceZonesInfo.H.

Constructor & Destructor Documentation

◆ surfaceZonesInfo() [1/3]

surfaceZonesInfo ( const searchableSurface surface,
const dictionary surfacesDict,
const wordList regionNames 
)

Construct from surfaces and dictionary and fully resolved.

region names (for optional automatic faceZone naming)

Definition at line 77 of file surfaceZonesInfo.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), dictionary::get(), searchableSurface::hasVolumeType(), IOWarningInFunction, IOobject::name(), dictionary::readEntry(), dictionary::readIfPresent(), regionNames, and searchableSurface::regions().

Here is the call graph for this function:

◆ surfaceZonesInfo() [2/3]

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

Construct from components.

Definition at line 215 of file surfaceZonesInfo.C.

◆ surfaceZonesInfo() [3/3]

surfaceZonesInfo ( const surfaceZonesInfo surfZone)

Copy constructor.

Definition at line 231 of file surfaceZonesInfo.C.

Member Function Documentation

◆ clone()

autoPtr<surfaceZonesInfo> clone ( ) const
inline

Return clone.

Definition at line 152 of file surfaceZonesInfo.H.

References autoPtr< T >::New().

Here is the call graph for this function:

◆ faceZoneNames()

const wordList& faceZoneNames ( ) const
inline

Per 'interface' surface : empty or names of faceZones to put.

faces into (according to region)

Definition at line 164 of file surfaceZonesInfo.H.

◆ cellZoneName()

const word& cellZoneName ( ) const
inline

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

cells into

Definition at line 171 of file surfaceZonesInfo.H.

◆ zoneInside()

const areaSelectionAlgo& zoneInside ( ) const
inline

Definition at line 176 of file surfaceZonesInfo.H.

◆ zoneInsidePoint()

const point& zoneInsidePoint ( ) const
inline

Get specified inside locations for surfaces with a cellZone.

Definition at line 182 of file surfaceZonesInfo.H.

◆ faceType()

const faceZoneType& faceType ( ) const
inline

How to handle face of surfaces with a faceZone.

Definition at line 188 of file surfaceZonesInfo.H.

◆ getUnnamedSurfaces()

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

Get indices of unnamed surfaces (surfaces without faceZoneName)

Definition at line 242 of file surfaceZonesInfo.C.

References forAll.

Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), meshRefinement::removeGapCells(), and snappySnapDriver::repatchToSurface().

Here is the caller graph for this function:

◆ getNamedSurfaces()

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

Get indices of named surfaces (surfaces with faceZoneName)

Definition at line 263 of file surfaceZonesInfo.C.

References forAll, and PtrList< T >::set().

Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::repatchToSurface(), and meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStandaloneNamedSurfaces()

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

Get indices of named surfaces without a cellZone.

Definition at line 288 of file surfaceZonesInfo.C.

References forAll, and PtrList< T >::set().

Here is the call graph for this function:

◆ getClosedNamedSurfaces()

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 314 of file surfaceZonesInfo.C.

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

Here is the call graph for this function:

◆ getUnclosedNamedSurfaces()

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 346 of file surfaceZonesInfo.C.

References forAll, and PtrList< T >::set().

Here is the call graph for this function:

◆ getAllClosedNamedSurfaces()

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 373 of file surfaceZonesInfo.C.

References forAll, and PtrList< T >::set().

Here is the call graph for this function:

◆ getInsidePointNamedSurfaces()

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

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

section.

Definition at line 401 of file surfaceZonesInfo.C.

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

Here is the call graph for this function:

◆ addCellZone()

Foam::label addCellZone ( const word name,
const labelList addressing,
polyMesh mesh 
)
static

Definition at line 427 of file surfaceZonesInfo.C.

References polyMesh::cellZones(), ZoneMesh< ZoneType, MeshType >::findZoneID(), mesh, and Foam::name().

Here is the call graph for this function:

◆ addCellZonesToMesh()

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

Definition at line 458 of file surfaceZonesInfo.C.

References polyMesh::cellZones(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Pstream::gatherList(), mesh, UPstream::myProcNo(), ZoneMesh< ZoneType, MeshType >::names(), Foam::nl, UPstream::nProcs(), word::null, and Pstream::scatterList().

Referenced by meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFaceZone()

Foam::label addFaceZone ( const word name,
const labelList addressing,
const boolList flipMap,
polyMesh mesh 
)
static

Definition at line 510 of file surfaceZonesInfo.C.

References polyMesh::faceZones(), ZoneMesh< ZoneType, MeshType >::findZoneID(), mesh, and Foam::name().

Referenced by meshRefinement::addFaceZone(), and meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFaceZonesToMesh()

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

Definition at line 543 of file surfaceZonesInfo.C.

References Foam::exit(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, Pstream::gatherList(), mesh, UPstream::myProcNo(), Foam::nl, UPstream::nProcs(), Pstream::scatterList(), and PtrList< T >::setSize().

Referenced by meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ areaSelectionAlgoNames

const Foam::Enum< Foam::surfaceZonesInfo::areaSelectionAlgo > areaSelectionAlgoNames
static

Definition at line 73 of file surfaceZonesInfo.H.

Referenced by refinementSurfaces::findInside().

◆ faceZoneNamingNames

const Foam::Enum< Foam::surfaceZonesInfo::faceZoneNaming > faceZoneNamingNames
static

Definition at line 83 of file surfaceZonesInfo.H.

◆ faceZoneTypeNames


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