diff --git a/applications/solvers/lagrangian/denseParticleFoam/Make/options b/applications/solvers/lagrangian/denseParticleFoam/Make/options index 41dc1c5010..f10997c7e6 100644 --- a/applications/solvers/lagrangian/denseParticleFoam/Make/options +++ b/applications/solvers/lagrangian/denseParticleFoam/Make/options @@ -8,8 +8,7 @@ EXE_INC = \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/phaseIncompressible/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ + -I$(LIB_SRC)/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude diff --git a/applications/solvers/lagrangian/particleFoam/Make/options b/applications/solvers/lagrangian/particleFoam/Make/options index 0b63a23dcd..b90a6be544 100644 --- a/applications/solvers/lagrangian/particleFoam/Make/options +++ b/applications/solvers/lagrangian/particleFoam/Make/options @@ -5,8 +5,7 @@ EXE_INC = \ -I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ + -I$(LIB_SRC)/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude EXE_LIBS = \ @@ -17,6 +16,5 @@ EXE_LIBS = \ -lincompressibleMomentumTransportModels \ -lphysicalProperties \ -lfiniteVolume \ - -lregionModels \ -lsurfaceFilmModels \ -lmeshTools diff --git a/applications/solvers/lagrangian/rhoParticleFoam/Make/options b/applications/solvers/lagrangian/rhoParticleFoam/Make/options index 66818faab7..0f9e69a699 100644 --- a/applications/solvers/lagrangian/rhoParticleFoam/Make/options +++ b/applications/solvers/lagrangian/rhoParticleFoam/Make/options @@ -9,8 +9,7 @@ EXE_INC = \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude + -I$(LIB_SRC)/surfaceFilmModels/lnInclude EXE_LIBS = \ -llagrangian \ @@ -24,5 +23,4 @@ EXE_LIBS = \ -lfvModels \ -lfvConstraints \ -lmeshTools \ - -lregionModels \ -lsurfaceFilmModels diff --git a/applications/solvers/modules/compressibleVoF/fvModels/VoFSurfaceFilm/Make/options b/applications/solvers/modules/compressibleVoF/fvModels/VoFSurfaceFilm/Make/options index ca87abba16..19f08c41fb 100644 --- a/applications/solvers/modules/compressibleVoF/fvModels/VoFSurfaceFilm/Make/options +++ b/applications/solvers/modules/compressibleVoF/fvModels/VoFSurfaceFilm/Make/options @@ -4,8 +4,7 @@ EXE_INC = \ -I$(LIB_SRC)/twoPhaseModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhaseMixture/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ + -I$(LIB_SRC)/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude diff --git a/applications/utilities/mesh/manipulation/transformPoints/Make/options b/applications/utilities/mesh/manipulation/transformPoints/Make/options index 568bd4c3d9..7d0cd4e3e1 100644 --- a/applications/utilities/mesh/manipulation/transformPoints/Make/options +++ b/applications/utilities/mesh/manipulation/transformPoints/Make/options @@ -1,10 +1,8 @@ EXE_INC = \ -I$(LIB_SRC)/meshTools/lnInclude \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude + -I$(LIB_SRC)/finiteVolume/lnInclude EXE_LIBS = \ -lmeshTools \ -lfiniteVolume \ - -lgenericPatchFields \ - -lregionModels + -lgenericPatchFields diff --git a/applications/utilities/parallelProcessing/decomposePar/Make/options b/applications/utilities/parallelProcessing/decomposePar/Make/options index 75d78ebfd1..c2ef088ccb 100644 --- a/applications/utilities/parallelProcessing/decomposePar/Make/options +++ b/applications/utilities/parallelProcessing/decomposePar/Make/options @@ -3,8 +3,7 @@ EXE_INC = \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/parallel/parallel/lnInclude \ -I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude \ - -I$(LIB_SRC)/lagrangian/basic/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude + -I$(LIB_SRC)/lagrangian/basic/lnInclude EXE_LIBS = \ -lfiniteVolume \ @@ -12,5 +11,4 @@ EXE_LIBS = \ -lparallel \ -ldecompositionMethods \ -llagrangian \ - -lregionModels \ -lgenericPatchFields diff --git a/applications/utilities/parallelProcessing/reconstructPar/Make/options b/applications/utilities/parallelProcessing/reconstructPar/Make/options index 40c6a86df5..69e39c6160 100644 --- a/applications/utilities/parallelProcessing/reconstructPar/Make/options +++ b/applications/utilities/parallelProcessing/reconstructPar/Make/options @@ -2,13 +2,11 @@ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/parallel/parallel/lnInclude \ - -I$(LIB_SRC)/lagrangian/basic/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude + -I$(LIB_SRC)/lagrangian/basic/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lmeshTools \ -lparallel \ -llagrangian \ - -lregionModels \ -lgenericPatchFields diff --git a/src/Allwmake b/src/Allwmake index bcc574e2d5..8bd5e628d1 100755 --- a/src/Allwmake +++ b/src/Allwmake @@ -66,7 +66,7 @@ MomentumTransportModels/Allwmake $targetType $* ThermophysicalTransportModels/Allwmake $targetType $* wmake $targetType radiationModels wmake $targetType combustionModels -regionModels/Allwmake $targetType $* +wmake $targetType surfaceFilmModels lagrangian/Allwmake $targetType $* mesh/Allwmake $targetType $* renumber/Allwmake $targetType $* diff --git a/src/functionObjects/lagrangian/Make/options b/src/functionObjects/lagrangian/Make/options index d4f85e14d4..4ab6226a04 100644 --- a/src/functionObjects/lagrangian/Make/options +++ b/src/functionObjects/lagrangian/Make/options @@ -5,8 +5,7 @@ EXE_INC = \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/parcel/lnInclude \ -I$(LIB_SRC)/lagrangian/DSMC/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude + -I$(LIB_SRC)/surfaceFilmModels/lnInclude LIB_LIBS = \ -lfiniteVolume \ @@ -15,5 +14,4 @@ LIB_LIBS = \ -llagrangian \ -llagrangianParcel \ -llagrangianParcelTurbulence \ - -lregionModels \ -lsurfaceFilmModels diff --git a/src/lagrangian/parcel/Make/options b/src/lagrangian/parcel/Make/options index da5e9a09a1..61df748e55 100644 --- a/src/lagrangian/parcel/Make/options +++ b/src/lagrangian/parcel/Make/options @@ -7,8 +7,7 @@ EXE_INC = \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/multicomponentThermo/lnInclude \ -I$(LIB_SRC)/radiationModels/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ + -I$(LIB_SRC)/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude @@ -22,7 +21,6 @@ LIB_LIBS = \ -lmulticomponentThermophysicalModels \ -lradiationModels \ -lphysicalProperties \ - -lregionModels \ -lsurfaceFilmModels \ -lsampling \ -lfiniteVolume \ diff --git a/src/lagrangian/parcelTurbulence/Make/options b/src/lagrangian/parcelTurbulence/Make/options index 39360da895..c390bddfe7 100644 --- a/src/lagrangian/parcelTurbulence/Make/options +++ b/src/lagrangian/parcelTurbulence/Make/options @@ -10,8 +10,7 @@ EXE_INC = \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ + -I$(LIB_SRC)/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude @@ -29,7 +28,6 @@ LIB_LIBS = \ -lincompressibleMomentumTransportModels \ -lcompressibleMomentumTransportModels \ -lphysicalProperties \ - -lregionModels \ -lsurfaceFilmModels \ -lsampling \ -lfiniteVolume \ diff --git a/src/regionModels/Allwclean b/src/regionModels/Allwclean deleted file mode 100755 index 5be3d3a625..0000000000 --- a/src/regionModels/Allwclean +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory -makeType=${1:-libso} - -wclean $makeType regionModel -wclean $makeType surfaceFilmModels -wclean $makeType thermalBaffle - -#------------------------------------------------------------------------------ diff --git a/src/regionModels/Allwmake b/src/regionModels/Allwmake deleted file mode 100755 index 23978b3b4c..0000000000 --- a/src/regionModels/Allwmake +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - -# Parse arguments for library compilation -. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments - -wmake $targetType regionModel -wmake $targetType surfaceFilmModels -wmake $targetType thermalBaffle - -#------------------------------------------------------------------------------ diff --git a/src/regionModels/regionModel/Make/files b/src/regionModels/regionModel/Make/files deleted file mode 100644 index c0dc3c8404..0000000000 --- a/src/regionModels/regionModel/Make/files +++ /dev/null @@ -1,4 +0,0 @@ -regionModel/regionModel.C -singleLayerRegionModel/singleLayerRegionModel.C - -LIB = $(FOAM_LIBBIN)/libregionModels diff --git a/src/regionModels/regionModel/Make/options b/src/regionModels/regionModel/Make/options deleted file mode 100644 index a3ae8da833..0000000000 --- a/src/regionModels/regionModel/Make/options +++ /dev/null @@ -1,7 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude - -LIB_LIBS = \ - -lfiniteVolume \ - -lmeshTools diff --git a/src/regionModels/regionModel/singleLayerRegionModel/singleLayerRegionModel.C b/src/regionModels/regionModel/singleLayerRegionModel/singleLayerRegionModel.C deleted file mode 100644 index 0e5b7c6fd3..0000000000 --- a/src/regionModels/regionModel/singleLayerRegionModel/singleLayerRegionModel.C +++ /dev/null @@ -1,180 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "singleLayerRegionModel.H" -#include "fvMesh.H" -#include "surfaceFields.H" -#include "Time.H" -#include "zeroGradientFvPatchFields.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ - defineTypeNameAndDebug(singleLayerRegionModel, 0); -} -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -Foam::regionModels::singleLayerRegionModel::singleLayerRegionModel -( - const fvMesh& mesh, - const word& regionType, - const word& modelName, - bool readFields -) -: - regionModel(mesh, regionType, modelName, false), - nHat_ - ( - IOobject - ( - "nHat", - time_.timeName(), - regionMesh() - ), - regionMesh(), - dimensionedVector(dimless, Zero), - zeroGradientFvPatchField::typeName - ), - magSf_ - ( - IOobject - ( - "magSf", - time_.timeName(), - regionMesh() - ), - regionMesh(), - dimensionedScalar(dimArea, 0) - ), - VbyA_ - ( - IOobject - ( - "VbyA", - time_.timeName(), - regionMesh() - ), - regionMesh(), - dimensionedScalar(dimLength, 0), - zeroGradientFvPatchField::typeName - ), - passivePatchIDs_() -{ - label nBoundaryFaces = 0; - const polyBoundaryMesh& rbm = regionMesh().boundaryMesh(); - forAll(intCoupledPatchIDs_, i) - { - const label patchi = intCoupledPatchIDs_[i]; - const polyPatch& pp = rbm[patchi]; - const labelList& fCells = pp.faceCells(); - - nBoundaryFaces += fCells.size(); - - UIndirectList(nHat_, fCells) = pp.faceNormals(); - UIndirectList(magSf_, fCells) = pp.magFaceAreas(); - } - nHat_.correctBoundaryConditions(); - - if (nBoundaryFaces != regionMesh().nCells()) - { - FatalErrorInFunction - << "Number of primary region coupled boundary faces not equal to " - << "the number of cells in the local region" << nl << nl - << "Number of cells = " << regionMesh().nCells() << nl - << "Boundary faces = " << nBoundaryFaces << nl - << abort(FatalError); - } - - passivePatchIDs_.setSize(intCoupledPatchIDs_.size(), -1); - forAll(intCoupledPatchIDs_, i) - { - const label patchi = intCoupledPatchIDs_[i]; - const polyPatch& ppIntCoupled = rbm[patchi]; - if (ppIntCoupled.size() > 0) - { - const label cellId = rbm[patchi].faceCells()[0]; - const cell& cFaces = regionMesh().cells()[cellId]; - const label faceO - ( - cFaces.opposingFaceLabel - ( - ppIntCoupled.start(), regionMesh().faces() - ) - ); - passivePatchIDs_[i] = rbm.whichPatch(faceO); - } - } - - Pstream::listCombineGather(passivePatchIDs_, maxEqOp