mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: mesh: clean up tutorials
This commit is contained in:
committed by
Andrew Heather
parent
6120e13d29
commit
3a858ac682
@ -5,8 +5,7 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -rf constant/triSurface/unit_cube.eMesh
|
||||
rm -rf MeshedSurface*.obj
|
||||
rm -rf constant
|
||||
rm -f MeshedSurface*.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -3,9 +3,18 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
mkdir -p constant/triSurface
|
||||
|
||||
cp -f \
|
||||
"$FOAM_TUTORIALS"/resources/geometry/unit_cube.stl.gz \
|
||||
constant/triSurface
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
|
||||
runApplication foamyQuadMesh -overwrite
|
||||
|
||||
runApplication extrude2DMesh -overwrite polyMesh2D
|
||||
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,88 +0,0 @@
|
||||
solid inlet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex 1 1 0.5
|
||||
vertex 1 0 0.5
|
||||
vertex 1 0 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 -0
|
||||
outer loop
|
||||
vertex 1 1 -0.5
|
||||
vertex 1 1 0.5
|
||||
vertex 1 0 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
endsolid inlet
|
||||
solid cube.tri
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex 0 0 -0.5
|
||||
vertex 0 0 0.5
|
||||
vertex 0 1 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex 0 1 -0.5
|
||||
vertex 0 0 -0.5
|
||||
vertex 0 1 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 0
|
||||
outer loop
|
||||
vertex 1 1 0.5
|
||||
vertex 1 1 -0.5
|
||||
vertex 0 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 1 0
|
||||
outer loop
|
||||
vertex 0 1 0.5
|
||||
vertex 1 1 0.5
|
||||
vertex 0 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0 0 -0.5
|
||||
vertex 1 0 -0.5
|
||||
vertex 1 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0 0 0.5
|
||||
vertex 0 0 -0.5
|
||||
vertex 1 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 1 1 0.5
|
||||
vertex 0 1 0.5
|
||||
vertex 0 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex 1 0 0.5
|
||||
vertex 1 1 0.5
|
||||
vertex 0 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex 0 0 -0.5
|
||||
vertex 0 1 -0.5
|
||||
vertex 1 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex 1 0 -0.5
|
||||
vertex 0 0 -0.5
|
||||
vertex 1 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
endsolid cube.tri
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object foamyQuadMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -45,4 +44,5 @@ snGradSchemes
|
||||
default none;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -10,13 +10,13 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user