Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openfoam
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
334
Issues
334
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Development
openfoam
Commits
7051abc3
Commit
7051abc3
authored
Aug 04, 2020
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TUT: fix run/clean scripts syntax
parent
14c95824
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
33 deletions
+44
-33
tutorials/incompressible/adjointOptimisationFoam/sensitivityMaps/sbend/laminar/Allclean
...ntOptimisationFoam/sensitivityMaps/sbend/laminar/Allclean
+3
-1
tutorials/incompressible/pimpleFoam/laminar/contactAngleCavity/Allclean
...mpressible/pimpleFoam/laminar/contactAngleCavity/Allclean
+1
-1
tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/Allrun
...r/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/Allrun
+3
-2
tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/makeMesh
...mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/makeMesh
+3
-2
tutorials/mesh/refineMesh/refineFieldDirs/Allrun
tutorials/mesh/refineMesh/refineFieldDirs/Allrun
+18
-18
tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean
.../compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean
+1
-0
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge2D/Allclean
...e/compressibleInterIsoFoam/laminar/depthCharge2D/Allclean
+5
-3
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge2D/Allrun
...ase/compressibleInterIsoFoam/laminar/depthCharge2D/Allrun
+3
-2
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge3D/Allclean
...e/compressibleInterIsoFoam/laminar/depthCharge3D/Allclean
+4
-2
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge3D/Allrun
...ase/compressibleInterIsoFoam/laminar/depthCharge3D/Allrun
+3
-2
No files found.
tutorials/incompressible/adjointOptimisationFoam/sensitivityMaps/sbend/laminar/Allclean
View file @
7051abc3
...
...
@@ -4,5 +4,7 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
cleanCase
rm
0/
*
.gz
rm
-f
0/
*
.gz
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/laminar/contactAngleCavity/Allclean
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
# Run from this directory
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/CleanFunctions
# Tutorial clean functions
#------------------------------------------------------------------------------
...
...
tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/Allrun
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/RunFunctions
# Tutorial run functions
#------------------------------------------------------------------------------
./makeMesh
...
...
tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/makeMesh
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/RunFunctions
# Tutorial run functions
#------------------------------------------------------------------------------
m4 < system/blockMeshDict.m4
>
system/blockMeshDict
...
...
tutorials/mesh/refineMesh/refineFieldDirs/Allrun
View file @
7051abc3
...
...
@@ -14,45 +14,45 @@ wclean calcRadiusField
runApplication blockMesh
##### Procedure for special refinement over Z
# We need the 0 folder to exist for these steps
mkdir
0
# Refine over Z, in 6 passes
for
index
in
1 2 3 4 5 6
do
suffix
=
"tier
$index
"
runApplication
-s
tier
$index
calcRadiusField
runApplication
-s
tier
$index
\
topoSet
-dict
system/topoSetDict.tier
$index
runApplication
-s
"
$suffix
"
calcRadiusField
## foamToVTK -cellSet tier$index
runApplication
-s
"
$suffix
"
\
topoSet
-dict
system/topoSetDict.tier
$index
runApplication
-s
tier
$index
\
refineMesh
-dict
system/refineMeshDict.tier
$index
-overwrite
## foamToVTK -cellSet "$suffix"
rm
-r
0/
*
runApplication
-s
"
$suffix
"
\
refineMesh
-dict
system/refineMeshDict.
"
$suffix
"
-overwrite
rm
-r
0/
*
done
# Refine over cylindrical coordinates, in 3 passes
for
index
in
1 2 3
do
suffix
=
"range
$index
"
runApplication
-s
range
$index
calcRadiusField
-calcDirections
runApplication
-s
"
$suffix
"
calcRadiusField
-calcDirections
runApplication
-s
range
$index
\
topoSet
-dict
system/topoSetDict.range
$index
runApplication
-s
"
$suffix
"
\
topoSet
-dict
system/topoSetDict.
"
$suffix
"
## foamToVTK -cellSet tier$index
## foamToVTK -cellSet "$suffix"
runApplication
-s
range
$index
\
refineMesh
-dict
system/refineMeshDict.range
$index
-overwrite
rm
-r
0/
*
runApplication
-s
"
$suffix
"
\
refineMesh
-dict
system/refineMeshDict.
"
$suffix
"
-overwrite
rm
-r
0/
*
done
rmdir
0 2>/dev/null
#------------------------------------------------------------------------------
tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/Allclean
View file @
7051abc3
#!/bin/sh
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/CleanFunctions
# Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase0
...
...
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge2D/Allclean
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
# Tutorial clean functions
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/CleanFunctions
# Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase0
rm
-r
sequencedVTK
rm
-rf
sequencedVTK
#------------------------------------------------------------------------------
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge2D/Allrun
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/RunFunctions
# Tutorial run functions
#------------------------------------------------------------------------------
runApplication blockMesh
restore0Dir
...
...
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge3D/Allclean
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
# Tutorial clean functions
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/CleanFunctions
# Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase0
rm
-rf
processor
*
#------------------------------------------------------------------------------
tutorials/multiphase/compressibleInterIsoFoam/laminar/depthCharge3D/Allrun
View file @
7051abc3
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/bin/tools/RunFunctions
# Tutorial run functions
#------------------------------------------------------------------------------
runApplication blockMesh
restore0Dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment