Skip to content

Commit 238783f

Browse files
committed
Rewrite and add some scripts
1 parent c488014 commit 238783f

File tree

42 files changed

+267
-489
lines changed

Some content is hidden

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

42 files changed

+267
-489
lines changed

programmingTutorials/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,6 @@ doc/Doxygen/DTAGS
101101

102102
# Ignore the test directory
103103
/tutorialsTest
104+
105+
# Other specific files in this tutorial
106+
transportEquation/case/0/result

programmingTutorials/Allclean

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
3+
4+
./helloWorld/Allclean
5+
./basicIO/Allclean
6+
./understandingTheMesh/Allclean
7+
./basicFieldOperations/Allclean
8+
./basicParallelComputing/Allclean
9+
./customClasses/Allclean
10+
./customLibraries/Allclean
11+
./customBC/Allclean
12+
./transportEquation/Allclean

programmingTutorials/Alltest

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
./helloWorld/Allrun
4+
./basicIO/Allrun
5+
./understandingTheMesh/Allrun
6+
./basicFieldOperations/Allrun
7+
./basicParallelComputing/Allrun
8+
./customClasses/Allrun
9+
./customLibraries/Allrun
10+
./customBC/Allrun
11+
./transportEquation/Allrun

programmingTutorials/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ These tutorials show beginners how to programme within the framework of OpenFOAM
44

55
The original edition is created by Artur K Lidtke. The current branch was forked from [BasicOpenFOAMProgrammingTutorials](https://github.com/UnnamedMoose/BasicOpenFOAMProgrammingTutorials) and integrated with [OpenFOAM Tutorials Plus](https://github.com/phresher/OpenFOAM_Tutorials_Plus).
66

7+
To get started, read and run the Allrun script in each folder.
8+
79
The tutorials have been most recently tested on the official OpenFOAM 5.0 version.
810

911
### Tutorial 0 - helloWorld
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
3+
4+
# remove log files
5+
rm log* > /dev/null 2>&1
6+
7+
# remove dependency files
8+
wclean app > /dev/null 2>&1
9+
10+
# remove binary files
11+
rm $FOAM_USER_APPBIN/basicFieldOperations > /dev/null 2>&1
12+
13+
# clean case files
14+
./case/Allclean
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
23

34
wmake app > log.wmake
45
blockMesh -case case > log.blockMesh
5-
$FOAM_USER_APPBIN/basicFieldOperations -case case | tee log.basicFieldOperations
6+
basicFieldOperations -case case | tee log.basicFieldOperations
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
23

34
rm -r 1* 2* 3* 4* 5* 6* 7* 8* 9* 0.* constant/polyMesh/* processor* log.* 2>/dev/null

programmingTutorials/basicFieldOperations/case/Allrun

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
3+
4+
# remove log files
5+
rm log* > /dev/null 2>&1
6+
7+
# remove dependency files
8+
wclean app > /dev/null 2>&1
9+
10+
# remove binary files
11+
rm $FOAM_USER_APPBIN/basicIO > /dev/null 2>&1
12+
13+
# clean case files
14+
./case/Allclean

programmingTutorials/basicIO/Allrun

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
23

34
wmake app > log.wmake
45
blockMesh -case case > log.blockMesh

0 commit comments

Comments
 (0)