mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: cvMesh: Allow lookup for baffle surfaces
This commit is contained in:
@ -249,6 +249,7 @@ Foam::conformationSurfaces::conformationSurfaces
|
||||
|
||||
Info<< endl
|
||||
<< "Testing for locationInMesh " << locationInMesh_ << endl;
|
||||
|
||||
forAll(surfaces_, s)
|
||||
{
|
||||
const searchableSurface& surface(allGeometry_[surfaces_[s]]);
|
||||
@ -267,7 +268,6 @@ Foam::conformationSurfaces::conformationSurfaces
|
||||
|
||||
referenceVolumeTypes_[s] = vTypes[0];
|
||||
|
||||
|
||||
Info<< " is "
|
||||
<< searchableSurface::volumeTypeNames[referenceVolumeTypes_[s]]
|
||||
<< " surface " << surface.name()
|
||||
|
||||
@ -303,6 +303,9 @@ public:
|
||||
//- Find which patch is closest to the point
|
||||
label findPatch(const point& pt) const;
|
||||
|
||||
//- Is the surface a baffle
|
||||
inline bool isBaffle(const label index) const;
|
||||
|
||||
|
||||
// Write
|
||||
|
||||
|
||||
@ -62,4 +62,10 @@ const Foam::treeBoundBox& Foam::conformationSurfaces::globalBounds() const
|
||||
}
|
||||
|
||||
|
||||
bool Foam::conformationSurfaces::isBaffle(const label index) const
|
||||
{
|
||||
return baffleSurfaces_[index];
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user