mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: additional storage checks, noexcept, spelling
- prune unneeded demandDrivenData.H includes
This commit is contained in:
@ -45,7 +45,6 @@ Description
|
|||||||
#include "pointSet.H"
|
#include "pointSet.H"
|
||||||
#include "topoSetSource.H"
|
#include "topoSetSource.H"
|
||||||
#include "Fstream.H"
|
#include "Fstream.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "foamVtkWriteTopoSet.H"
|
#include "foamVtkWriteTopoSet.H"
|
||||||
#include "IOobjectList.H"
|
#include "IOobjectList.H"
|
||||||
#include "cellZoneSet.H"
|
#include "cellZoneSet.H"
|
||||||
|
|||||||
@ -29,7 +29,6 @@ License
|
|||||||
#include "facePointPatch.H"
|
#include "facePointPatch.H"
|
||||||
#include "pointBoundaryMesh.H"
|
#include "pointBoundaryMesh.H"
|
||||||
#include "pointMesh.H"
|
#include "pointMesh.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -1310,13 +1310,13 @@ const Foam::globalMeshData& Foam::polyMesh::globalData() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::label Foam::polyMesh::comm() const
|
Foam::label Foam::polyMesh::comm() const noexcept
|
||||||
{
|
{
|
||||||
return comm_;
|
return comm_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::label& Foam::polyMesh::comm()
|
Foam::label& Foam::polyMesh::comm() noexcept
|
||||||
{
|
{
|
||||||
return comm_;
|
return comm_;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -478,19 +478,19 @@ public:
|
|||||||
const indexedOctree<treeDataCell>& cellTree() const;
|
const indexedOctree<treeDataCell>& cellTree() const;
|
||||||
|
|
||||||
//- Return point zone mesh
|
//- Return point zone mesh
|
||||||
const pointZoneMesh& pointZones() const
|
const pointZoneMesh& pointZones() const noexcept
|
||||||
{
|
{
|
||||||
return pointZones_;
|
return pointZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return face zone mesh
|
//- Return face zone mesh
|
||||||
const faceZoneMesh& faceZones() const
|
const faceZoneMesh& faceZones() const noexcept
|
||||||
{
|
{
|
||||||
return faceZones_;
|
return faceZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return cell zone mesh
|
//- Return cell zone mesh
|
||||||
const cellZoneMesh& cellZones() const
|
const cellZoneMesh& cellZones() const noexcept
|
||||||
{
|
{
|
||||||
return cellZones_;
|
return cellZones_;
|
||||||
}
|
}
|
||||||
@ -499,13 +499,13 @@ public:
|
|||||||
const globalMeshData& globalData() const;
|
const globalMeshData& globalData() const;
|
||||||
|
|
||||||
//- Return communicator used for parallel communication
|
//- Return communicator used for parallel communication
|
||||||
label comm() const;
|
label comm() const noexcept;
|
||||||
|
|
||||||
//- Return communicator used for parallel communication
|
//- Return communicator used for parallel communication
|
||||||
label& comm();
|
label& comm() noexcept;
|
||||||
|
|
||||||
//- Return the object registry
|
//- Return the object registry
|
||||||
const objectRegistry& thisDb() const
|
const objectRegistry& thisDb() const noexcept
|
||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -520,37 +520,37 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
//- Is mesh moving
|
//- Is mesh moving
|
||||||
bool moving() const
|
bool moving() const noexcept
|
||||||
{
|
{
|
||||||
return moving_;
|
return moving_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Set the mesh to be moving
|
//- Set the mesh to be moving
|
||||||
bool moving(const bool m)
|
bool moving(const bool on) noexcept
|
||||||
{
|
{
|
||||||
bool m0 = moving_;
|
bool old(moving_);
|
||||||
moving_ = m;
|
moving_ = on;
|
||||||
return m0;
|
return old;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Is mesh topology changing
|
//- Is mesh topology changing
|
||||||
bool topoChanging() const
|
bool topoChanging() const noexcept
|
||||||
{
|
{
|
||||||
return topoChanging_;
|
return topoChanging_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Set the mesh topology to be changing
|
//- Set the mesh topology to be changing
|
||||||
bool topoChanging(const bool c)
|
bool topoChanging(const bool on) noexcept
|
||||||
{
|
{
|
||||||
bool c0 = topoChanging_;
|
bool old(topoChanging_);
|
||||||
topoChanging_ = c;
|
topoChanging_ = on;
|
||||||
return c0;
|
return old;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Is mesh changing (topology changing and/or moving)
|
//- Is mesh changing (topology changing and/or moving)
|
||||||
bool changing() const
|
bool changing() const noexcept
|
||||||
{
|
{
|
||||||
return moving()||topoChanging();
|
return (moving() || topoChanging());
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Move points, returns volumes swept by faces in motion
|
//- Move points, returns volumes swept by faces in motion
|
||||||
@ -563,19 +563,19 @@ public:
|
|||||||
// Topological change
|
// Topological change
|
||||||
|
|
||||||
//- Return non-const access to the pointZones
|
//- Return non-const access to the pointZones
|
||||||
pointZoneMesh& pointZones()
|
pointZoneMesh& pointZones() noexcept
|
||||||
{
|
{
|
||||||
return pointZones_;
|
return pointZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return non-const access to the faceZones
|
//- Return non-const access to the faceZones
|
||||||
faceZoneMesh& faceZones()
|
faceZoneMesh& faceZones() noexcept
|
||||||
{
|
{
|
||||||
return faceZones_;
|
return faceZones_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return non-const access to the cellZones
|
//- Return non-const access to the cellZones
|
||||||
cellZoneMesh& cellZones()
|
cellZoneMesh& cellZones() noexcept
|
||||||
{
|
{
|
||||||
return cellZones_;
|
return cellZones_;
|
||||||
}
|
}
|
||||||
@ -669,6 +669,9 @@ public:
|
|||||||
void removeFiles() const;
|
void removeFiles() const;
|
||||||
|
|
||||||
|
|
||||||
|
bool hasTetBasePtIs() const { return bool(tetBasePtIsPtr_); }
|
||||||
|
|
||||||
|
|
||||||
// Geometric checks. Selectively override primitiveMesh functionality.
|
// Geometric checks. Selectively override primitiveMesh functionality.
|
||||||
|
|
||||||
//- Check non-orthogonality
|
//- Check non-orthogonality
|
||||||
|
|||||||
@ -92,7 +92,7 @@ void Foam::polyMesh::updateGeomPoints
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear all geometric mesh objects that are not 'moveable'
|
// Clear all geometric mesh objects that are not 'movable'
|
||||||
meshObject::clearUpto
|
meshObject::clearUpto
|
||||||
<
|
<
|
||||||
pointMesh,
|
pointMesh,
|
||||||
@ -143,7 +143,7 @@ void Foam::polyMesh::updateGeomPoints
|
|||||||
geometricD_ = Zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
// Update all 'moveable' objects
|
// Update all 'movable' objects
|
||||||
meshObject::movePoints<polyMesh>(*this);
|
meshObject::movePoints<polyMesh>(*this);
|
||||||
meshObject::movePoints<pointMesh>(*this);
|
meshObject::movePoints<pointMesh>(*this);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
#include "polyBoundaryMesh.H"
|
#include "polyBoundaryMesh.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "patchZones.H"
|
#include "patchZones.H"
|
||||||
#include "matchPoints.H"
|
#include "matchPoints.H"
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
#include "SubField.H"
|
#include "SubField.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "matchPoints.H"
|
#include "matchPoints.H"
|
||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
|
|||||||
@ -249,13 +249,6 @@ public:
|
|||||||
//- Set/add group with zones
|
//- Set/add group with zones
|
||||||
void setGroup(const word& groupName, const labelUList& zoneIDs);
|
void setGroup(const word& groupName, const labelUList& zoneIDs);
|
||||||
|
|
||||||
|
|
||||||
//- Clear addressing
|
|
||||||
void clearAddressing();
|
|
||||||
|
|
||||||
//- Clear the zones
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
//- Check zone definition. Return true if in error.
|
//- Check zone definition. Return true if in error.
|
||||||
bool checkDefinition(const bool report = false) const;
|
bool checkDefinition(const bool report = false) const;
|
||||||
|
|
||||||
@ -267,6 +260,17 @@ public:
|
|||||||
void movePoints(const pointField& pts);
|
void movePoints(const pointField& pts);
|
||||||
|
|
||||||
|
|
||||||
|
// Storage Management
|
||||||
|
|
||||||
|
//- Clear addressing
|
||||||
|
void clearAddressing();
|
||||||
|
|
||||||
|
//- Clear the zones
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
bool hasFaceAreas() const { return bool(zoneMapPtr_); }
|
||||||
|
|
||||||
|
|
||||||
// Member Operators
|
// Member Operators
|
||||||
|
|
||||||
//- Return const and non-const reference to zone by index.
|
//- Return const and non-const reference to zone by index.
|
||||||
|
|||||||
@ -297,13 +297,13 @@ public:
|
|||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return reference to global points
|
//- Return reference to global points
|
||||||
const Field<point_type>& points() const
|
const Field<point_type>& points() const noexcept
|
||||||
{
|
{
|
||||||
return points_;
|
return points_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Number of faces in the patch
|
//- Number of faces in the patch
|
||||||
label nFaces() const
|
label nFaces() const noexcept
|
||||||
{
|
{
|
||||||
return FaceList::size();
|
return FaceList::size();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,7 +26,6 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "primitiveMesh.H"
|
#include "primitiveMesh.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ SourceFiles
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
// Forward declarations
|
// Forward Declarations
|
||||||
class bitSet;
|
class bitSet;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -484,28 +484,28 @@ public:
|
|||||||
// Mesh size parameters
|
// Mesh size parameters
|
||||||
|
|
||||||
//- Number of mesh points
|
//- Number of mesh points
|
||||||
inline label nPoints() const;
|
inline label nPoints() const noexcept;
|
||||||
|
|
||||||
//- Number of mesh edges
|
//- Number of mesh edges
|
||||||
inline label nEdges() const;
|
inline label nEdges() const;
|
||||||
|
|
||||||
//- Number of mesh faces
|
//- Number of mesh faces
|
||||||
inline label nFaces() const;
|
inline label nFaces() const noexcept;
|
||||||
|
|
||||||
//- Number of mesh cells
|
//- Number of mesh cells
|
||||||
inline label nCells() const;
|
inline label nCells() const noexcept;
|
||||||
|
|
||||||
//- Number of internal faces
|
//- Number of internal faces
|
||||||
inline label nInternalFaces() const;
|
inline label nInternalFaces() const noexcept;
|
||||||
|
|
||||||
//- Number of boundary faces (== nFaces - nInternalFaces)
|
//- Number of boundary faces (== nFaces - nInternalFaces)
|
||||||
inline label nBoundaryFaces() const;
|
inline label nBoundaryFaces() const noexcept;
|
||||||
|
|
||||||
|
|
||||||
// If points are ordered (nInternalPoints != -1):
|
// If points are ordered (nInternalPoints != -1):
|
||||||
|
|
||||||
//- Points not on boundary
|
//- Points not on boundary
|
||||||
inline label nInternalPoints() const;
|
inline label nInternalPoints() const noexcept;
|
||||||
|
|
||||||
//- Internal edges (i.e. not on boundary face) using
|
//- Internal edges (i.e. not on boundary face) using
|
||||||
//- no boundary point
|
//- no boundary point
|
||||||
@ -607,7 +607,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Return true if given face label is internal to the mesh
|
//- Return true if given face label is internal to the mesh
|
||||||
inline bool isInternalFace(const label faceIndex) const;
|
inline bool isInternalFace(const label faceIndex) const noexcept;
|
||||||
|
|
||||||
|
|
||||||
// Topological checks
|
// Topological checks
|
||||||
@ -795,23 +795,23 @@ public:
|
|||||||
void printAllocated() const;
|
void printAllocated() const;
|
||||||
|
|
||||||
// Per storage whether allocated
|
// Per storage whether allocated
|
||||||
inline bool hasCellShapes() const;
|
inline bool hasCellShapes() const noexcept;
|
||||||
inline bool hasEdges() const;
|
inline bool hasEdges() const noexcept;
|
||||||
inline bool hasCellCells() const;
|
inline bool hasCellCells() const noexcept;
|
||||||
inline bool hasEdgeCells() const;
|
inline bool hasEdgeCells() const noexcept;
|
||||||
inline bool hasPointCells() const;
|
inline bool hasPointCells() const noexcept;
|
||||||
inline bool hasCells() const;
|
inline bool hasCells() const noexcept;
|
||||||
inline bool hasEdgeFaces() const;
|
inline bool hasEdgeFaces() const noexcept;
|
||||||
inline bool hasPointFaces() const;
|
inline bool hasPointFaces() const noexcept;
|
||||||
inline bool hasCellEdges() const;
|
inline bool hasCellEdges() const noexcept;
|
||||||
inline bool hasFaceEdges() const;
|
inline bool hasFaceEdges() const noexcept;
|
||||||
inline bool hasPointEdges() const;
|
inline bool hasPointEdges() const noexcept;
|
||||||
inline bool hasPointPoints() const;
|
inline bool hasPointPoints() const noexcept;
|
||||||
inline bool hasCellPoints() const;
|
inline bool hasCellPoints() const noexcept;
|
||||||
inline bool hasCellCentres() const;
|
inline bool hasCellCentres() const noexcept;
|
||||||
inline bool hasFaceCentres() const;
|
inline bool hasFaceCentres() const noexcept;
|
||||||
inline bool hasCellVolumes() const;
|
inline bool hasCellVolumes() const noexcept;
|
||||||
inline bool hasFaceAreas() const;
|
inline bool hasFaceAreas() const noexcept;
|
||||||
|
|
||||||
// On-the-fly addressing calculation. These functions return either
|
// On-the-fly addressing calculation. These functions return either
|
||||||
// a reference to the full addressing (if already calculated) or
|
// a reference to the full addressing (if already calculated) or
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011 OpenFOAM Foundation
|
Copyright (C) 2011 OpenFOAM Foundation
|
||||||
Copyright (C) 2018 OpenCFD Ltd.
|
Copyright (C) 2018-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -28,13 +28,13 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
inline Foam::label Foam::primitiveMesh::nInternalPoints() const
|
inline Foam::label Foam::primitiveMesh::nInternalPoints() const noexcept
|
||||||
{
|
{
|
||||||
return nInternalPoints_;
|
return nInternalPoints_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::label Foam::primitiveMesh::nPoints() const
|
inline Foam::label Foam::primitiveMesh::nPoints() const noexcept
|
||||||
{
|
{
|
||||||
return nPoints_;
|
return nPoints_;
|
||||||
}
|
}
|
||||||
@ -75,133 +75,136 @@ inline Foam::label Foam::primitiveMesh::nEdges() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::label Foam::primitiveMesh::nInternalFaces() const
|
inline Foam::label Foam::primitiveMesh::nInternalFaces() const noexcept
|
||||||
{
|
{
|
||||||
return nInternalFaces_;
|
return nInternalFaces_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::label Foam::primitiveMesh::nBoundaryFaces() const
|
inline Foam::label Foam::primitiveMesh::nBoundaryFaces() const noexcept
|
||||||
{
|
{
|
||||||
return (nFaces_ - nInternalFaces_);
|
return (nFaces_ - nInternalFaces_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::label Foam::primitiveMesh::nFaces() const
|
inline Foam::label Foam::primitiveMesh::nFaces() const noexcept
|
||||||
{
|
{
|
||||||
return nFaces_;
|
return nFaces_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::label Foam::primitiveMesh::nCells() const
|
inline Foam::label Foam::primitiveMesh::nCells() const noexcept
|
||||||
{
|
{
|
||||||
return nCells_;
|
return nCells_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::isInternalFace(const label faceIndex) const
|
inline bool Foam::primitiveMesh::isInternalFace
|
||||||
|
(
|
||||||
|
const label faceIndex
|
||||||
|
) const noexcept
|
||||||
{
|
{
|
||||||
return faceIndex < nInternalFaces_;
|
return faceIndex < nInternalFaces_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCellShapes() const
|
inline bool Foam::primitiveMesh::hasCellShapes() const noexcept
|
||||||
{
|
{
|
||||||
return cellShapesPtr_;
|
return cellShapesPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasEdges() const
|
inline bool Foam::primitiveMesh::hasEdges() const noexcept
|
||||||
{
|
{
|
||||||
return edgesPtr_;
|
return edgesPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCellCells() const
|
inline bool Foam::primitiveMesh::hasCellCells() const noexcept
|
||||||
{
|
{
|
||||||
return ccPtr_;
|
return ccPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasEdgeCells() const
|
inline bool Foam::primitiveMesh::hasEdgeCells() const noexcept
|
||||||
{
|
{
|
||||||
return ecPtr_;
|
return ecPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasPointCells() const
|
inline bool Foam::primitiveMesh::hasPointCells() const noexcept
|
||||||
{
|
{
|
||||||
return pcPtr_;
|
return pcPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCells() const
|
inline bool Foam::primitiveMesh::hasCells() const noexcept
|
||||||
{
|
{
|
||||||
return cfPtr_;
|
return cfPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasEdgeFaces() const
|
inline bool Foam::primitiveMesh::hasEdgeFaces() const noexcept
|
||||||
{
|
{
|
||||||
return efPtr_;
|
return efPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasPointFaces() const
|
inline bool Foam::primitiveMesh::hasPointFaces() const noexcept
|
||||||
{
|
{
|
||||||
return pfPtr_;
|
return pfPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCellEdges() const
|
inline bool Foam::primitiveMesh::hasCellEdges() const noexcept
|
||||||
{
|
{
|
||||||
return cePtr_;
|
return cePtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasFaceEdges() const
|
inline bool Foam::primitiveMesh::hasFaceEdges() const noexcept
|
||||||
{
|
{
|
||||||
return fePtr_;
|
return fePtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasPointEdges() const
|
inline bool Foam::primitiveMesh::hasPointEdges() const noexcept
|
||||||
{
|
{
|
||||||
return pePtr_;
|
return pePtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasPointPoints() const
|
inline bool Foam::primitiveMesh::hasPointPoints() const noexcept
|
||||||
{
|
{
|
||||||
return ppPtr_;
|
return ppPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCellPoints() const
|
inline bool Foam::primitiveMesh::hasCellPoints() const noexcept
|
||||||
{
|
{
|
||||||
return cpPtr_;
|
return cpPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCellCentres() const
|
inline bool Foam::primitiveMesh::hasCellCentres() const noexcept
|
||||||
{
|
{
|
||||||
return cellCentresPtr_;
|
return cellCentresPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasFaceCentres() const
|
inline bool Foam::primitiveMesh::hasFaceCentres() const noexcept
|
||||||
{
|
{
|
||||||
return faceCentresPtr_;
|
return faceCentresPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasCellVolumes() const
|
inline bool Foam::primitiveMesh::hasCellVolumes() const noexcept
|
||||||
{
|
{
|
||||||
return cellVolumesPtr_;
|
return cellVolumesPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Foam::primitiveMesh::hasFaceAreas() const
|
inline bool Foam::primitiveMesh::hasFaceAreas() const noexcept
|
||||||
{
|
{
|
||||||
return faceAreasPtr_;
|
return faceAreasPtr_;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,6 @@ License
|
|||||||
#include "ccmReader.H"
|
#include "ccmReader.H"
|
||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
#include "IOdictionary.H"
|
#include "IOdictionary.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
|
|
||||||
#include "ccmInternal.H" // include last to avoid any strange interactions
|
#include "ccmInternal.H" // include last to avoid any strange interactions
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ License
|
|||||||
|
|
||||||
#include "ccmWriter.H"
|
#include "ccmWriter.H"
|
||||||
#include "cellModel.H"
|
#include "cellModel.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "ccmInternal.H" // include last to avoid any strange interactions
|
#include "ccmInternal.H" // include last to avoid any strange interactions
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -32,7 +32,6 @@ License
|
|||||||
#include "pointIndList.H"
|
#include "pointIndList.H"
|
||||||
#include "Pstream.H"
|
#include "Pstream.H"
|
||||||
#include "emptyPolyPatch.H"
|
#include "emptyPolyPatch.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "cyclicPolyPatch.H"
|
#include "cyclicPolyPatch.H"
|
||||||
#include "removeCells.H"
|
#include "removeCells.H"
|
||||||
#include "polyTopoChange.H"
|
#include "polyTopoChange.H"
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "mapPolyMesh.H"
|
#include "mapPolyMesh.H"
|
||||||
#include "polyTopoChanger.H"
|
#include "polyTopoChanger.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -308,10 +308,7 @@ Foam::faMatrix<Type>::faMatrix
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::tmp<Foam::faMatrix<Type>> Foam::faMatrix<Type>::clone() const
|
Foam::tmp<Foam::faMatrix<Type>> Foam::faMatrix<Type>::clone() const
|
||||||
{
|
{
|
||||||
return tmp<faMatrix<Type>>
|
return tmp<faMatrix<Type>>::New(*this);
|
||||||
(
|
|
||||||
new faMatrix<Type>(*this)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2017 Wikki Ltd
|
Copyright (C) 2016-2017 Wikki Ltd
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -74,11 +74,28 @@ class faMatrix
|
|||||||
public refCount,
|
public refCount,
|
||||||
public lduMatrix
|
public lduMatrix
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
// Public Types
|
||||||
|
|
||||||
|
//- Field type for psi
|
||||||
|
typedef
|
||||||
|
GeometricField<Type, faPatchField, areaMesh>
|
||||||
|
psiFieldType;
|
||||||
|
|
||||||
|
//- Field type for face flux (for non-orthogonal correction)
|
||||||
|
typedef
|
||||||
|
GeometricField<Type, faePatchField, edgeMesh>
|
||||||
|
faceFluxFieldType;
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
//- Const reference to field
|
//- Const reference to field
|
||||||
// Converted into a non-const reference at the point of solution.
|
// Converted into a non-const reference at the point of solution.
|
||||||
const GeometricField<Type, faPatchField, areaMesh>& psi_;
|
const psiFieldType& psi_;
|
||||||
|
|
||||||
//- Dimension set
|
//- Dimension set
|
||||||
dimensionSet dimensions_;
|
dimensionSet dimensions_;
|
||||||
@ -95,8 +112,7 @@ class faMatrix
|
|||||||
FieldField<Field, Type> boundaryCoeffs_;
|
FieldField<Field, Type> boundaryCoeffs_;
|
||||||
|
|
||||||
//- Face flux field for non-orthogonal correction
|
//- Face flux field for non-orthogonal correction
|
||||||
mutable GeometricField<Type, faePatchField, edgeMesh>
|
mutable faceFluxFieldType* faceFluxCorrectionPtr_;
|
||||||
*faceFluxCorrectionPtr_;
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -285,17 +301,22 @@ public:
|
|||||||
return boundaryCoeffs_;
|
return boundaryCoeffs_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Declare return type of the faceFluxCorrectionPtr() function
|
//- Declare return type of the faceFluxCorrectionPtr() function
|
||||||
typedef GeometricField<Type, faePatchField, edgeMesh>
|
typedef GeometricField<Type, faePatchField, edgeMesh>
|
||||||
*edgeTypeFieldPtr;
|
*faceFluxFieldPtrType;
|
||||||
|
|
||||||
//- Return pointer to face-flux non-orthogonal correction field
|
//- Return pointer to face-flux non-orthogonal correction field
|
||||||
edgeTypeFieldPtr& faceFluxCorrectionPtr()
|
faceFluxFieldPtrType& faceFluxCorrectionPtr()
|
||||||
{
|
{
|
||||||
return faceFluxCorrectionPtr_;
|
return faceFluxCorrectionPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- True if face-flux non-orthogonal correction field exists
|
||||||
|
bool hasFaceFluxCorrection() const noexcept
|
||||||
|
{
|
||||||
|
return bool(faceFluxCorrectionPtr_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,6 @@ License
|
|||||||
|
|
||||||
#include "processorCyclicFvPatchField.H"
|
#include "processorCyclicFvPatchField.H"
|
||||||
#include "processorCyclicFvPatch.H"
|
#include "processorCyclicFvPatch.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "transformField.H"
|
#include "transformField.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -528,10 +528,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::tmp<Foam::fvMatrix<Type>> Foam::fvMatrix<Type>::clone() const
|
Foam::tmp<Foam::fvMatrix<Type>> Foam::fvMatrix<Type>::clone() const
|
||||||
{
|
{
|
||||||
return tmp<fvMatrix<Type>>
|
return tmp<fvMatrix<Type>>::New(*this);
|
||||||
(
|
|
||||||
new fvMatrix<Type>(*this)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -121,11 +121,27 @@ class fvMatrix
|
|||||||
public refCount,
|
public refCount,
|
||||||
public lduMatrix
|
public lduMatrix
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
// Public Types
|
||||||
|
|
||||||
|
//- Field type for psi
|
||||||
|
typedef
|
||||||
|
GeometricField<Type, fvPatchField, volMesh>
|
||||||
|
psiFieldType;
|
||||||
|
|
||||||
|
//- Field type for face flux (for non-orthogonal correction)
|
||||||
|
typedef
|
||||||
|
GeometricField<Type, fvsPatchField, surfaceMesh>
|
||||||
|
faceFluxFieldType;
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
//- Const reference to field
|
//- Const reference to field
|
||||||
// Converted into a non-const reference at the point of solution.
|
// Converted into a non-const reference at the point of solution.
|
||||||
const GeometricField<Type, fvPatchField, volMesh>& psi_;
|
const psiFieldType& psi_;
|
||||||
|
|
||||||
//- Originating fvMatrices when assembling matrices. Empty if not used.
|
//- Originating fvMatrices when assembling matrices. Empty if not used.
|
||||||
PtrList<fvMatrix<Type>> subMatrices_;
|
PtrList<fvMatrix<Type>> subMatrices_;
|
||||||
@ -154,8 +170,7 @@ class fvMatrix
|
|||||||
FieldField<Field, Type> boundaryCoeffs_;
|
FieldField<Field, Type> boundaryCoeffs_;
|
||||||
|
|
||||||
//- Face flux field for non-orthogonal correction
|
//- Face flux field for non-orthogonal correction
|
||||||
mutable GeometricField<Type, fvsPatchField, surfaceMesh>
|
mutable faceFluxFieldType* faceFluxCorrectionPtr_;
|
||||||
*faceFluxCorrectionPtr_;
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -468,14 +483,20 @@ public:
|
|||||||
|
|
||||||
//- Declare return type of the faceFluxCorrectionPtr() function
|
//- Declare return type of the faceFluxCorrectionPtr() function
|
||||||
typedef GeometricField<Type, fvsPatchField, surfaceMesh>
|
typedef GeometricField<Type, fvsPatchField, surfaceMesh>
|
||||||
*surfaceTypeFieldPtr;
|
*faceFluxFieldPtrType;
|
||||||
|
|
||||||
//- Return pointer to face-flux non-orthogonal correction field
|
//- Return pointer to face-flux non-orthogonal correction field
|
||||||
surfaceTypeFieldPtr& faceFluxCorrectionPtr()
|
faceFluxFieldPtrType& faceFluxCorrectionPtr()
|
||||||
{
|
{
|
||||||
return faceFluxCorrectionPtr_;
|
return faceFluxCorrectionPtr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- True if face-flux non-orthogonal correction field exists
|
||||||
|
bool hasFaceFluxCorrection() const noexcept
|
||||||
|
{
|
||||||
|
return bool(faceFluxCorrectionPtr_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
#include "fvMesh.H"
|
#include "fvMesh.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "pointFields.H"
|
#include "pointFields.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "pointConstraints.H"
|
#include "pointConstraints.H"
|
||||||
#include "surfaceFields.H"
|
#include "surfaceFields.H"
|
||||||
#include "processorPointPatch.H"
|
#include "processorPointPatch.H"
|
||||||
|
|||||||
@ -83,7 +83,7 @@ class FaceCellWave
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
//- Information tagged with a source or destination id.
|
//- Information tagged with a source or destination id.
|
||||||
// With std::pair as lightweight, moveable container.
|
// With std::pair as lightweight, movable container.
|
||||||
typedef std::pair<label,Type> taggedInfoType;
|
typedef std::pair<label,Type> taggedInfoType;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "indexedOctree.H"
|
#include "indexedOctree.H"
|
||||||
#include "DynamicList.H"
|
#include "DynamicList.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
#include "treeDataCell.H"
|
#include "treeDataCell.H"
|
||||||
#include "treeDataFace.H"
|
#include "treeDataFace.H"
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,6 @@ License
|
|||||||
|
|
||||||
#include "sampledSurface.H"
|
#include "sampledSurface.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,6 @@ License
|
|||||||
#include "sampledSurface.H"
|
#include "sampledSurface.H"
|
||||||
#include "fvMesh.H"
|
#include "fvMesh.H"
|
||||||
#include "MeshedSurface.H"
|
#include "MeshedSurface.H"
|
||||||
#include "demandDrivenData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user