mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove unused private fields (foamyMesh)
- simplify handling of warnings for surfaceBooleanFeatures
This commit is contained in:
@ -36,8 +36,6 @@ Foam::cv2DControls::cv2DControls
|
|||||||
const boundBox& bb
|
const boundBox& bb
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
dict_(controlDict),
|
|
||||||
|
|
||||||
motionControl_(controlDict.subDict("motionControl")),
|
motionControl_(controlDict.subDict("motionControl")),
|
||||||
conformationControl_(controlDict.subDict("surfaceConformation")),
|
conformationControl_(controlDict.subDict("surfaceConformation")),
|
||||||
|
|
||||||
|
|||||||
@ -60,10 +60,9 @@ Ostream& operator<<(Ostream&, const cv2DControls&);
|
|||||||
|
|
||||||
class cv2DControls
|
class cv2DControls
|
||||||
{
|
{
|
||||||
// Private data
|
// Private Data
|
||||||
|
|
||||||
//- Description of data_
|
//- Description of data
|
||||||
const dictionary& dict_;
|
|
||||||
|
|
||||||
const dictionary& motionControl_;
|
const dictionary& motionControl_;
|
||||||
|
|
||||||
|
|||||||
@ -56,8 +56,6 @@ Foam::cellShapeControl::cellShapeControl
|
|||||||
(
|
(
|
||||||
foamyHexMeshControls.foamyHexMeshDict().subDict("motionControl")
|
foamyHexMeshControls.foamyHexMeshDict().subDict("motionControl")
|
||||||
),
|
),
|
||||||
runTime_(runTime),
|
|
||||||
allGeometry_(allGeometry),
|
|
||||||
geometryToConformTo_(geometryToConformTo),
|
geometryToConformTo_(geometryToConformTo),
|
||||||
defaultCellSize_(foamyHexMeshControls.defaultCellSize()),
|
defaultCellSize_(foamyHexMeshControls.defaultCellSize()),
|
||||||
minimumCellSize_(foamyHexMeshControls.minimumCellSize()),
|
minimumCellSize_(foamyHexMeshControls.minimumCellSize()),
|
||||||
@ -73,12 +71,6 @@ Foam::cellShapeControl::cellShapeControl
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Foam::cellShapeControl::~cellShapeControl()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::scalarField Foam::cellShapeControl::cellSize
|
Foam::scalarField Foam::cellShapeControl::cellSize
|
||||||
|
|||||||
@ -66,11 +66,7 @@ class cellShapeControl
|
|||||||
:
|
:
|
||||||
public dictionary
|
public dictionary
|
||||||
{
|
{
|
||||||
// Private data
|
// Private Data
|
||||||
|
|
||||||
const Time& runTime_;
|
|
||||||
|
|
||||||
const searchableSurfaces& allGeometry_;
|
|
||||||
|
|
||||||
const conformationSurfaces& geometryToConformTo_;
|
const conformationSurfaces& geometryToConformTo_;
|
||||||
|
|
||||||
@ -114,7 +110,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
~cellShapeControl();
|
~cellShapeControl() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -41,10 +41,10 @@ License
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(cellShapeControlMesh, 0);
|
defineTypeNameAndDebug(cellShapeControlMesh, 0);
|
||||||
|
|
||||||
word cellShapeControlMesh::meshSubDir = "cellShapeControlMesh";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Foam::word Foam::cellShapeControlMesh::meshSubDir = "cellShapeControlMesh";
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -367,8 +367,7 @@ Foam::cellShapeControlMesh::cellShapeControlMesh(const Time& runTime)
|
|||||||
runTime,
|
runTime,
|
||||||
meshSubDir
|
meshSubDir
|
||||||
),
|
),
|
||||||
runTime_(runTime),
|
runTime_(runTime)
|
||||||
defaultCellSize_(0.0)
|
|
||||||
{
|
{
|
||||||
if (this->vertexCount())
|
if (this->vertexCount())
|
||||||
{
|
{
|
||||||
@ -442,12 +441,6 @@ Foam::cellShapeControlMesh::cellShapeControlMesh(const Time& runTime)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Foam::cellShapeControlMesh::~cellShapeControlMesh()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::cellShapeControlMesh::barycentricCoords
|
void Foam::cellShapeControlMesh::barycentricCoords
|
||||||
|
|||||||
@ -55,6 +55,7 @@ SourceFiles
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Forward Declarations
|
||||||
class cellSizeAndAlignmentControls;
|
class cellSizeAndAlignmentControls;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -74,13 +75,13 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Private data
|
// Private Data
|
||||||
|
|
||||||
const Time& runTime_;
|
const Time& runTime_;
|
||||||
|
|
||||||
mutable Cell_handle oldCellHandle_;
|
mutable Cell_handle oldCellHandle_;
|
||||||
|
|
||||||
const scalar defaultCellSize_;
|
/// const scalar defaultCellSize_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
@ -103,11 +104,12 @@ public:
|
|||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct from runTime
|
||||||
explicit cellShapeControlMesh(const Time& runTime);
|
explicit cellShapeControlMesh(const Time& runTime);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
~cellShapeControlMesh();
|
~cellShapeControlMesh() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -275,7 +275,6 @@ Foam::conformationSurfaces::conformationSurfaces
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
runTime_(runTime),
|
runTime_(runTime),
|
||||||
rndGen_(rndGen),
|
|
||||||
allGeometry_(allGeometry),
|
allGeometry_(allGeometry),
|
||||||
features_(),
|
features_(),
|
||||||
locationInMesh_(surfaceConformationDict.get<point>("locationInMesh")),
|
locationInMesh_(surfaceConformationDict.get<point>("locationInMesh")),
|
||||||
@ -287,7 +286,7 @@ Foam::conformationSurfaces::conformationSurfaces
|
|||||||
regionOffset_(),
|
regionOffset_(),
|
||||||
patchInfo_(),
|
patchInfo_(),
|
||||||
globalBounds_(),
|
globalBounds_(),
|
||||||
referenceVolumeTypes_(0)
|
referenceVolumeTypes_()
|
||||||
{
|
{
|
||||||
const dictionary& surfacesDict
|
const dictionary& surfacesDict
|
||||||
(
|
(
|
||||||
@ -565,7 +564,7 @@ Foam::conformationSurfaces::conformationSurfaces
|
|||||||
|
|
||||||
// Extend the global bounds to stop the bound box sitting on the surfaces
|
// Extend the global bounds to stop the bound box sitting on the surfaces
|
||||||
// to be conformed to
|
// to be conformed to
|
||||||
//globalBounds_ = globalBounds_.extend(rndGen_, 1e-4);
|
//globalBounds_ = globalBounds_.extend(rndGen, 1e-4);
|
||||||
|
|
||||||
vector newSpan = 1e-4*globalBounds_.span();
|
vector newSpan = 1e-4*globalBounds_.span();
|
||||||
|
|
||||||
|
|||||||
@ -57,12 +57,10 @@ class conformationSurfaces
|
|||||||
{
|
{
|
||||||
typedef extendedFeatureEdgeMesh::sideVolumeType sideVolumeType;
|
typedef extendedFeatureEdgeMesh::sideVolumeType sideVolumeType;
|
||||||
|
|
||||||
// Private data
|
// Private Data
|
||||||
|
|
||||||
const Time& runTime_;
|
const Time& runTime_;
|
||||||
|
|
||||||
Random& rndGen_;
|
|
||||||
|
|
||||||
//- Reference to the searchableSurfaces object holding all geometry data
|
//- Reference to the searchableSurfaces object holding all geometry data
|
||||||
const searchableSurfaces& allGeometry_;
|
const searchableSurfaces& allGeometry_;
|
||||||
|
|
||||||
|
|||||||
@ -134,14 +134,13 @@ Foam::shortEdgeFilter2D::shortEdgeFilter2D
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cv2Dmesh_(cv2Dmesh),
|
|
||||||
shortEdgeFilterFactor_(dict.get<scalar>("shortEdgeFilterFactor")),
|
shortEdgeFilterFactor_(dict.get<scalar>("shortEdgeFilterFactor")),
|
||||||
edgeAttachedToBoundaryFactor_
|
edgeAttachedToBoundaryFactor_
|
||||||
(
|
(
|
||||||
dict.getOrDefault<scalar>("edgeAttachedToBoundaryFactor", 2.0)
|
dict.getOrDefault<scalar>("edgeAttachedToBoundaryFactor", 2.0)
|
||||||
),
|
),
|
||||||
patchNames_(wordList()),
|
patchNames_(),
|
||||||
patchSizes_(labelList()),
|
patchSizes_(),
|
||||||
mapEdgesRegion_(),
|
mapEdgesRegion_(),
|
||||||
indirectPatchEdge_()
|
indirectPatchEdge_()
|
||||||
{
|
{
|
||||||
@ -201,12 +200,6 @@ Foam::shortEdgeFilter2D::shortEdgeFilter2D
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Foam::shortEdgeFilter2D::~shortEdgeFilter2D()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::shortEdgeFilter2D::filter()
|
void Foam::shortEdgeFilter2D::filter()
|
||||||
|
|||||||
@ -53,8 +53,6 @@ class shortEdgeFilter2D
|
|||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
const CV2D& cv2Dmesh_;
|
|
||||||
|
|
||||||
MeshedSurface<face> ms_;
|
MeshedSurface<face> ms_;
|
||||||
|
|
||||||
const scalar shortEdgeFilterFactor_;
|
const scalar shortEdgeFilterFactor_;
|
||||||
@ -98,13 +96,15 @@ public:
|
|||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
ClassName("shortEdgeFilter2D");
|
ClassName("shortEdgeFilter2D");
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct from components
|
||||||
shortEdgeFilter2D(const CV2D& cv2Dmesh, const dictionary& dict);
|
shortEdgeFilter2D(const CV2D& cv2Dmesh, const dictionary& dict);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
~shortEdgeFilter2D();
|
~shortEdgeFilter2D() = default;
|
||||||
|
|
||||||
|
|
||||||
// Access Functions
|
// Access Functions
|
||||||
|
|||||||
@ -1,20 +1,22 @@
|
|||||||
EXE_NDEBUG = -DNDEBUG
|
EXE_NDEBUG = -DNDEBUG
|
||||||
/* EXE_NDEBUG = -g -O0 -DFULLDEBUG */
|
/* EXE_NDEBUG = -g -O0 -DFULLDEBUG */
|
||||||
|
|
||||||
c++CGALWARN = -Wno-old-style-cast
|
|
||||||
|
|
||||||
/*-- Define NO_CGAL in COMP_FLAGS to avoid using CGAL altogether */
|
/*-- Define NO_CGAL in COMP_FLAGS to avoid using CGAL altogether */
|
||||||
/*-- Define CGAL_INEXACT to use inexact CGAL constructions */
|
/*-- Define CGAL_INEXACT to use inexact CGAL constructions */
|
||||||
|
|
||||||
ifeq (,$(findstring NO_CGAL,$(COMP_FLAGS)))
|
ifneq (,$(findstring NO_CGAL,$(COMP_FLAGS)))
|
||||||
include $(GENERAL_RULES)/cgal
|
include $(GENERAL_RULES)/no-cgal
|
||||||
|
c++LESSWARN :=
|
||||||
|
else
|
||||||
|
include $(GENERAL_RULES)/cgal
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
${ROUNDING_MATH} \
|
${ROUNDING_MATH} \
|
||||||
${EXE_NDEBUG} \
|
${EXE_NDEBUG} \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
${c++CGALWARN} \
|
${c++LESSWARN} \
|
||||||
$(COMP_FLAGS) \
|
$(COMP_FLAGS) \
|
||||||
-I$(LIB_SRC)/fileFormats/lnInclude \
|
-I$(LIB_SRC)/fileFormats/lnInclude \
|
||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
|
|||||||
@ -11,7 +11,7 @@ EXE_INC = \
|
|||||||
${ROUNDING_MATH} \
|
${ROUNDING_MATH} \
|
||||||
${EXE_NDEBUG} \
|
${EXE_NDEBUG} \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
${c++CGALWARN} \
|
${c++LESSWARN} \
|
||||||
-I.. \
|
-I.. \
|
||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude
|
-I$(LIB_SRC)/meshTools/lnInclude
|
||||||
|
|||||||
Reference in New Issue
Block a user