generic.*Patch: Moved to new genericPatches library

genericPatches is linked into mesh generation and manipulation utilities but not
solvers so that the solvers now check for the availability of the specified
patch types.  Bugs in the tutorials exposed by this check have been corrected.
This commit is contained in:
Henry Weller
2023-03-03 09:03:47 +00:00
parent 46e312679e
commit 25dd524c84
55 changed files with 59 additions and 13 deletions

View File

@ -8,6 +8,7 @@ EXE_LIBS = \
-lcompressibleMomentumTransportModels \ -lcompressibleMomentumTransportModels \
-lfluidThermophysicalModels \ -lfluidThermophysicalModels \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ldynamicMesh \ -ldynamicMesh \
-lfiniteVolume \ -lfiniteVolume \
-lfvModels -lfvModels

View File

@ -7,5 +7,6 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ltriSurface \ -ltriSurface \
-llagrangian -llagrangian

View File

@ -6,4 +6,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-lfiniteVolume -lfiniteVolume

View File

@ -6,4 +6,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatches \
-ldynamicMesh -ldynamicMesh

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ldynamicMesh -ldynamicMesh

View File

@ -7,5 +7,6 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatchFields -lgenericPatchFields

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -8,5 +8,6 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ltriSurface \ -ltriSurface \
-llagrangian -llagrangian

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -5,5 +5,6 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ldynamicMesh \ -ldynamicMesh \
-lconversion -lconversion

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ldynamicMesh -ldynamicMesh

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-lsurfMesh -lsurfMesh

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lconversion -lconversion

View File

@ -2,4 +2,5 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lconversion -lconversion

View File

@ -11,4 +11,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lconversion -lconversion

View File

@ -7,5 +7,6 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lblockMesh \ -lblockMesh \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-lfileFormats \ -lfileFormats \
-ldynamicMesh -ldynamicMesh

View File

@ -9,4 +9,5 @@ EXE_LIBS = \
-lsurfMesh \ -lsurfMesh \
-ldynamicMesh \ -ldynamicMesh \
-lextrude2DMesh \ -lextrude2DMesh \
-lgenericPatches \
-lextrudeModel -lextrudeModel

View File

@ -11,4 +11,5 @@ EXE_LIBS = \
-lsurfMesh \ -lsurfMesh \
-lmeshTools \ -lmeshTools \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lextrudeModel -lextrudeModel

View File

@ -9,5 +9,6 @@ EXE_LIBS = \
-lfileFormats \ -lfileFormats \
-lfiniteVolume \ -lfiniteVolume \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ldynamicMesh \ -ldynamicMesh \
-lextrudeModel -lextrudeModel

View File

@ -10,6 +10,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatchFields \
-ldecompositionMethods \ -ldecompositionMethods \
-L$(FOAM_LIBBIN)/dummy -lscotchDecomp -lptscotchDecomp \ -L$(FOAM_LIBBIN)/dummy -lscotchDecomp -lptscotchDecomp \
-lmeshTools \ -lmeshTools \

View File

@ -3,4 +3,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -8,6 +8,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-lsampling \ -lsampling \
-lsurfMesh \ -lsurfMesh \
-ldynamicMesh -ldynamicMesh

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -3,5 +3,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
\ -lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -5,4 +5,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ltriSurface \ -ltriSurface \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -3,4 +3,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lfiniteVolume -lfiniteVolume

View File

@ -5,5 +5,6 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-lsnappyHexMesh \ -lsnappyHexMesh \
-ltriSurface -ltriSurface

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -2,4 +2,5 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lgenericPatches \
-lfiniteVolume -lfiniteVolume

View File

@ -6,4 +6,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lmeshTools \ -lmeshTools \
-lgenericPatches \
-ldynamicMesh -ldynamicMesh

View File

@ -4,4 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -3,4 +3,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -6,4 +6,5 @@ EXE_INC = \
#EXE_INC += -DDEBUG_ORDER #EXE_INC += -DDEBUG_ORDER
EXE_LIBS = \ EXE_LIBS = \
-lgenericPatches \
-lmeshTools -lmeshTools

View File

@ -29,6 +29,7 @@ wmake $targetType OpenFOAM
wmake $targetType fileFormats wmake $targetType fileFormats
wmake $targetType surfMesh wmake $targetType surfMesh
wmake $targetType triSurface wmake $targetType triSurface
wmake $targetType genericPatches
wmake $targetType meshTools wmake $targetType meshTools
# Decomposition methods needed by dummyThirdParty # Decomposition methods needed by dummyThirdParty

View File

@ -478,7 +478,6 @@ $(polyPatches)/polyPatch/polyPatchNew.C
basicPolyPatches = $(polyPatches)/basic basicPolyPatches = $(polyPatches)/basic
$(basicPolyPatches)/coupled/coupledPolyPatch.C $(basicPolyPatches)/coupled/coupledPolyPatch.C
$(basicPolyPatches)/generic/genericPolyPatch.C
constraintPolyPatches = $(polyPatches)/constraint constraintPolyPatches = $(polyPatches)/constraint
$(constraintPolyPatches)/cyclic/cyclicTransform.C $(constraintPolyPatches)/cyclic/cyclicTransform.C
@ -606,7 +605,6 @@ $(pointPatches)/facePointPatch/facePointPatchNew.C
basicPointPatches = $(pointPatches)/basic basicPointPatches = $(pointPatches)/basic
$(basicPointPatches)/coupled/coupledPointPatch.C $(basicPointPatches)/coupled/coupledPointPatch.C
$(basicPointPatches)/generic/genericPointPatch.C
constraintPointPatches = $(pointPatches)/constraint constraintPointPatches = $(pointPatches)/constraint
$(constraintPointPatches)/cyclic/cyclicPointPatch.C $(constraintPointPatches)/cyclic/cyclicPointPatch.C

View File

@ -16,7 +16,6 @@ $(fvPatches)/fvPatch/fvPatchNew.C
basicFvPatches = $(fvPatches)/basic basicFvPatches = $(fvPatches)/basic
$(basicFvPatches)/coupled/coupledFvPatch.C $(basicFvPatches)/coupled/coupledFvPatch.C
$(basicFvPatches)/generic/genericFvPatch.C
constraintFvPatches = $(fvPatches)/constraint constraintFvPatches = $(fvPatches)/constraint
$(constraintFvPatches)/cyclic/cyclicFvPatch.C $(constraintFvPatches)/cyclic/cyclicFvPatch.C

View File

@ -1,3 +1,4 @@
genericFvPatch/genericFvPatch.C
genericPatchField/genericPatchField.C genericPatchField/genericPatchField.C
genericFvPatchField/genericFvPatchFields.C genericFvPatchField/genericFvPatchFields.C
genericPointPatchField/genericPointPatchFields.C genericPointPatchField/genericPointPatchFields.C

View File

@ -1,5 +1,7 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/genericPatches/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lgenericPatches \
-lfiniteVolume -lfiniteVolume

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -0,0 +1,4 @@
genericPolyPatch/genericPolyPatch.C
genericPointPatch/genericPointPatch.C
LIB = $(FOAM_LIBBIN)/libgenericPatches

View File

@ -0,0 +1,3 @@
EXE_INC =
LIB_LIBS =

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy the source case # Copy the source case
isTest "$@" && path=.. || path=$FOAM_TUTORIALS/modules/isothermalFilm path=$FOAM_TUTORIALS/modules/isothermalFilm
cp -r $path/rivuletPanel/constant . cp -r $path/rivuletPanel/constant .
cp -r $path/rivuletPanel/system . cp -r $path/rivuletPanel/system .
cp -r $path/rivuletPanel/0 . cp -r $path/rivuletPanel/0 .

View File

@ -60,7 +60,7 @@ castellatedMeshControls
patch0 patch0
{ {
level (2 2); level (2 2);
patchInfo { type slip; } patchInfo { type wall; }
} }
patch1 patch1

View File

@ -136,7 +136,7 @@ boundary
( (
inlet inlet
{ {
type pacth; type patch;
faces faces
( (
(0 1 2 3) (0 1 2 3)