kanydao commited on
Commit
ef4f44c
·
verified ·
1 Parent(s): a37a862

Archive CFD workflow 2026-10-12: physgen4060_accepted_20260923_v1 (part 16)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +14 -0
  2. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/boundary +3 -0
  3. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/boundaryProcAddressing +3 -0
  4. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/cellProcAddressing +3 -0
  5. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/faceProcAddressing +3 -0
  6. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/faces +3 -0
  7. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/neighbour +3 -0
  8. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/owner +3 -0
  9. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/pointProcAddressing +3 -0
  10. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/points +3 -0
  11. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/residuals +15 -0
  12. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/run_all_shm.sh +72 -0
  13. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/run_mesh_shm.sh +30 -0
  14. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/run_solver_shm.sh +32 -0
  15. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/.DS_Store +0 -0
  16. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/._snappyHexMeshDict +0 -0
  17. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/blockMeshDict +121 -0
  18. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/controlDict +333 -0
  19. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/decomposeParDict +19 -0
  20. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/fvConstraints +28 -0
  21. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/fvSchemes +69 -0
  22. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/fvSolution +175 -0
  23. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/meshQualityDict +48 -0
  24. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/snappyHexMeshDict +322 -0
  25. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/surfaceFeaturesDict +34 -0
  26. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/._run_all_shm.sh +0 -0
  27. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/U +3 -0
  28. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/k +3 -0
  29. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/nut +3 -0
  30. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/omega +3 -0
  31. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/p +3 -0
  32. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/U +3 -0
  33. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/k +3 -0
  34. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/nut +3 -0
  35. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/omega +3 -0
  36. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/p +3 -0
  37. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/README.md +2 -0
  38. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/RUN_INPUT.json +11 -0
  39. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/car_0.obj +0 -0
  40. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/transportProperties +20 -0
  41. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/triSurface/car.stl +3 -0
  42. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/triSurface/zone_car.vtk +3 -0
  43. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/turbulenceProperties +24 -0
  44. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/forceCoeffs_car +20 -0
  45. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/forces +18 -0
  46. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/include/.DS_Store +0 -0
  47. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/include/config +38 -0
  48. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/include/geometry +56 -0
  49. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/logs/surfaceCheck.log +75 -0
  50. cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/plots.sh +6 -0
.gitattributes CHANGED
@@ -11705,3 +11705,17 @@ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/p
11705
  cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/car_0.obj filter=lfs diff=lfs merge=lfs -text
11706
  cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11707
  cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11705
  cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/car_0.obj filter=lfs diff=lfs merge=lfs -text
11706
  cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11707
  cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
11708
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11709
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
11710
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0428_source071/physgen40/car_0.obj filter=lfs diff=lfs merge=lfs -text
11711
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0428_source071/physgen40/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11712
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0428_source071/physgen40/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
11713
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0428_source071/physgen60/car_0.obj filter=lfs diff=lfs merge=lfs -text
11714
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0428_source071/physgen60/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11715
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0428_source071/physgen60/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
11716
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0478_source079/physgen40/car_0.obj filter=lfs diff=lfs merge=lfs -text
11717
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0478_source079/physgen40/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11718
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0478_source079/physgen40/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
11719
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0478_source079/physgen40_interrupted_20260923T155155Z/car_0.obj filter=lfs diff=lfs merge=lfs -text
11720
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0478_source079/physgen40_interrupted_20260923T155155Z/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
11721
+ cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0478_source079/physgen40_interrupted_20260923T155155Z/constant/triSurface/zone_car.vtk filter=lfs diff=lfs merge=lfs -text
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/boundary ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:341a172348d9861f3e8dd43f5b9119bce1aa527e08f2587a34905c2bf0415065
3
+ size 1573
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/boundaryProcAddressing ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac309ff02b2a24c1ca2a504d49723abb4651fb1cbb88f6abb528cc26ad4a0e1d
3
+ size 724
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/cellProcAddressing ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c00de548f69a10639909e91d2b70d494ecf12dfc55f0d50cb9677c89a38fddb4
3
+ size 297408
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/faceProcAddressing ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15debaebdfb9005dd71975001d5ec884b58f2c8e5c220aa1318e8a61054935c6
3
+ size 912497
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/faces ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8628e2d898ffe56d8bc841be503fd5e409329aec314a0878db5070a5923fd8b
3
+ size 4559688
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/neighbour ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a1954ba5c0ca5e41d0d5b836dca6b4d162b320d87daff76dcdebfe103130e12
3
+ size 869230
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/owner ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc2d9fb02b07e015c42acc78d6db5937c9440af8d7ea2c0cd6e65a9ec180bb66
3
+ size 912570
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/pointProcAddressing ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7659c66e3b610ddc306a10f04b91b7ee0533b8759e458dc9ff51fc2748006e2
3
+ size 319597
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/processor3/constant/polyMesh/points ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24b1d44957fb9c2190265bfbb40bdde4c4c2959a1e8f5a5e33eafca523d3ca5e
3
+ size 1914066
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/residuals ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set term pngcairo
2
+ set output "./images/residuals.png"
3
+ set logscale y
4
+ set yr [0.0000001:1]
5
+ set title "Residuals"
6
+ set ylabel 'Residual'
7
+ set xlabel 'Iteration'
8
+ plot "< cat logs/log.solver | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\
9
+ "< cat logs/log.solver | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\
10
+ "< cat logs/log.solver | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\
11
+ "< cat logs/log.solver | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\
12
+ "< cat logs/log.solver | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\
13
+ #"< cat logs/log.solver | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines
14
+ #pause -1
15
+ #reread
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/run_all_shm.sh ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Verify if already finished by checking the plotting folder
4
+ ITERMAX=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*")
5
+ if [[ -d images ]] && [[ -d $ITERMAX ]] && [[ -f simulation.done ]]; then
6
+ echo "Experiment at $(pwd) is already finished! Passing..."
7
+ exit 0
8
+ fi
9
+
10
+ mkdir -p logs
11
+
12
+ # Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict
13
+ procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*")
14
+ # If doesn't work, set it manually here
15
+ if [ -z $procs ]; then
16
+ echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'."
17
+ procs=12
18
+ fi
19
+ echo "procs set to $procs."
20
+ MAXITER=2500 # max iter of the simulations
21
+
22
+ # If car.foam, then must have at least meshed -> skip
23
+ if [[ ! -f car.foam ]]; then
24
+ foamCleanTutorials
25
+ #rm -rf 0 > /dev/null 2>&1
26
+
27
+ #PART DEDICATED TO MESHING
28
+ surfaceFeatures | tee logs/log.surfaceFeatures
29
+ blockMesh | tee logs/log.blockMesh
30
+
31
+ decomposePar
32
+ (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm
33
+ mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh
34
+
35
+ reconstructParMesh -constant
36
+ rm -r ./processor*
37
+
38
+ touch car.foam
39
+ fi
40
+
41
+ #PART DEDICATED TO SOLVER
42
+ # If processor0 -> must have been doing solver (assuming not already finished and removed!)
43
+ if [[ ! -d processor0 ]]; then
44
+ decomposePar -force -copyZero
45
+
46
+ mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber
47
+ mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential
48
+ fi
49
+ (time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver
50
+
51
+ # If solver has finished, do rest
52
+ ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*")
53
+ if [[ -d processor0/$ENDTIME ]]; then
54
+ reconstructPar -latestTime
55
+
56
+ rm -r ./processor*
57
+
58
+ ./plots.sh .
59
+
60
+ touch car.foam
61
+
62
+ touch simulation.done
63
+ fi
64
+
65
+ # # Copy UMean as U to compute vorticity on UMean automatically
66
+ # cp $MAXITER/UMean $MAXITER/U
67
+
68
+ # # Compute vorticity
69
+ # postProcess -func vorticity -latestTime
70
+
71
+ # # Remove copied U (ignore if non-existent)
72
+ # rm -f $MAXITER/U
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/run_mesh_shm.sh ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict
4
+ procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*")
5
+ # If doesn't work, set it manually here
6
+ if [ -z $procs ]; then
7
+ echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'."
8
+ procs=12
9
+ fi
10
+ echo "procs set to $procs."
11
+
12
+ # If car.foam, then must have at least meshed -> skip
13
+ if [[ ! -f car.foam ]]; then
14
+ foamCleanTutorials
15
+ #rm -rf 0 > /dev/null 2>&1
16
+
17
+ surfaceFeatures | tee logs/log.surfaceFeatures
18
+ blockMesh | tee logs/log.blockMesh
19
+
20
+ decomposePar
21
+ (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm
22
+ mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh
23
+
24
+ reconstructParMesh -constant
25
+ # rm -rf 0 > /dev/null 2>&1
26
+ # cp -r 0_org 0 > /dev/null 2>&1
27
+ rm -r ./processor*
28
+
29
+ touch car.foam
30
+ fi
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/run_solver_shm.sh ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict
4
+ procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*")
5
+ # If doesn't work, set it manually here
6
+ if [ -z $procs ]; then
7
+ echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'."
8
+ procs=12
9
+ fi
10
+ echo "procs set to $procs."
11
+
12
+ #PART DEDICATED TO SOLVER
13
+ # If processor0 -> must have been doing solver (assuming not already finished and removed!)
14
+ if [[ ! -d processor0 ]]; then
15
+ decomposePar -force -copyZero
16
+
17
+ mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber
18
+ mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential
19
+ fi
20
+ (time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver
21
+
22
+ # If solver has finished, do rest
23
+ ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*")
24
+ if [[ -d processor0/$ENDTIME ]]; then
25
+ reconstructPar -latestTime
26
+
27
+ rm -r ./processor*
28
+
29
+ ./plots.sh .
30
+
31
+ touch car.foam
32
+ fi
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/.DS_Store ADDED
Binary file (6.15 kB). View file
 
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/._snappyHexMeshDict ADDED
Binary file (4.1 kB). View file
 
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/blockMeshDict ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ format ascii;
11
+ class dictionary;
12
+ object blockMeshDict;
13
+ }
14
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
15
+
16
+ convertToMeters 1;
17
+
18
+ x_min -12;
19
+ x_max 32;
20
+ y_min -4;
21
+ y_max 4;
22
+ z_min -0.3;
23
+ z_max 6.4;
24
+
25
+ //xcells 22;
26
+ //ycells 4;
27
+ //zcells 4;
28
+
29
+
30
+ //deltax 0.2; //0.05
31
+ //deltay 0.2; //0.05
32
+ //deltaz 0.2; //0.05
33
+ //
34
+ //lx #calc "($xmax) - ($xmin)";
35
+ //ly #calc "($ymax) - ($ymin)";
36
+ //lz #calc "($zmax) - ($zmin)";
37
+ //
38
+ //xcells #calc "round(($lx)/($deltax))";
39
+ //ycells #calc "round(($ly)/($deltay))";
40
+ //zcells #calc "round(($lz)/($deltaz))";
41
+
42
+
43
+ xcells 220; // MANUALLY CALCULATED BECAUSE WMAKE FAILED
44
+ ycells 40;
45
+ zcells 34;
46
+
47
+ vertices
48
+ (
49
+ ($x_min $y_min $z_min)
50
+ ($x_max $y_min $z_min)
51
+ ($x_max $y_max $z_min)
52
+ ($x_min $y_max $z_min)
53
+ ($x_min $y_min $z_max)
54
+ ($x_max $y_min $z_max)
55
+ ($x_max $y_max $z_max)
56
+ ($x_min $y_max $z_max)
57
+ );
58
+
59
+ blocks
60
+ (
61
+ hex (0 1 2 3 4 5 6 7) ($xcells $ycells $zcells) simpleGrading (1 1 1)
62
+ );
63
+
64
+ edges
65
+ (
66
+ );
67
+
68
+ boundary
69
+ (
70
+ inlet
71
+ {
72
+ type patch;
73
+ faces
74
+ (
75
+ (0 4 7 3)
76
+ );
77
+ }
78
+
79
+ outlet
80
+ {
81
+ type patch;
82
+ faces
83
+ (
84
+ (2 6 5 1)
85
+ );
86
+ }
87
+
88
+ sides
89
+ {
90
+ type patch;
91
+ faces
92
+ (
93
+ (3 7 6 2)
94
+ (0 1 5 4)
95
+ );
96
+ }
97
+
98
+ ground
99
+ {
100
+ type wall;
101
+ faces
102
+ (
103
+ (0 3 2 1)
104
+ );
105
+ }
106
+
107
+ top
108
+ {
109
+ type patch;
110
+ faces
111
+ (
112
+ (4 5 6 7)
113
+ );
114
+ }
115
+ );
116
+
117
+ mergePatchPairs
118
+ (
119
+ );
120
+
121
+ // ************************************************************************* //
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/controlDict ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ | ========= | |
3
+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
+ | \\ / O peration | Version: 7 |
5
+ | \\ / A nd | Web: www.OpenFOAM.com |
6
+ | \\/ M anipulation | |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ version 2.0;
11
+ format ascii;
12
+ class dictionary;
13
+ object controlDict;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+ #include "../include/config"
17
+
18
+
19
+ application simpleFoam;
20
+
21
+ // startFrom startTime;
22
+ startFrom latestTime;
23
+
24
+ startTime 0;
25
+
26
+ stopAt endTime;
27
+
28
+ endTime 2500; //1000-3000-5000
29
+ averageStart 1500; // 1K iters before the end
30
+
31
+ deltaT 1;
32
+
33
+ writeControl timeStep;
34
+
35
+ writeInterval 500;
36
+
37
+ /*
38
+ secondaryWriteControl cpuTime;
39
+ secondaryWriteInterval 1000;
40
+ secondaryPurgeWrite 1;
41
+ */
42
+
43
+ purgeWrite 2;
44
+
45
+ writeFormat binary;
46
+
47
+ writePrecision 12;
48
+
49
+ writeCompression off; //uncompressed
50
+
51
+ timeFormat general;
52
+
53
+ timePrecision 6;
54
+
55
+ runTimeModifiable yes;
56
+
57
+
58
+
59
+
60
+ // ************************************************************************* //
61
+
62
+ functions
63
+ {
64
+ carForces
65
+ {
66
+ type forces;
67
+ functionObjectLibs ("libforces.so");
68
+ patches ("car");
69
+ rho rhoInf;
70
+ rhoInf 1.205;
71
+ CofR (0 0 0);
72
+ porosity false;
73
+ log false;
74
+ writeControl timeStep;
75
+ writeInterval 1;
76
+ }
77
+
78
+
79
+ ///////////////////////////////////////////////////////////////////////////
80
+ car
81
+ {
82
+ log yes;
83
+ enabled yes;
84
+
85
+ type forceCoeffs;
86
+ functionObjectLibs ( "libforces.so");
87
+
88
+ patches ( "car");
89
+
90
+ rho rhoInf;
91
+ rhoInf 1.205;
92
+
93
+ CofR ( 0 0 0);
94
+ liftDir ( 0 0 1);
95
+ dragDir ( 1 0 0);
96
+ pitchAxis ( 0 1 0);
97
+ magUInf 30;
98
+ lRef 1; //length in x //1;
99
+ Aref $!config/Aref; //projected area in x //drivAer=2.146952
100
+ writeControl timeStep;
101
+ writeInterval 1;
102
+ }
103
+
104
+ ///////////////////////////////////////////////////////////////////////////
105
+
106
+
107
+ ///////////////////////////////////////////////////////////////////////////
108
+
109
+ yplus
110
+ {
111
+ type yPlus;
112
+ functionObjectLibs ("libfieldFunctionObjects.so");
113
+
114
+ enabled true;
115
+
116
+ writeControl outputTime;
117
+ //writeControl timeStep;
118
+ writeInterval 25;
119
+
120
+ log true;
121
+ }
122
+
123
+ ///////////////////////////////////////////////////////////////////////////
124
+
125
+
126
+ ///////////////////////////////////////////////////////////////////////////
127
+ Q
128
+ {
129
+ type Q;
130
+ functionObjectLibs ("libutilityFunctionObjects.so");
131
+
132
+ enabled true;
133
+
134
+ writeControl outputTime;
135
+ //writeControl timeStep;
136
+ //writeInterval 1;
137
+
138
+ //log true;
139
+ }
140
+ ///////////////////////////////////////////////////////////////////////////
141
+
142
+
143
+ ///////////////////////////////////////////////////////////////////////////
144
+
145
+ minmaxdomain_scalar
146
+ {
147
+ type volFieldValue;
148
+ libs ("libfieldFunctionObjects.so");
149
+
150
+ enabled true; //true or false
151
+ log true; //write to screen
152
+
153
+ //writeControl writeTime;
154
+ writeControl timeStep;
155
+ writeInterval 1;
156
+
157
+ writeFields false; //write solution to field value - Not needed when only reporting value to screen
158
+
159
+ writeLocation true; //write location in the output file
160
+
161
+ //mode component;
162
+
163
+ regionType all;
164
+
165
+ operation none;
166
+
167
+ fields
168
+ (
169
+ p k omega nut
170
+ );
171
+ }
172
+
173
+ ///////////////////////////////////////////////////////////////////////////
174
+
175
+
176
+ ///////////////////////////////////////////////////////////////////////////
177
+
178
+ wallShearStress1
179
+ {
180
+ type wallShearStress;
181
+ functionObjectLibs ("libutilityFunctionObjects.so");
182
+
183
+ enabled true;
184
+
185
+ writeControl outputTime;
186
+ //writeControl timeStep;
187
+ //writeInterval 1;
188
+
189
+ //log true;
190
+ }
191
+
192
+ ///////////////////////////////////////////////////////////////////////////
193
+
194
+
195
+ ///////////////////////////////////////////////////////////////////////////
196
+
197
+ fieldAverage
198
+ {
199
+ type fieldAverage;
200
+ functionObjectLibs ("libfieldFunctionObjects.so");
201
+ enabled true;
202
+ writeControl outputTime;
203
+
204
+ //writeControl timeStep;
205
+ //writeInterval 100;
206
+
207
+ //cleanRestart true;
208
+
209
+ timeStart $!averageStart; // see top of file, should be 1K iters before endTime
210
+ //timeEnd 1000;
211
+
212
+ fields
213
+ (
214
+ U
215
+ {
216
+ mean on;
217
+ prime2Mean on;
218
+ base time;
219
+ }
220
+
221
+ p
222
+ {
223
+ mean on;
224
+ prime2Mean on;
225
+ base time;
226
+ }
227
+
228
+ nut
229
+ {
230
+ mean on;
231
+ prime2Mean on;
232
+ base time;
233
+ }
234
+
235
+ k
236
+ {
237
+ mean on;
238
+ prime2Mean off;
239
+ base time;
240
+ }
241
+
242
+ omega
243
+ {
244
+ mean on;
245
+ prime2Mean off;
246
+ base time;
247
+ }
248
+
249
+ Q
250
+ {
251
+ mean on;
252
+ prime2Mean off;
253
+ base time;
254
+ }
255
+
256
+ yPlus
257
+ {
258
+ mean on;
259
+ prime2Mean off;
260
+ base time;
261
+ }
262
+
263
+ wallShearStress
264
+ {
265
+ mean on;
266
+ prime2Mean off;
267
+ base time;
268
+ }
269
+
270
+ );
271
+ }
272
+
273
+ ///////////////////////////////////////////////////////////////////////////
274
+
275
+
276
+ ///////////////////////////////////////////////////////////////////////////
277
+
278
+ minmaxdomain_vector
279
+ {
280
+ type volFieldValue;
281
+ libs ("libfieldFunctionObjects.so");
282
+
283
+ enabled true; //true or false
284
+ log true; //write to screen
285
+
286
+ //writeControl writeTime;
287
+ writeControl timeStep;
288
+ writeInterval 1;
289
+
290
+ writeFields false; //write solution to field value - Not needed when only reporting value to screen
291
+
292
+ writeLocation true; //write location in the output file
293
+
294
+ //mode component;
295
+
296
+ regionType all;
297
+
298
+ operation none;
299
+
300
+ fields
301
+ (
302
+ U
303
+ );
304
+ }
305
+
306
+ mindomain_scalar
307
+ {
308
+ $minmaxdomain_scalar
309
+ operation min;
310
+ }
311
+
312
+ mindomain_vector
313
+ {
314
+ $minmaxdomain_vector
315
+ operation minMag;
316
+ }
317
+
318
+ maxdomain_scalar
319
+ {
320
+ $minmaxdomain_scalar
321
+ operation max;
322
+ }
323
+
324
+ maxdomain_vector
325
+ {
326
+ $minmaxdomain_vector
327
+ operation maxMag;
328
+ }
329
+
330
+ ///////////////////////////////////////////////////////////////////////////
331
+
332
+
333
+ };
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/decomposeParDict ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ | ========= | |
3
+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
+ | \\ / O peration | Version: 7 |
5
+ | \\ / A nd | Web: www.OpenFOAM.com |
6
+ | \\/ M anipulation | |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ version 2.0;
11
+ format ascii;
12
+ class dictionary;
13
+ object decomposeParDict;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ numberOfSubdomains 4;
18
+ method scotch;
19
+
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/fvConstraints ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ format ascii;
11
+ class dictionary;
12
+ object fvConstraints;
13
+ }
14
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
15
+
16
+ //To control on/off just modify the value.
17
+ //In this case a large value is like off
18
+ //Use from the begining so the object it is created
19
+
20
+ limitU
21
+ {
22
+ type limitVelocity;
23
+ selectionMode all;
24
+ max 200; //100 - 10000 (large value is off)
25
+ }
26
+
27
+ //************************************************************************** //
28
+
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/fvSchemes ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ format ascii;
11
+ class dictionary;
12
+ object fvSchemes;
13
+ }
14
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
15
+
16
+ ddtSchemes
17
+ {
18
+ default steadyState;
19
+ }
20
+
21
+ gradSchemes
22
+ {
23
+ //default Gauss linear;
24
+ default cellLimited Gauss linear 1;
25
+ grad(U) cellLimited Gauss linear 1;
26
+ grad(k) cellLimited Gauss linear 1;
27
+ grad(omega) cellLimited Gauss linear 1;
28
+ grad(p) cellLimited Gauss linear 0.333;
29
+ }
30
+
31
+ divSchemes
32
+ {
33
+ default none;
34
+
35
+ //div(phi,U) bounded Gauss linearUpwindV grad(U);
36
+ div(phi,U) bounded Gauss linearUpwind grad(U);
37
+
38
+ //div(phi,k) bounded Gauss linearUpwind grad(k);
39
+ //div(phi,omega) bounded Gauss linearUpwind grad(omega);
40
+ div(phi,k) bounded Gauss upwind;
41
+ div(phi,omega) bounded Gauss upwind;
42
+
43
+ div((nuEff*dev2(T(grad(U))))) Gauss linear;
44
+
45
+ //For potentialFoam
46
+ div(div(phi,U)) Gauss linear;
47
+
48
+ }
49
+
50
+ interpolationSchemes
51
+ {
52
+ //default linear;
53
+ default skewCorrected linear;
54
+ }
55
+
56
+ laplacianSchemes
57
+ {
58
+ default Gauss linear limited 0.5;
59
+ }
60
+
61
+ snGradSchemes
62
+ {
63
+ default limited 0.5;
64
+ }
65
+
66
+ wallDist
67
+ {
68
+ method meshWave;
69
+ }
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/fvSolution ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ format ascii;
11
+ class dictionary;
12
+ object fvSolution;
13
+ }
14
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
15
+
16
+ solvers
17
+ {
18
+ p
19
+ {
20
+
21
+ solver GAMG;
22
+ tolerance 1e-06;
23
+ relTol 0.01;
24
+ smoother GaussSeidel;
25
+ nPreSweeps 0;
26
+ nPostSweeps 2;
27
+ nFinestSweeps 2;
28
+ cacheAgglomeration on;
29
+ nCellsInCoarsestLevel 10;
30
+ agglomerator faceAreaPair;
31
+ mergeLevels 1;
32
+ /*
33
+
34
+ solver PCG;
35
+ preconditioner
36
+ {
37
+ preconditioner GAMG;
38
+ tolerance 1e-06; //1e-06 1e-08
39
+ relTol 0.0; //0.01 0
40
+ nVcycles 2;
41
+ smoother GaussSeidel;
42
+ nPreSweeps 0;
43
+ nPostSweeps 2;
44
+ nFinestSweeps 2;
45
+ cacheAgglomeration false;
46
+ nCellsInCoarsestLevel 10;
47
+ agglomerator faceAreaPair;
48
+ mergeLevels 1;
49
+ }
50
+
51
+ tolerance 1e-06;
52
+ relTol 0.01;
53
+ //maxIter 20;
54
+
55
+
56
+ solver PCG;
57
+ preconditioner DIC;
58
+ tolerance 1e-6;
59
+ relTol 0.01;
60
+ */
61
+
62
+ minIter 3;
63
+ }
64
+
65
+ U
66
+ {
67
+ solver PBiCGStab;
68
+ preconditioner DILU;
69
+ tolerance 1e-08; //1e-08
70
+ relTol 0.001; //0.1 0.01
71
+
72
+ minIter 3;
73
+ }
74
+
75
+ k
76
+ {
77
+ solver PBiCGStab;
78
+ preconditioner DILU;
79
+ tolerance 1e-08; //1e-08
80
+ relTol 0.001; //0.1 0.01
81
+
82
+ minIter 3;
83
+ }
84
+
85
+ omega
86
+ {
87
+ solver PBiCGStab;
88
+ preconditioner DILU;
89
+ tolerance 1e-08; //1e-08
90
+ relTol 0.001; //0.1 0.01
91
+
92
+ minIter 3;
93
+ }
94
+
95
+ /*
96
+ Phi
97
+ {
98
+ $p;
99
+ }
100
+ */
101
+
102
+ Phi
103
+ {
104
+ solver GAMG;
105
+ agglomerator faceAreaPair;
106
+ mergeLevels 1;
107
+ cacheAgglomeration true;
108
+ nCellsInCoarsestLevel 200;
109
+ tolerance 1e-8;
110
+ relTol 0.001;
111
+ smoother GaussSeidel;
112
+ nPreSweeps 0;
113
+ nPostSweeps 2;
114
+ nFinestSweeps 2;
115
+ minIter 3;
116
+ }
117
+
118
+ }
119
+
120
+ potentialFlow
121
+ {
122
+ nNonOrthogonalCorrectors 10;
123
+ }
124
+
125
+ SIMPLE
126
+ {
127
+ consistent yes;
128
+ nNonOrthogonalCorrectors 2;
129
+
130
+ pRefCell 0;
131
+ pRefValue 0;
132
+
133
+ residualControl {}
134
+
135
+ }
136
+
137
+ //SIMPLE
138
+ /*
139
+ relaxationFactors
140
+ {
141
+ fields
142
+ {
143
+ p 0.3;
144
+ }
145
+
146
+ equations
147
+ {
148
+ U 0.7;
149
+ k 0.5;
150
+ omega 0.5;
151
+ }
152
+
153
+ }
154
+ */
155
+
156
+ //SIMPLEC
157
+
158
+ relaxationFactors
159
+ {
160
+ fields
161
+ {
162
+ //".*" 0.7;
163
+ p 0.9;
164
+ }
165
+ equations
166
+ {
167
+ //".*" 0.7;
168
+ p 0.9;
169
+ U 0.7;
170
+ k 0.7;
171
+ omega 0.7;
172
+ }
173
+ }
174
+
175
+
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/meshQualityDict ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ format ascii;
11
+ class dictionary;
12
+ object meshQualityDict;
13
+ }
14
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
15
+
16
+
17
+ maxNonOrtho 75;
18
+ maxBoundarySkewness 4; //Original 20 for better quality 4
19
+ maxInternalSkewness 4;
20
+
21
+ /*
22
+ maxNonOrtho 180;
23
+ maxBoundarySkewness -1;
24
+ maxInternalSkewness -1;
25
+ */
26
+
27
+ maxConcave 80;
28
+
29
+ minVol 1e-13;
30
+
31
+ minTetQuality -1e+30;
32
+
33
+ minArea -1;
34
+
35
+ minTwist 0.02;
36
+
37
+ minDeterminant 0.001;
38
+
39
+ minFaceWeight 0.05;
40
+ //minFaceWeight 0.02;
41
+
42
+ minVolRatio 0.01;
43
+
44
+ minTriangleTwist -1;
45
+
46
+ //minFlatness 0.5;
47
+
48
+ // ************************************************************************* //
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/snappyHexMeshDict ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ | ========= | |
3
+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
+ | \\ / O peration | Version: 7 |
5
+ | \\ / A nd | Web: www.OpenFOAM.com |
6
+ | \\/ M anipulation | |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ version 2.0;
11
+ format ascii;
12
+ class dictionary;
13
+ object snappyHexMeshDict;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+ #include "../include/config"
17
+
18
+ /***************************************************/
19
+ castellatedMesh true;
20
+ snap true;
21
+ addLayers true;
22
+ /***************************************************/
23
+
24
+
25
+
26
+ /***************************************************/
27
+
28
+ geometry
29
+ {
30
+
31
+ car.stl
32
+ {
33
+ type triSurfaceMesh;
34
+ name car;
35
+ }
36
+
37
+
38
+ vr1
39
+ {
40
+ type searchableBox;
41
+ min $!config/vr1_min;
42
+ max $!config/vr1_max;
43
+ }
44
+
45
+ vr2
46
+ {
47
+ type searchableBox;
48
+ min $!config/vr2_min;
49
+ max $!config/vr2_max;
50
+ }
51
+
52
+ vr3
53
+ {
54
+ type searchableBox;
55
+ min $!config/vr3_min;
56
+ max $!config/vr3_max;
57
+ }
58
+
59
+ vr4
60
+ {
61
+ type searchableBox;
62
+ min $!config/vr4_min;
63
+ max $!config/vr4_max;
64
+ }
65
+
66
+
67
+ /*
68
+ vr1
69
+ {
70
+ type searchableBox;
71
+ min ( -7.5 -3.0 -0.3 );
72
+ max ( 25.0 3.0 3.7 );
73
+ }
74
+
75
+ vr2
76
+ {
77
+ type searchableBox;
78
+ //min ( -3.0 0.0 0.0 );
79
+ //max ( 15.0 2.0 3.0 );
80
+ min ( -2.0 -2.0 -0.3 );
81
+ max ( 9.0 2.0 1.7 ); // 6.0 2.0 1.7
82
+ }
83
+
84
+ vr3
85
+ {
86
+ type searchableBox;
87
+ min ( 2.5 -1.5 -0.3 );
88
+ max ( 7.5 1.5 1.4 ); // 6.5 1.5 1.4
89
+ }
90
+
91
+ vr4
92
+ {
93
+ type searchableBox;
94
+ min ( 3.2 -1 -0.3 );
95
+ max ( 6.2 1.0 1.0 ); // 5.2 1.0 1.0
96
+ }
97
+ */
98
+ }
99
+
100
+ /***************************************************/
101
+
102
+
103
+
104
+ /***************************************************/
105
+
106
+ castellatedMeshControls
107
+ {
108
+
109
+ maxLocalCells 5000000;
110
+ maxGlobalCells 30000000; //*******
111
+ minRefinementCells 0;
112
+ nCellsBetweenLevels 10; // 5
113
+ resolveFeatureAngle 30.0; //curvature
114
+ allowFreeStandingZoneFaces true;
115
+ planarAngle 30.0;
116
+ maxLoadUnbalance 0.1;
117
+
118
+ locationInMesh (10.0 1.0 1.0 );
119
+
120
+
121
+ //////////////////////////////////////
122
+ features
123
+ (
124
+
125
+ {
126
+ file "car.eMesh";
127
+ levels ((0.025 0));
128
+ //level 0;
129
+ }
130
+
131
+ );
132
+ //////////////////////////////////////
133
+
134
+
135
+ //////////////////////////////////////
136
+ refinementSurfaces
137
+ {
138
+ car
139
+ {
140
+ level ( 4 5 ); // 2 4 - 4 4
141
+ }
142
+
143
+ }
144
+ //////////////////////////////////////
145
+
146
+
147
+ //////////////////////////////////////
148
+ refinementRegions
149
+ {
150
+
151
+ vr1
152
+ {
153
+ mode inside;
154
+ levels (( 1E5 1 ));
155
+ }
156
+
157
+ vr2
158
+ {
159
+ mode inside;
160
+ levels (( 1E5 2 ));
161
+ }
162
+
163
+ vr3
164
+ {
165
+ mode inside;
166
+ levels (( 1E5 3 ));
167
+ }
168
+
169
+ vr4
170
+ {
171
+ mode inside;
172
+ levels (( 1E5 4 )); // 1E5 4
173
+ }
174
+
175
+ }
176
+ //////////////////////////////////////
177
+
178
+ }
179
+
180
+ /***************************************************/
181
+
182
+
183
+
184
+ /***************************************************/
185
+
186
+ snapControls
187
+ {
188
+
189
+ // Number of patch smoothing iterations before finding correspondence
190
+ // to surface
191
+ nSmoothPatch 3; //recommended
192
+ //nSmoothPatch 10; //improved
193
+
194
+ tolerance 2.0;
195
+ //tolerance 1.0;
196
+
197
+ nSolveIter 30; //recommended
198
+ //nSolveIter 100; //improved
199
+
200
+ nRelaxIter 5; //default
201
+ //nRelaxIter 10; //improved 10-20-50
202
+
203
+ // Feature snapping
204
+
205
+ // Number of feature edge snapping iterations.
206
+ // Leave out altogether to disable.
207
+ nFeatureSnapIter 10; //recommended
208
+ //nFeatureSnapIter 100; //improved 20-50-100
209
+
210
+ // Detect (geometric only) features by sampling the surface
211
+ // (default=false).
212
+ implicitFeatureSnap false;
213
+
214
+ // Use castellatedMeshControls::features (default = true)
215
+ explicitFeatureSnap true;
216
+
217
+ // Detect features between multiple surfaces
218
+ // (only for explicitFeatureSnap, default = false)
219
+ multiRegionFeatureSnap false;
220
+
221
+ }
222
+
223
+ /***************************************************/
224
+
225
+
226
+
227
+
228
+ /***************************************************/
229
+
230
+ addLayersControls
231
+ {
232
+
233
+ /////////////////////////////////////////////
234
+ relativeSizes true;
235
+
236
+ expansionRatio 1.2; //1.0;
237
+ finalLayerThickness 0.3;
238
+ minThickness 0.01; //0.1 0.25
239
+ /////////////////////////////////////////////
240
+
241
+
242
+ layers
243
+ {
244
+
245
+ car
246
+ {
247
+ nSurfaceLayers 6;
248
+ expansionRatio 1.1;
249
+ finalLayerThickness 0.3;
250
+ minThickness 0.01;
251
+ }
252
+
253
+ ground
254
+ {
255
+ nSurfaceLayers 6;
256
+ expansionRatio 1.2;
257
+ finalLayerThickness 0.3;
258
+ minThickness 0.01;
259
+ }
260
+
261
+ }
262
+
263
+
264
+ /////////////////////////////////////////////
265
+ nGrow 0;
266
+
267
+ featureAngle 130.0;
268
+
269
+ maxFaceThicknessRatio 0.5;
270
+
271
+ nSmoothSurfaceNormals 1;
272
+ nSmoothNormals 3;
273
+ nSmoothThickness 10;
274
+
275
+ slipFeatureAngle 30.0;
276
+ nRelaxIter 5;
277
+
278
+ maxThicknessToMedialRatio 0.3;
279
+
280
+ minMedialAxisAngle 90;
281
+ minMedianAxisAngle 90;
282
+
283
+ nBufferCellsNoExtrude 0;
284
+ nLayerIter 50;
285
+ nRelaxedIter 20;
286
+
287
+ //writeVTK false;
288
+ //noErrors false;
289
+ //layerRecovery 1;
290
+ //growZoneLayers false;
291
+ //projectGrownUp 0.0;
292
+ /////////////////////////////////////////////
293
+
294
+ }
295
+
296
+ /***************************************************/
297
+
298
+
299
+
300
+
301
+ /***************************************************/
302
+
303
+ meshQualityControls
304
+ {
305
+ #include "meshQualityDict"
306
+
307
+ nSmoothScale 4;
308
+ errorReduction 0.75;
309
+
310
+ relaxed
311
+ {
312
+ maxNonOrtho 75;
313
+ }
314
+
315
+ }
316
+
317
+ /***************************************************/
318
+
319
+
320
+ debug 0;
321
+ mergeTolerance 1.0E-6;
322
+ //autoBlockMesh false;
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_interrupted_20260923T161116Z/system/surfaceFeaturesDict ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ format ascii;
11
+ class dictionary;
12
+ object surfaceFeatureExtractDict;
13
+ }
14
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
15
+
16
+ surfaces ("car.stl");
17
+
18
+ extractionMethod extractFromSurface;
19
+
20
+ includedAngle 150;
21
+
22
+ subsetFeatures
23
+ {
24
+ // Keep nonManifold edges (edges with >2 connected faces)
25
+ nonManifoldEdges yes;
26
+
27
+ // Keep open edges (edges with 1 connected face)
28
+ openEdges yes;
29
+ }
30
+
31
+ // Write features to obj format for postprocessing
32
+ writeObj yes;
33
+
34
+ // ************************************************************************* //
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/._run_all_shm.sh ADDED
Binary file (4.1 kB). View file
 
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/U ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:562432c8ef08dd9d7a5c4aaa55e256f8c8c996c414fc0d50ac67bad22fb40f95
3
+ size 1907
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/k ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b599768ea2ecec8b6d2f699ceea9336af32b3aba20826ec502df66fb0f175b7e
3
+ size 1367
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/nut ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e29a89f75f157ff99c42b2f5338511921f757a91452575b5b1dc7a2366f289f7
3
+ size 1388
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/omega ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbe61f8b4dd72db7cd569310c1810f959328b0797ecbbcc3469ea58b67e6798c
3
+ size 1442
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0/p ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2c076ebfbd5801985fc179c56b02dafab1b1bc1043a9d5286aaf549b25a3088
3
+ size 1238
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/U ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:562432c8ef08dd9d7a5c4aaa55e256f8c8c996c414fc0d50ac67bad22fb40f95
3
+ size 1907
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/k ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b599768ea2ecec8b6d2f699ceea9336af32b3aba20826ec502df66fb0f175b7e
3
+ size 1367
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/nut ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e29a89f75f157ff99c42b2f5338511921f757a91452575b5b1dc7a2366f289f7
3
+ size 1388
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/omega ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbe61f8b4dd72db7cd569310c1810f959328b0797ecbbcc3469ea58b67e6798c
3
+ size 1442
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/0_org/p ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9933435039a1b90677edd393878dabf3c809b34703fb0fd42d30260c2c68999
3
+ size 1191
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/README.md ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Experiment
2
+ Template.
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/RUN_INPUT.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "case": "pair0342_source057",
3
+ "state": "physgen60",
4
+ "ranks": 8,
5
+ "input_sha256": "e5819dd7c420d62bf14916ce7fa955b20df8ff20a5e7dcdbf2f82376264fce0d",
6
+ "physics_configuration_unchanged": true,
7
+ "frozen_input_retained": "/scratch/cvlab/home/hantzhan/cfd_workflow/physgen4060_accepted_20260923_v1/results/pair0342_source057/physgen60/prepared",
8
+ "work": "/scratch/cvlab/home/hantzhan/cfd_workflow/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60",
9
+ "release": "/tmp/physgen4060_r1_hxIdpS",
10
+ "utc": "20260923T142919Z"
11
+ }
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/car_0.obj ADDED
The diff for this file is too large to render. See raw diff
 
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/transportProperties ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ | ========= | |
3
+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
+ | \\ / O peration | Version: 7 |
5
+ | \\ / A nd | Web: www.OpenFOAM.com |
6
+ | \\/ M anipulation | |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ version 2.0;
11
+ format ascii;
12
+ class dictionary;
13
+ object transportProperties;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ transportModel Newtonian;
18
+
19
+ nu nu [0 2 -1 0 0 0 0 ] 1.5881327800829875E-5;
20
+
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/triSurface/car.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c68f5fbf6a0a03e51420bcd49476b91bfaf9bd4d8a60f58059a4736c3e98dec5
3
+ size 43512284
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/triSurface/zone_car.vtk ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54855821491b5c3d8327380cebb7a0f1d288a86ecd39040872e6b97b51328cf5
3
+ size 32718459
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/constant/turbulenceProperties ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ | ========= | |
3
+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
+ | \\ / O peration | Version: 7 |
5
+ | \\ / A nd | Web: www.OpenFOAM.com |
6
+ | \\/ M anipulation | |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ version 2.0;
11
+ format ascii;
12
+ class dictionary;
13
+ object turbulenceProperties;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ simulationType RAS;
18
+
19
+ RAS
20
+ {
21
+ RASModel kOmegaSST;
22
+ turbulence on;
23
+ printCoeffs on;
24
+ }
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/forceCoeffs_car ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #set yr [0:0.25]
2
+ set term pngcairo
3
+ set output "./images/forceCoeffs.png"
4
+ #set xr [0:3000]
5
+ set yr [0:2.0]
6
+ set key bottom right
7
+ set xlabel "Simulation time [s]"
8
+ set ylabel "forceCoeff [-]"
9
+ set title "Plot of forceCoeffs over simulationtime"
10
+ set grid
11
+
12
+
13
+ #plot "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($4) with lines title "lift_{coeff}",\
14
+ "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($3) with lines title "drag_{coeff}"
15
+
16
+ plot "./postProcessing/car/0/forceCoeffs.dat" using ($1):($4) with lines title "lift_{coeff}",\
17
+ "./postProcessing/car/0/forceCoeffs.dat" using ($1):($3) with lines title "drag_{coeff}"
18
+
19
+ #pause -1
20
+ #reread
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/forces ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #set yr [0:0.25]
2
+ set term pngcairo
3
+ set output "./images/forces.png"
4
+ #set xr [0:2000]
5
+ set yr [0:500]
6
+ set key bottom right
7
+ set xlabel "Simulation time [s]"
8
+ set ylabel "forces [N]"
9
+ set title "Plot of forces over simulationtime"
10
+ set grid
11
+
12
+ #plot "./postProcessing/forces/0/forces_0.dat" using ($1):($4) with lines title "lift",\
13
+ "./postProcessing/forces/0/forces_0.dat" using ($1):($3) with lines title "drag"
14
+
15
+ plot "./postProcessing/forces/0/forces.dat" using ($1):($4) with lines title "lift",\
16
+ "./postProcessing/forces/0/forces.dat" using ($1):($3) with lines title "drag"
17
+ #pause -1
18
+ #reread
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/include/.DS_Store ADDED
Binary file (6.15 kB). View file
 
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/include/config ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ FoamFile
9
+ {
10
+ version 2.0;
11
+ format ascii;
12
+ class dictionary;
13
+ object config;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ config
18
+ {
19
+ /* controlDict */
20
+ // Area of reference (projected area in x)
21
+ Aref 2.1400000000000001;
22
+
23
+ /* snappyHexMeshDict */
24
+ // Refinement regions
25
+ vr1_min ( -7.50 -3.00 -0.30 );
26
+ vr1_max ( 25.00 3.00 3.70 );
27
+
28
+ vr2_min ( -2.14 -1.99 -0.30 );
29
+ vr2_max ( 9.18 1.99 1.98 );
30
+
31
+ vr3_min ( 1.27 -1.49 -0.30 );
32
+ vr3_max ( 7.68 1.49 1.68 );
33
+
34
+ vr4_min ( 1.27 -0.99 -0.30 );
35
+ vr4_max ( 6.38 0.99 1.38 );
36
+ }
37
+
38
+ // ************************************************************************* //
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/include/geometry ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*--------------------------------*- C++ -*----------------------------------*\
2
+ | ========= | |
3
+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
+ | \\ / O peration | Version: 5 |
5
+ | \\ / A nd | Web: www.OpenFOAM.org |
6
+ | \\/ M anipulation | |
7
+ \*---------------------------------------------------------------------------*/
8
+
9
+ //Name of .stl
10
+ name_stl car.stl;
11
+
12
+ // Computational domain coordinates
13
+ x_min -15.0;
14
+ x_max 25.0;
15
+
16
+ y_min -15.0;
17
+ y_max 15.0;
18
+
19
+ z_min -0.3;
20
+ z_max 14.7;
21
+
22
+ cell_division (80 60 30);
23
+ // Refinement box coordinates
24
+
25
+ //fine box close to the car
26
+ x_min_ref -1.25;
27
+ x_max_ref 2.0;
28
+
29
+ y_min_ref -1.25;
30
+ y_max_ref 1.25;
31
+
32
+ z_min_ref -0.3;
33
+ z_max_ref 1.75;
34
+
35
+ //medium box further away
36
+ x_min_ref_medium -2.0;
37
+ x_max_ref_medium 10.0;
38
+
39
+ y_min_ref_medium -1.75;
40
+ y_max_ref_medium 1.75;
41
+
42
+ z_min_ref_medium -0.3;
43
+ z_max_ref_medium 2.25;
44
+
45
+ //coarse box just before far field
46
+ x_min_ref_coarse -3.0;
47
+ x_max_ref_coarse 15.0;
48
+
49
+ y_min_ref_coarse -2.75;
50
+ y_max_ref_coarse 2.75;
51
+
52
+ z_min_ref_coarse -0.3;
53
+ z_max_ref_coarse 2.75;
54
+
55
+
56
+ // ************************************************************************* //
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/logs/surfaceCheck.log ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------*\
2
+ ========= |
3
+ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
+ \\ / O peration | Website: https://openfoam.org
5
+ \\ / A nd | Version: 9
6
+ \\/ M anipulation |
7
+ \*---------------------------------------------------------------------------*/
8
+ Build : 9-a0f1846504f2
9
+ Exec : surfaceCheck constant/triSurface/car.stl
10
+ Date : Sep 23 2026
11
+ Time : 14:29:19
12
+ Host : "pgcfd-c6-i60-0923b-0-0"
13
+ PID : 209
14
+ I/O : uncollated
15
+ Case : /scratch/cvlab/home/hantzhan/cfd_workflow/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60
16
+ nProcs : 1
17
+ sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
18
+ fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
19
+ allowSystemOperations : Allowing user-supplied system call operations
20
+
21
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
22
+ Reading surface from "constant/triSurface/car.stl" ...
23
+
24
+ Statistics:
25
+ Triangles : 870244
26
+ Vertices : 435132
27
+ Bounding Box : (-0.800905 -1.03218 1.19444e-08) (3.8716 1.04491 1.27859)
28
+
29
+ Region Size
30
+ ------ ----
31
+ patch0 870244
32
+
33
+
34
+ Surface has no illegal triangles.
35
+
36
+ Triangle quality (equilateral=1, collapsed=0):
37
+ 0 .. 0.05 : 0.000195348
38
+ 0.05 .. 0.1 : 0.00021718
39
+ 0.1 .. 0.15 : 0.000272337
40
+ 0.15 .. 0.2 : 0.000324047
41
+ 0.2 .. 0.25 : 0.000286127
42
+ 0.25 .. 0.3 : 0.000313705
43
+ 0.3 .. 0.35 : 0.000211435
44
+ 0.35 .. 0.4 : 0.000203391
45
+ 0.4 .. 0.45 : 0.000469983
46
+ 0.45 .. 0.5 : 0.00113187
47
+ 0.5 .. 0.55 : 0.00301525
48
+ 0.55 .. 0.6 : 0.00616724
49
+ 0.6 .. 0.65 : 0.0318623
50
+ 0.65 .. 0.7 : 0.102368
51
+ 0.7 .. 0.75 : 0.132742
52
+ 0.75 .. 0.8 : 0.484654
53
+ 0.8 .. 0.85 : 0.0733564
54
+ 0.85 .. 0.9 : 0.0625124
55
+ 0.9 .. 0.95 : 0.053308
56
+ 0.95 .. 1 : 0.0463893
57
+
58
+ min 0.00130424 for triangle 6335
59
+ max 1 for triangle 561500
60
+
61
+ Edges:
62
+ min 1.23978e-05 for edge 16364 points (3.87157 0.0684765 0.578069)(3.87157 0.0684765 0.578057)
63
+ max 0.0150171 for edge 218757 points (2.82404 0.675071 0.21824)(2.82928 0.665605 0.207824)
64
+
65
+ Checking for points less than 1e-6 of bounding box ((4.6725 2.07708 1.27859) metre) apart.
66
+ Found 0 nearby points.
67
+
68
+ Surface is closed. All edges connected to two faces.
69
+
70
+ Number of unconnected parts : 5
71
+ Splitting surface into parts ...
72
+
73
+ Writing zoning to "zone_car.vtk"...
74
+
75
+ writing part 0 size 736504 to "car_0.obj"
cfd_workflow_20261012/physgen4060_accepted_20260923_v1/work/pair0342_source057/physgen60_unused_c/plots.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ dict=$1
3
+ mkdir -p ./images
4
+ #gnuplot $dict/forces
5
+ gnuplot $dict/forceCoeffs_car
6
+ gnuplot $dict/residuals