extrudeToRegionMesh: Added option to extrude patches
This greatly simplifies most setups in which it is a patch (or patches) of the original mesh which are extruded. It prevents the need for a topoSet configuration to convert the patch into a zone or set.
This commit is contained in:
@ -22,7 +22,7 @@ boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
"(sides|frontAndBack|wallFilmFaces_top|cylinderFilmFaces_top)"
|
||||
"(sides|frontAndBack|walls_top|cylinder_top)"
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
"(wallFilmFaces_top|cylinderFilmFaces_top)"
|
||||
"(walls_top|cylinder_top)"
|
||||
{
|
||||
type slip;
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
"(sides|frontAndBack|wallFilmFaces_top|cylinderFilmFaces_top)"
|
||||
"(sides|frontAndBack|walls_top|cylinder_top)"
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication extrudeToRegionMesh -overwrite
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
@ -5,7 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication decomposePar -noFields
|
||||
runParallel topoSet
|
||||
runParallel extrudeToRegionMesh -overwrite
|
||||
|
||||
runApplication -s fields decomposePar -fields -copyZero
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
|
||||
region wallFilm;
|
||||
|
||||
faceZones (wallFilmFaces cylinderFilmFaces);
|
||||
patches (walls cylinder);
|
||||
|
||||
extrudeModel linearNormal;
|
||||
|
||||
|
||||
@ -1,49 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name wallFilmFaceSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch walls;
|
||||
}
|
||||
{
|
||||
name wallFilmFaces;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet wallFilmFaceSet;
|
||||
}
|
||||
{
|
||||
name cylinderFilmFaceSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch cylinder;
|
||||
}
|
||||
{
|
||||
name cylinderFilmFaces;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet cylinderFilmFaceSet;
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -14,9 +14,6 @@ runParallel topoSet
|
||||
# Create the boxes and add their surfaces to the boxes patch
|
||||
runParallel subsetMesh notBoxes -patch boxes -overwrite -noFields
|
||||
|
||||
# Create zones from the floor and the boxes
|
||||
runParallel -s wallFilm topoSet -dict topoSetDict.wallFilm
|
||||
|
||||
# Create the film mesh
|
||||
runParallel extrudeToRegionMesh -overwrite
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
|
||||
region wallFilm;
|
||||
|
||||
faceZones (floorFilmFaces boxesFilmFaces);
|
||||
patches (floor boxes);
|
||||
|
||||
extrudeModel linearNormal;
|
||||
|
||||
|
||||
@ -1,49 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name floorFilmFaceSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch floor;
|
||||
}
|
||||
{
|
||||
name floorFilmFaces;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet floorFilmFaceSet;
|
||||
}
|
||||
{
|
||||
name boxesFilmFaceSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch boxes;
|
||||
}
|
||||
{
|
||||
name boxesFilmFaces;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet boxesFilmFaceSet;
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -39,7 +39,7 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ boundaryField
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
|
||||
@ -37,7 +37,7 @@ boundaryField
|
||||
type noSlip;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type noSlip;
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ boundaryField
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type calculated;
|
||||
value $internalField;
|
||||
|
||||
@ -37,7 +37,7 @@ boundaryField
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
|
||||
region0_to_wallFilm_wallFilmFaces
|
||||
region0_to_wallFilm_walls
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
|
||||
@ -36,12 +36,12 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
wallFilmFaces_top
|
||||
walls_top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
wallFilm_to_region0_wallFilmFaces
|
||||
wallFilm_to_region0_walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -36,12 +36,12 @@ boundaryField
|
||||
type noSlip;
|
||||
}
|
||||
|
||||
wallFilmFaces_top
|
||||
walls_top
|
||||
{
|
||||
type slip;
|
||||
}
|
||||
|
||||
wallFilm_to_region0_wallFilmFaces
|
||||
wallFilm_to_region0_walls
|
||||
{
|
||||
type noSlip;
|
||||
}
|
||||
|
||||
@ -36,12 +36,12 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
wallFilmFaces_top
|
||||
walls_top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
wallFilm_to_region0_wallFilmFaces
|
||||
wallFilm_to_region0_walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication extrudeToRegionMesh -overwrite
|
||||
|
||||
paraFoam -touchAll
|
||||
|
||||
@ -82,7 +82,7 @@ boundary
|
||||
);
|
||||
}
|
||||
|
||||
filmWalls
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
|
||||
region wallFilm;
|
||||
|
||||
faceZones (wallFilmFaces);
|
||||
patches (walls);
|
||||
|
||||
extrudeModel linearNormal;
|
||||
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name wallFilmFaceSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch filmWalls;
|
||||
}
|
||||
{
|
||||
name wallFilmFaces;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet wallFilmFaceSet;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication extrudeToRegionMesh -overwrite
|
||||
|
||||
paraFoam -touchAll
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
|
||||
region wallFilm;
|
||||
|
||||
faceZones (walls);
|
||||
patches (walls);
|
||||
|
||||
extrudeModel linearNormal;
|
||||
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name walls;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch walls;
|
||||
}
|
||||
{
|
||||
name walls;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet walls;
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user