Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Chris Greenshields
2021-06-21 16:45:10 +01:00
18 changed files with 50 additions and 47 deletions

View File

@ -38,7 +38,7 @@ Description
#include "searchableSurfaces.H"
#include "refinementSurfaces.H"
#include "refinementFeatures.H"
#include "shellSurfaces.H"
#include "refinementRegions.H"
#include "decompositionMethod.H"
#include "noDecomp.H"
#include "fvMeshDistribute.H"
@ -1005,7 +1005,7 @@ int main(int argc, char *argv[])
// ~~~~~~~~~~~~~~~~~~~~~~
Info<< "Reading refinement regions..." << endl;
shellSurfaces shells
refinementRegions shells
(
allGeometry,
refineDict.found("refinementRegions")

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -27,8 +27,6 @@ License
#include "FieldM.H"
#include "dictionary.H"
#include "contiguous.H"
#include "mapDistributeBase.H"
#include "flipOp.H"
// * * * * * * * * * * * * * * * Static Members * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -33,6 +33,7 @@ Description
#define fieldMapper_H
#include "Field.H"
#include "fieldTypes.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -25,7 +25,6 @@ License
#include "setSizeFieldMapper.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::setSizeFieldMapper::setSizeFieldMapper(const label size)

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "faceMapper.H"
#include "fieldTypes.H"
#include "demandDrivenData.H"
#include "polyMesh.H"
#include "mapPolyMesh.H"

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "TableReader.H"
#include "fieldTypes.H"
#include "EmbeddedTableReader.H"
#include "FoamTableReader.H"
#include "CsvTableReader.H"

View File

@ -19,7 +19,7 @@ meshRefinement/patchFaceOrientation.C
refinementFeatures/refinementFeatures.C
refinementSurfaces/surfaceZonesInfo.C
refinementSurfaces/refinementSurfaces.C
shellSurfaces/shellSurfaces.C
refinementRegions/refinementRegions.C
trackedParticle/trackedParticle.C
externalDisplacementMeshMover/displacementMeshMoverMotionSolver.C

View File

@ -1165,7 +1165,7 @@ Foam::meshRefinement::meshRefinement
const bool overwrite,
const refinementSurfaces& surfaces,
const refinementFeatures& features,
const shellSurfaces& shells
const refinementRegions& shells
)
:
mesh_(mesh),
@ -2242,7 +2242,7 @@ void Foam::meshRefinement::distribute(const mapDistributePolyMesh& map)
treeBoundBox& bb = meshBb[0];
bb = treeBoundBox(mesh_.points()).extend(1e-4);
// Distribute all geometry (so refinementSurfaces and shellSurfaces)
// Distribute all geometry (so refinementSurfaces and refinementRegions)
searchableSurfaces& geometry =
const_cast<searchableSurfaces&>(surfaces_.geometry());

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -63,7 +63,7 @@ class mapDistributePolyMesh;
class decompositionMethod;
class refinementSurfaces;
class refinementFeatures;
class shellSurfaces;
class refinementRegions;
class removeCells;
class fvMeshDistribute;
class searchableSurface;
@ -178,7 +178,7 @@ private:
const refinementFeatures& features_;
//- All shell-refinement interaction
const shellSurfaces& shells_;
const refinementRegions& shells_;
//- Refinement engine
hexRef8 meshCutter_;
@ -588,7 +588,7 @@ public:
const bool overwrite,
const refinementSurfaces&,
const refinementFeatures&,
const shellSurfaces&
const refinementRegions&
);
//- Disallow default bitwise copy construction
@ -639,7 +639,7 @@ public:
}
//- Reference to refinement shells (regions)
const shellSurfaces& shells() const
const refinementRegions& shells() const
{
return shells_;
}

View File

@ -29,7 +29,7 @@ License
#include "Time.H"
#include "refinementSurfaces.H"
#include "refinementFeatures.H"
#include "shellSurfaces.H"
#include "refinementRegions.H"
#include "faceSet.H"
#include "decompositionMethod.H"
#include "fvMeshDistribute.H"

View File

@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "shellSurfaces.H"
#include "refinementRegions.H"
#include "refinementSurfaces.H"
#include "searchableSurfaces.H"
#include "orientedSurface.H"
@ -36,7 +36,7 @@ namespace Foam
template<>
const char*
NamedEnum<shellSurfaces::refineMode, 5>::
NamedEnum<refinementRegions::refineMode, 5>::
names[] =
{
"inside",
@ -48,13 +48,13 @@ names[] =
}
const Foam::NamedEnum<Foam::shellSurfaces::refineMode, 5>
Foam::shellSurfaces::refineModeNames_;
const Foam::NamedEnum<Foam::refinementRegions::refineMode, 5>
Foam::refinementRegions::refineModeNames_;
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::shellSurfaces::setAndCheckLevels
void Foam::refinementRegions::setAndCheckLevels
(
const label shelli,
const dictionary& dict
@ -205,7 +205,7 @@ void Foam::shellSurfaces::setAndCheckLevels
}
void Foam::shellSurfaces::orient()
void Foam::refinementRegions::orient()
{
// Determine outside point.
boundBox overallBb = boundBox::invertedBox;
@ -279,7 +279,7 @@ void Foam::shellSurfaces::orient()
// sideness which should not be set at this point.
// !!Should check!)
Info<< "shellSurfaces : Flipped orientation of surface "
Info<< "refinementRegions : Flipped orientation of surface "
<< s.name()
<< " so point " << outsidePt << " is outside." << endl;
}
@ -289,7 +289,7 @@ void Foam::shellSurfaces::orient()
}
Foam::scalar Foam::shellSurfaces::interpolate
Foam::scalar Foam::refinementRegions::interpolate
(
const triSurfaceMesh& tsm,
const triSurfacePointScalarField& closeness,
@ -314,7 +314,7 @@ Foam::scalar Foam::shellSurfaces::interpolate
}
void Foam::shellSurfaces::findHigherLevel
void Foam::refinementRegions::findHigherLevel
(
const pointField& pt,
const label shelli,
@ -515,7 +515,7 @@ void Foam::shellSurfaces::findHigherLevel
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::shellSurfaces::shellSurfaces
Foam::refinementRegions::refinementRegions
(
const searchableSurfaces& allGeometry,
const dictionary& shellsDict
@ -645,7 +645,7 @@ Foam::shellSurfaces::shellSurfaces
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::label Foam::shellSurfaces::maxLevel() const
Foam::label Foam::refinementRegions::maxLevel() const
{
label overallMax = 0;
@ -658,7 +658,7 @@ Foam::label Foam::shellSurfaces::maxLevel() const
}
void Foam::shellSurfaces::findHigherLevel
void Foam::refinementRegions::findHigherLevel
(
const pointField& pt,
const labelList& ptLevel,

View File

@ -22,19 +22,19 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::shellSurfaces
Foam::refinementRegions
Description
Encapsulates queries for volume refinement ('refine all cells within
shell').
SourceFiles
shellSurfaces.C
refinementRegions.C
\*---------------------------------------------------------------------------*/
#ifndef shellSurfaces_H
#define shellSurfaces_H
#ifndef refinementRegions_H
#define refinementRegions_H
#include "Tuple2.H"
#include "triSurfaceMesh.H"
@ -48,10 +48,10 @@ namespace Foam
class searchableSurfaces;
/*---------------------------------------------------------------------------*\
Class shellSurfaces Declaration
Class refinementRegions Declaration
\*---------------------------------------------------------------------------*/
class shellSurfaces
class refinementRegions
{
public:
@ -134,7 +134,7 @@ public:
// Constructors
//- Construct from geometry and dictionary
shellSurfaces
refinementRegions
(
const searchableSurfaces& allGeometry,
const dictionary& shellsDict

View File

@ -26,7 +26,7 @@ License
#include "refinementSurfaces.H"
#include "Time.H"
#include "searchableSurfaces.H"
#include "shellSurfaces.H"
#include "refinementRegions.H"
#include "triSurfaceMesh.H"
#include "labelPair.H"
#include "searchableSurfacesQueries.H"
@ -352,7 +352,7 @@ Foam::refinementSurfaces::refinementSurfaces
// // Pre-calculate the refinement level for every element
// void Foam::refinementSurfaces::wantedRefinementLevel
// (
// const shellSurfaces& shells,
// const refinementRegions& shells,
// const label surfI,
// const List<pointIndexHit>& info, // Indices
// const pointField& ctrs, // Representative coordinate
@ -393,7 +393,7 @@ Foam::refinementSurfaces::refinementSurfaces
// surface.
void Foam::refinementSurfaces::setMinLevelFields
(
const shellSurfaces& shells
const refinementRegions& shells
)
{
forAll(surfaces_, surfI)

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -49,7 +49,7 @@ namespace Foam
{
class searchableSurfaces;
class shellSurfaces;
class refinementRegions;
class triSurfaceMesh;
typedef List<point> pointList;
@ -214,7 +214,7 @@ public:
//- Calculate minLevelFields
void setMinLevelFields
(
const shellSurfaces& shells
const refinementRegions& shells
);
////- Helper: count number of triangles per region

View File

@ -32,7 +32,7 @@ License
#include "refinementParameters.H"
#include "refinementSurfaces.H"
#include "refinementFeatures.H"
#include "shellSurfaces.H"
#include "refinementRegions.H"
#include "mapDistributePolyMesh.H"
#include "unitConversion.H"
#include "snapParameters.H"

View File

@ -25,6 +25,7 @@ License
#include "vtkSurfaceWriter.H"
#include "OFstream.H"
#include "boolList.H"
#include "OSspecific.H"
#include "makeSurfaceWriterMethods.H"
#include "vtkWritePolyData.H"

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2020-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -39,6 +39,7 @@ SourceFiles
#include "face.H"
#include "pointField.H"
#include "DynamicList.H"
#include "boolList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -81,6 +81,7 @@ SourceFiles
#include "waveModel.H"
#include "IOdictionary.H"
#include "tensor.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //