New location for foam files
This commit is contained in:
parent
ba4d06e8ef
commit
5a756fb95a
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ logs/
|
||||
*.run.xml
|
||||
*.synctex.gz
|
||||
*.toc
|
||||
*.png
|
||||
|
@ -9,5 +9,5 @@ if not os.path.exists(build):
|
||||
foamCase = [ "0", "constant", "system" ]
|
||||
|
||||
for d in foamCase:
|
||||
shutil.copytree("{}/simple-cubic/{}".format(src, d),
|
||||
shutil.copytree("{}/foam/{}".format(src, d),
|
||||
"{}/simple-cubic/0.1/{}".format(build, d))
|
||||
|
@ -1,11 +0,0 @@
|
||||
set logscale y
|
||||
set title "Residuals"
|
||||
set ylabel 'Residual'
|
||||
set xlabel 'Iteration'
|
||||
plot "< cat simpleFoam.log | grep 'Solving for Ux' | cut -d' ' -f9" title 'Ux' with lines,\
|
||||
"< cat log | grep 'Solving for Uy' | cut -d' ' -f9" title 'Uy' with lines,\
|
||||
"< cat log | grep 'Solving for Uz' | cut -d' ' -f9" title 'Uz' with lines,\
|
||||
"< cat log | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines
|
||||
pause 1
|
||||
reread
|
||||
|
14
src/structure.gv
Normal file
14
src/structure.gv
Normal file
@ -0,0 +1,14 @@
|
||||
digraph structure {
|
||||
node [shape=plaintext]
|
||||
s1 [label="src/simple-cubic/geometry.py"]
|
||||
s2 [label="src/simple-cubic/mesh.py"]
|
||||
s3 [label="src/simple-cubic/main.py"]
|
||||
s1 -> s3
|
||||
s2 -> s3
|
||||
s4 [label="src/genmesh.py"]
|
||||
s3 -> s4
|
||||
b1 [label="build/simple-cubic/direction-1/0.1/"]
|
||||
s4 -> b1 [label="[alpha=0.1, direction=1, mesh.unv]"]
|
||||
s5 [label="src/prefoam.py"]
|
||||
s5 -> b1 [label="[0, constant, system (/src/foam/*)]"]
|
||||
}
|
@ -22,7 +22,7 @@ foamDictionary -case $path constant/polyMesh/boundary -entry entry0.wall.type -s
|
||||
decomposePar -case $path
|
||||
|
||||
# Initial approximation
|
||||
mpirun -np 4 --oversubscribe potentialFoam -case $path -parallel
|
||||
mpirun -np 4 --oversubscribe potentialFoam -case $path -parallel | tee -a $path/potentialFoam.log
|
||||
|
||||
# Change boundary type for simpleFoam
|
||||
for n in {0..3}; do
|
||||
|
Loading…
Reference in New Issue
Block a user