mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: icoFoam tutorials: clean up script
This commit is contained in:
@ -30,4 +30,7 @@ do
|
||||
removeCase $caseName
|
||||
done
|
||||
|
||||
|
||||
(cd elbow && ./Allclean)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -18,12 +18,6 @@ runMapFieldsConsistent()
|
||||
mapFieldsNew $1 -case $2 -sourceTime latestTime -consistent > $2/log.mapFields 2>&1
|
||||
}
|
||||
|
||||
runFluentMeshToFoam()
|
||||
{
|
||||
echo "fluentMeshToFoam: converting mesh $2"
|
||||
fluentMeshToFoam $2 -case $1 > $1/log.fluentMeshToFoam 2>&1
|
||||
}
|
||||
|
||||
copySolutionDirs()
|
||||
{
|
||||
echo "Copying $2/0* directory to $1"
|
||||
@ -95,16 +89,8 @@ do
|
||||
( cd $caseName && runApplication `getApplication` )
|
||||
done
|
||||
|
||||
|
||||
# elbow case for testing Fluent-FOAM conversion tools
|
||||
|
||||
runFluentMeshToFoam elbow elbow/elbow.msh
|
||||
|
||||
(
|
||||
cd elbow || exit
|
||||
|
||||
runApplication `getApplication`
|
||||
runApplication foamMeshToFluent
|
||||
runApplication foamDataToFluent
|
||||
)
|
||||
(cd elbow && ./Allrun)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
11
tutorials/incompressible/icoFoam/elbow/Allclean
Executable file
11
tutorials/incompressible/icoFoam/elbow/Allclean
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -f constant/polyMesh/boundary
|
||||
rm -rf fluentInterface
|
||||
cleanCase
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
15
tutorials/incompressible/icoFoam/elbow/Allrun
Executable file
15
tutorials/incompressible/icoFoam/elbow/Allrun
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application directory
|
||||
application=`getApplication`
|
||||
|
||||
runApplication fluentMeshToFoam elbow.msh
|
||||
runApplication "$application"
|
||||
runApplication foamMeshToFluent
|
||||
runApplication foamDataToFluent
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -1,58 +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 polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
6
|
||||
(
|
||||
wall-4
|
||||
{
|
||||
type wall;
|
||||
nFaces 100;
|
||||
startFace 1300;
|
||||
}
|
||||
velocity-inlet-5
|
||||
{
|
||||
type patch;
|
||||
nFaces 8;
|
||||
startFace 1400;
|
||||
}
|
||||
velocity-inlet-6
|
||||
{
|
||||
type patch;
|
||||
nFaces 4;
|
||||
startFace 1408;
|
||||
}
|
||||
pressure-outlet-7
|
||||
{
|
||||
type patch;
|
||||
nFaces 8;
|
||||
startFace 1412;
|
||||
}
|
||||
wall-8
|
||||
{
|
||||
type wall;
|
||||
nFaces 34;
|
||||
startFace 1420;
|
||||
}
|
||||
frontAndBackPlanes
|
||||
{
|
||||
type empty;
|
||||
nFaces 1836;
|
||||
startFace 1454;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user