35 {
"wall",
"external",
"cellZone",
"rotatingZone",
"baffle"};
45 Foam::label Foam::meshingSurface::nSurfaceParts(
const triSurfaceMesh& surf)
48 return surf.markZones(
boolList(surf.nEdges(),
false), faceZone);
59 type_(surfaceType::wall),
71 name_(word(file_.lessExt())),
72 type_(surfaceType::wall),
88 triSurface(path_/file_)
94 closed_ = surf.hasVolumeType();
95 nParts_ = nSurfaceParts(surf);
99 regions_.append(surf.patches()[i].name());
105 if (!strncmp(regions_[r].c_str(),
"inlet", 5))
107 inletRegions_.append(regions_[r]);
114 if (!strncmp(regions_[r].c_str(),
"outlet", 6))
116 outletRegions_.append(regions_[r]);
131 const word ext(
file.ext());
133 if (ext ==
"stl" || ext ==
"stlb" || ext ==
"obj" || ext ==
"vtk")
#define forAll(list, i)
Loop across all elements in list.
Initialise the NamedEnum HashTable from the static list of names.
static const char * names[nEnum]
The set of names corresponding to the enumeration Enum.
A bounding box defined in terms of the points at its extremities.
A class for handling file names.
meshingSurface()
Construct null.
static const NamedEnum< surfaceType, 5 > surfaceTypeNames
Enumeration names for surfaceTypes.
static bool isSurfaceExt(const fileName &file)
~meshingSurface()
Destructor.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
List< bool > boolList
Bool container classes.