Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
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 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 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
 

Private Member Functions

void operator= (const surfaceZonesInfo &)
 Disallow default bitwise assignment. More...
 

Private Attributes

word faceZoneName_
 Per 'interface' surface : name of faceZone to put faces into. More...
 
word cellZoneName_
 Per 'interface' surface : name of cellZone to put cells into. More...
 
areaSelectionAlgo zoneInside_
 Per 'interface' surface : (only used if surface is closed) More...
 
point zoneInsidePoint_
 If zoneInside=location gives the corresponding inside point. More...
 
faceZoneType faceType_
 Per 'interface' surface : More...
 

Detailed Description

Source files

Definition at line 57 of file surfaceZonesInfo.H.

Member Enumeration Documentation

◆ areaSelectionAlgo

Types of selection of area.

Enumerator
INSIDE 
OUTSIDE 
INSIDEPOINT 
NONE 

Definition at line 62 of file surfaceZonesInfo.H.

◆ faceZoneType

What to do with faceZone faces.

Enumerator
INTERNAL 
BAFFLE 
BOUNDARY 

Definition at line 73 of file surfaceZonesInfo.H.

Constructor & Destructor Documentation

◆ surfaceZonesInfo() [1/3]

surfaceZonesInfo ( const searchableSurface surface,
const dictionary surfacesDict 
)

Construct from surfaces and dictionary.

Definition at line 74 of file surfaceZonesInfo.C.

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

Referenced by surfaceZonesInfo::clone().

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

◆ surfaceZonesInfo() [2/3]

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() [3/3]

surfaceZonesInfo ( const surfaceZonesInfo surfZone)

Copy constructor.

Definition at line 173 of file surfaceZonesInfo.C.

Member Function Documentation

◆ operator=()

void operator= ( const surfaceZonesInfo )
private

Disallow default bitwise assignment.

◆ clone()

autoPtr<surfaceZonesInfo> clone ( ) const
inline

Return clone.

Definition at line 137 of file surfaceZonesInfo.H.

References surfaceZonesInfo::surfaceZonesInfo().

Here is the call graph for this function:

◆ faceZoneName()

const word& faceZoneName ( ) const
inline

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

faces into

Definition at line 149 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 156 of file surfaceZonesInfo.H.

◆ zoneInside()

const areaSelectionAlgo& zoneInside ( ) const
inline

Definition at line 161 of file surfaceZonesInfo.H.

References surfaceZonesInfo::zoneInside_.

◆ zoneInsidePoint()

const point& zoneInsidePoint ( ) const
inline

Get specified inside locations for surfaces with a cellZone.

Definition at line 167 of file surfaceZonesInfo.H.

References surfaceZonesInfo::zoneInsidePoint_.

◆ faceType()

const faceZoneType& faceType ( ) const
inline

How to handle face of surfaces with a faceZone.

Definition at line 173 of file surfaceZonesInfo.H.

References surfaceZonesInfo::faceType_.

◆ getUnnamedSurfaces()

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 forAll, List::setSize(), and PtrList::size().

Here is the call graph for this function:

◆ getNamedSurfaces()

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

Get indices of named surfaces (surfaces with faceZoneName)

Definition at line 205 of file surfaceZonesInfo.C.

References forAll, PtrList::set(), List::setSize(), and PtrList::size().

Referenced by main(), 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 230 of file surfaceZonesInfo.C.

References forAll, PtrList::set(), List::setSize(), and PtrList::size().

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

References forAll, surfaceZonesInfo::INSIDE, surfaceZonesInfo::OUTSIDE, PtrList::set(), List::setSize(), and PtrList::size().

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

References forAll, PtrList::set(), List::setSize(), and PtrList::size().

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

References forAll, PtrList::set(), List::setSize(), and PtrList::size().

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

References forAll, surfaceZonesInfo::INSIDEPOINT, PtrList::set(), List::setSize(), and PtrList::size().

Here is the call graph for this function:

◆ addCellZone()

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

Definition at line 369 of file surfaceZonesInfo.C.

References polyMesh::cellZones(), ZoneMesh::findZoneID(), mesh, and Foam::name().

Referenced by refinementParameters::addCellZonesToMesh().

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

◆ addCellZonesToMesh()

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

Definition at line 400 of file surfaceZonesInfo.C.

References polyMesh::cellZones(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Pstream::gatherList(), mesh, UPstream::myProcNo(), ZoneMesh::names(), Foam::nl, UPstream::nProcs(), word::null, Pstream::scatterList(), List::size(), and PtrList::size().

Referenced by main(), and 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 452 of file surfaceZonesInfo.C.

References polyMesh::faceZones(), ZoneMesh::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::labelList addFaceZonesToMesh ( const PtrList< surfaceZonesInfo > &  surfList,
const labelList namedSurfaces,
polyMesh mesh 
)
static

Definition at line 485 of file surfaceZonesInfo.C.

References Foam::exit(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, Pstream::gatherList(), mesh, UPstream::myProcNo(), ZoneMesh::names(), Foam::nl, UPstream::nProcs(), Pstream::scatterList(), List::size(), and PtrList::size().

Referenced by meshRefinement::zonify().

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

Field Documentation

◆ areaSelectionAlgoNames

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

Definition at line 70 of file surfaceZonesInfo.H.

Referenced by refinementSurfaces::findInside().

◆ faceZoneTypeNames

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

◆ faceZoneName_

word faceZoneName_
private

Per 'interface' surface : name of faceZone to put faces into.

Definition at line 88 of file surfaceZonesInfo.H.

◆ cellZoneName_

word cellZoneName_
private

Per 'interface' surface : name of cellZone to put cells into.

Definition at line 91 of file surfaceZonesInfo.H.

◆ zoneInside_

areaSelectionAlgo zoneInside_
private

Per 'interface' surface : (only used if surface is closed)

How to select zone cells : surface inside or outside or given inside location.

Definition at line 96 of file surfaceZonesInfo.H.

Referenced by surfaceZonesInfo::zoneInside().

◆ zoneInsidePoint_

point zoneInsidePoint_
private

If zoneInside=location gives the corresponding inside point.

Definition at line 99 of file surfaceZonesInfo.H.

Referenced by surfaceZonesInfo::zoneInsidePoint().

◆ faceType_

faceZoneType faceType_
private

Per 'interface' surface :

What to do with outside

Definition at line 103 of file surfaceZonesInfo.H.

Referenced by surfaceZonesInfo::faceType().


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