Skip to content

Commit 7d6c6b1

Browse files
authored
New cleaning tools (precice#169)
1 parent 77b6569 commit 7d6c6b1

File tree

72 files changed

+308
-516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+308
-516
lines changed

clean-all.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
echo "- Cleaning up all tutorials..."
5+
6+
find . -maxdepth 2 -mindepth 2 -name clean-tutorial.sh -execdir sh -c './clean-tutorial.sh' \;

elastic-tube-3d/clean-tutorial.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/clean-tutorial-base.sh

elastic-tube-3d/clean.sh

-49
This file was deleted.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_openfoam .
7+
rm -rfv ./0/ # in run.sh, 0.orig/ is copied to 0/

elastic-tube-3d/fluid-openfoam/fluid-openfoam.foam

Whitespace-only changes.

elastic-tube-3d/fluid-openfoam/run.sh

+2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ echo "Preparing and running the Fluid participant..."
2222

2323
rm -rfv 0/
2424
cp -r 0.orig/ 0/
25+
cp -r constant/polyMesh.orig constant/polyMesh
2526
checkMesh
27+
touch fluid-openfoam.foam
2628

2729
# Run
2830
solver=$(getApplication)
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_calculix .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/clean-tutorial-base.sh

flow-over-heated-plate-nearest-projection/clean.sh

-49
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_openfoam .
7+
rm -rfv ./0/ # in run.sh,0.orig/ is copied to 0/

flow-over-heated-plate-nearest-projection/fluid-openfoam/fluid-openfoam.foam

Whitespace-only changes.

flow-over-heated-plate-nearest-projection/fluid-openfoam/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rm -rfv 0/
1919
cp -r 0.orig/ 0/
2020
blockMesh
2121
checkMesh
22+
touch fluid-openfoam.foam
2223

2324
# Run
2425
solver=$(getApplication)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_openfoam .
7+
rm -rfv ./0/ # in run.sh,0.orig/ is copied to 0/

flow-over-heated-plate-nearest-projection/solid-openfoam/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rm -rfv 0/
1919
cp -r 0.orig/ 0/
2020
blockMesh
2121
checkMesh
22+
touch solid-openfoam.foam
2223

2324
# Run
2425
solver=$(getApplication)

flow-over-heated-plate-nearest-projection/solid-openfoam/solid-openfoam.foam

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/clean-tutorial-base.sh

flow-over-heated-plate-steady-state/clean.sh

-49
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_openfoam .
7+
rm -rfv ./0/ # in run.sh,0.orig/ is copied to 0/

flow-over-heated-plate-steady-state/fluid-openfoam/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ rm -rfv 0/
2424
cp -r 0.orig/ 0/
2525
blockMesh
2626
checkMesh
27+
touch fluid-openfoam.foam
2728

2829
# Run
2930
solver=$(getApplication)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_codeaster .
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/clean-tutorial-base.sh

flow-over-heated-plate/clean.sh

-66
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_openfoam .
7+
rm -rfv ./0/ # in run.sh,0.orig/ is copied to 0/

flow-over-heated-plate/fluid-openfoam/fluid-openfoam.foam

Whitespace-only changes.

flow-over-heated-plate/fluid-openfoam/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rm -rfv 0/
1919
cp -r 0.orig/ 0/
2020
blockMesh
2121
checkMesh
22+
touch fluid-openfoam.foam
2223

2324
solver=$(getApplication)
2425
procs=$(getNumberOfProcessors)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_fenics .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_nutils .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e -u
3+
4+
. ../../tools/cleaning-tools.sh
5+
6+
clean_openfoam .
7+
rm -rfv ./0/ # in run.sh,0.orig/ is copied to 0/

flow-over-heated-plate/solid-openfoam/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rm -rfv 0/
1919
cp -r 0.orig/ 0/
2020
blockMesh
2121
checkMesh
22+
touch solid-openfoam.foam
2223

2324
solver=$(getApplication)
2425
procs=$(getNumberOfProcessors)

flow-over-heated-plate/solid-openfoam/solid-openfoam.foam

Whitespace-only changes.

heat-exchanger/clean-tutorial.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/clean-tutorial-base.sh

0 commit comments

Comments
 (0)