mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
foamCleanTutorials: Simplified cleaning the mesh by removing the constant/polyMesh directory
This commit is contained in:
@ -68,14 +68,7 @@ cleanCase()
|
|||||||
|
|
||||||
if [ -d constant/polyMesh ]
|
if [ -d constant/polyMesh ]
|
||||||
then
|
then
|
||||||
(cd constant/polyMesh && \
|
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||||
rm -rf \
|
|
||||||
allOwner* cell* face* meshModifiers* \
|
|
||||||
owner* neighbour* point* edge* \
|
|
||||||
cellLevel* pointLevel* refinementHistory* level0Edge* surfaceIndex* sets \
|
|
||||||
boundary \
|
|
||||||
> /dev/null 2>&1 \
|
|
||||||
)
|
|
||||||
fi
|
fi
|
||||||
if [ -d constant ]
|
if [ -d constant ]
|
||||||
then
|
then
|
||||||
|
|||||||
@ -1,93 +0,0 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
|
||||||
| ========= | |
|
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
||||||
| \\ / O peration | Version: dev |
|
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
||||||
| \\/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class dictionary;
|
|
||||||
object blockMeshDict;
|
|
||||||
}
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
convertToMeters 1;
|
|
||||||
|
|
||||||
vertices
|
|
||||||
(
|
|
||||||
(-5 -4 0)
|
|
||||||
(15 -4 0)
|
|
||||||
(15 4 0)
|
|
||||||
(-5 4 0)
|
|
||||||
(-5 -4 8)
|
|
||||||
(15 -4 8)
|
|
||||||
(15 4 8)
|
|
||||||
(-5 4 8)
|
|
||||||
);
|
|
||||||
|
|
||||||
blocks
|
|
||||||
(
|
|
||||||
hex (0 1 2 3 4 5 6 7) (20 10 10) simpleGrading (1 1 1)
|
|
||||||
);
|
|
||||||
|
|
||||||
edges
|
|
||||||
(
|
|
||||||
);
|
|
||||||
|
|
||||||
boundary
|
|
||||||
(
|
|
||||||
front
|
|
||||||
{
|
|
||||||
type symmetryPlane;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
(3 7 6 2)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
back
|
|
||||||
{
|
|
||||||
type symmetryPlane;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
(1 5 4 0)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type patch;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
(0 4 7 3)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type patch;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
(2 6 5 1)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
lowerWall
|
|
||||||
{
|
|
||||||
type wall;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
(0 3 2 1)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
upperWall
|
|
||||||
{
|
|
||||||
type symmetryPlane;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
(4 5 6 7)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
Reference in New Issue
Block a user