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
|
Info<< endl
|
||||||
<< "Testing for locationInMesh " << locationInMesh_ << endl;
|
<< "Testing for locationInMesh " << locationInMesh_ << endl;
|
||||||
|
|
||||||
forAll(surfaces_, s)
|
forAll(surfaces_, s)
|
||||||
{
|
{
|
||||||
const searchableSurface& surface(allGeometry_[surfaces_[s]]);
|
const searchableSurface& surface(allGeometry_[surfaces_[s]]);
|
||||||
@ -267,7 +268,6 @@ Foam::conformationSurfaces::conformationSurfaces
|
|||||||
|
|
||||||
referenceVolumeTypes_[s] = vTypes[0];
|
referenceVolumeTypes_[s] = vTypes[0];
|
||||||
|
|
||||||
|
|
||||||
Info<< " is "
|
Info<< " is "
|
||||||
<< searchableSurface::volumeTypeNames[referenceVolumeTypes_[s]]
|
<< searchableSurface::volumeTypeNames[referenceVolumeTypes_[s]]
|
||||||
<< " surface " << surface.name()
|
<< " surface " << surface.name()
|
||||||
|
|||||||
@ -303,6 +303,9 @@ public:
|
|||||||
//- Find which patch is closest to the point
|
//- Find which patch is closest to the point
|
||||||
label findPatch(const point& pt) const;
|
label findPatch(const point& pt) const;
|
||||||
|
|
||||||
|
//- Is the surface a baffle
|
||||||
|
inline bool isBaffle(const label index) const;
|
||||||
|
|
||||||
|
|
||||||
// Write
|
// 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