kanydao commited on
Commit
0b212f4
·
verified ·
1 Parent(s): 0ad9892

Archive CFD workflow 2026-10-12: anchorgen_side60_20260923_v1 (part 5)

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 +1 -0
  2. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/constant/turbulenceProperties +24 -0
  3. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forceCoeffs_car +20 -0
  4. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forces +18 -0
  5. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/.DS_Store +0 -0
  6. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/config +38 -0
  7. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/geometry +56 -0
  8. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/plots.sh +6 -0
  9. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/residuals +15 -0
  10. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_all_shm.sh +72 -0
  11. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_mesh_shm.sh +30 -0
  12. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_solver_shm.sh +32 -0
  13. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/.DS_Store +0 -0
  14. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/._snappyHexMeshDict +0 -0
  15. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/blockMeshDict +121 -0
  16. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/controlDict +333 -0
  17. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/decomposeParDict +19 -0
  18. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvConstraints +28 -0
  19. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSchemes +69 -0
  20. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSolution +175 -0
  21. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/meshQualityDict +48 -0
  22. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/snappyHexMeshDict +322 -0
  23. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/surfaceFeaturesDict +34 -0
  24. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/STAGE.txt +1 -0
  25. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/._run_all_shm.sh +0 -0
  26. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/U +88 -0
  27. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/k +60 -0
  28. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/nut +59 -0
  29. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/omega +62 -0
  30. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/p +56 -0
  31. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/U +88 -0
  32. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/k +60 -0
  33. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/nut +59 -0
  34. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/omega +62 -0
  35. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/p +55 -0
  36. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/README.md +2 -0
  37. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/transportProperties +20 -0
  38. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl +3 -0
  39. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/turbulenceProperties +24 -0
  40. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forceCoeffs_car +20 -0
  41. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forces +18 -0
  42. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/.DS_Store +0 -0
  43. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/config +38 -0
  44. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/geometry +56 -0
  45. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/plots.sh +6 -0
  46. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/residuals +15 -0
  47. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_all_shm.sh +72 -0
  48. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_mesh_shm.sh +30 -0
  49. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_solver_shm.sh +32 -0
  50. cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/.DS_Store +0 -0
.gitattributes CHANGED
@@ -11423,3 +11423,4 @@ cfd_workflow_20261012/**/wallShearStressMean filter=lfs diff=lfs merge=lfs -text
11423
  cfd_workflow_20261012/**/yPlus filter=lfs diff=lfs merge=lfs -text
11424
  cfd_workflow_20261012/**/yPlusMean filter=lfs diff=lfs merge=lfs -text
11425
  cfd_workflow_20261012/_seiler_ref/example_INIT_30_sim/constant/triSurface/car.stl.ori filter=lfs diff=lfs merge=lfs -text
 
 
11423
  cfd_workflow_20261012/**/yPlus filter=lfs diff=lfs merge=lfs -text
11424
  cfd_workflow_20261012/**/yPlusMean filter=lfs diff=lfs merge=lfs -text
11425
  cfd_workflow_20261012/_seiler_ref/example_INIT_30_sim/constant/triSurface/car.stl.ori filter=lfs diff=lfs merge=lfs -text
11426
+ cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/.DS_Store ADDED
Binary file (6.15 kB). View file
 
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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.238;
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.10 -2.06 -0.30 );
29
+ vr2_max ( 9.18 2.06 1.95 );
30
+
31
+ vr3_min ( 1.19 -1.56 -0.30 );
32
+ vr3_max ( 7.68 1.56 1.65 );
33
+
34
+ vr4_min ( 1.19 -1.06 -0.30 );
35
+ vr4_max ( 6.38 1.06 1.35 );
36
+ }
37
+
38
+ // ************************************************************************* //
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/.DS_Store ADDED
Binary file (6.15 kB). View file
 
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/._snappyHexMeshDict ADDED
Binary file (4.1 kB). View file
 
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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 16;
18
+ method scotch;
19
+
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/STAGE.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 2026-09-23T09:54:28Z snappyHexMesh
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/._run_all_shm.sh ADDED
Binary file (4.1 kB). View file
 
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/U ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volVectorField;
13
+ object U;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 1 -1 0 0 0 0 ];
18
+ internalField uniform (30 0.0 0.0);
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+
26
+ type fixedValue;
27
+ value uniform ( 30.0 0.0 0.0 );
28
+
29
+ /*
30
+ type uniformFixedValue;
31
+ uniformValue table
32
+ (
33
+ (0 (5 0 0))
34
+ //(20 (10 0 0))
35
+ //(40 (15 0 0))
36
+ //(60 (20 0 0))
37
+ //(80 (25 0 0))
38
+ (100 (30 0 0))
39
+ );
40
+ */
41
+
42
+ }
43
+
44
+ outlet
45
+ {
46
+ //type zeroGradient;
47
+ //value uniform ( 0.0 0.0 0.0 );
48
+
49
+ type inletOutlet;
50
+ inletValue uniform (30 0 0);
51
+ value uniform (30 0 0);
52
+ }
53
+
54
+ sides
55
+ {
56
+ type slip;
57
+ }
58
+
59
+ ground
60
+ {
61
+ type fixedValue;
62
+ value uniform ( 30.0 0.0 0.0 );
63
+
64
+ /*
65
+ type uniformFixedValue;
66
+ uniformValue table
67
+ (
68
+ (0 (5 0 0))
69
+ //(20 (10 0 0))
70
+ //(40 (15 0 0))
71
+ //(60 (20 0 0))
72
+ //(80 (25 0 0))
73
+ (100 (30 0 0))
74
+ );
75
+ */
76
+ }
77
+
78
+ top
79
+ {
80
+ type slip;
81
+ }
82
+
83
+ car
84
+ {
85
+ type fixedValue;
86
+ value uniform ( 0 0 0);
87
+ }
88
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/k ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object k;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 2 -2 0 0 0 0 ];
18
+ internalField uniform 3.375;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type fixedValue;
26
+ value uniform 3.375;
27
+ }
28
+
29
+ outlet
30
+ {
31
+ type zeroGradient;
32
+ }
33
+
34
+ sides
35
+ {
36
+ //type kqRWallFunction;
37
+ //value uniform 1e-20;
38
+ type slip;
39
+ }
40
+
41
+ ground
42
+ {
43
+ type kqRWallFunction;
44
+ value uniform 3.375;
45
+ }
46
+
47
+ top
48
+ {
49
+ //type kqRWallFunction;
50
+ //value uniform 1e-20;
51
+ type slip;
52
+ }
53
+
54
+ car
55
+ {
56
+ type kqRWallFunction;
57
+ value uniform 3.375;
58
+ }
59
+
60
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/nut ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object nut;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 2 -1 0 0 0 0 ];
18
+ internalField uniform 0.0001;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type zeroGradient;
26
+ }
27
+
28
+ outlet
29
+ {
30
+ type zeroGradient;
31
+ }
32
+
33
+ sides
34
+ {
35
+ //type nutUSpaldingWallFunction;
36
+ //value uniform 0.001;
37
+ type slip;
38
+ }
39
+
40
+ ground
41
+ {
42
+ type nutUSpaldingWallFunction;
43
+ value uniform 0.0001;
44
+ }
45
+
46
+ top
47
+ {
48
+ //type nutUSpaldingWallFunction;
49
+ //value uniform 0.001;
50
+ type slip;
51
+ }
52
+
53
+ car
54
+ {
55
+ type nutUSpaldingWallFunction;
56
+ value uniform 0.0001;
57
+ }
58
+
59
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/omega ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object omega;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 0 -1 0 0 0 0 ];
18
+ internalField uniform 9000;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type fixedValue;
26
+ value uniform 9000;
27
+ }
28
+
29
+ outlet
30
+ {
31
+ type zeroGradient;
32
+ }
33
+
34
+ sides
35
+ {
36
+ //type omegaWallFunction;
37
+ //value uniform 1;
38
+ type slip;
39
+ }
40
+
41
+ ground
42
+ {
43
+ type omegaWallFunction;
44
+ //value uniform 9000;
45
+ value uniform 500000;
46
+ }
47
+
48
+ top
49
+ {
50
+ //type omegaWallFunction;
51
+ //value uniform 1;
52
+ type slip;
53
+ }
54
+
55
+ car
56
+ {
57
+ type omegaWallFunction;
58
+ //value uniform 9000;
59
+ value uniform 500000;
60
+ }
61
+
62
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/p ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object p;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 2 -2 0 0 0 0 ];
18
+ internalField uniform 0.0;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type zeroGradient;
26
+ }
27
+
28
+ outlet
29
+ {
30
+ type fixedValue;
31
+ value uniform 0.0;
32
+ }
33
+
34
+ sides
35
+ {
36
+ //type zeroGradient;
37
+ type slip;
38
+ }
39
+
40
+ ground
41
+ {
42
+ type zeroGradient;
43
+ }
44
+
45
+ top
46
+ {
47
+ //type zeroGradient;
48
+ type slip;
49
+ }
50
+
51
+ car
52
+ {
53
+ type zeroGradient;
54
+ }
55
+
56
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/U ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volVectorField;
13
+ object U;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 1 -1 0 0 0 0 ];
18
+ internalField uniform (30 0.0 0.0);
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+
26
+ type fixedValue;
27
+ value uniform ( 30.0 0.0 0.0 );
28
+
29
+ /*
30
+ type uniformFixedValue;
31
+ uniformValue table
32
+ (
33
+ (0 (5 0 0))
34
+ //(20 (10 0 0))
35
+ //(40 (15 0 0))
36
+ //(60 (20 0 0))
37
+ //(80 (25 0 0))
38
+ (100 (30 0 0))
39
+ );
40
+ */
41
+
42
+ }
43
+
44
+ outlet
45
+ {
46
+ //type zeroGradient;
47
+ //value uniform ( 0.0 0.0 0.0 );
48
+
49
+ type inletOutlet;
50
+ inletValue uniform (30 0 0);
51
+ value uniform (30 0 0);
52
+ }
53
+
54
+ sides
55
+ {
56
+ type slip;
57
+ }
58
+
59
+ ground
60
+ {
61
+ type fixedValue;
62
+ value uniform ( 30.0 0.0 0.0 );
63
+
64
+ /*
65
+ type uniformFixedValue;
66
+ uniformValue table
67
+ (
68
+ (0 (5 0 0))
69
+ //(20 (10 0 0))
70
+ //(40 (15 0 0))
71
+ //(60 (20 0 0))
72
+ //(80 (25 0 0))
73
+ (100 (30 0 0))
74
+ );
75
+ */
76
+ }
77
+
78
+ top
79
+ {
80
+ type slip;
81
+ }
82
+
83
+ car
84
+ {
85
+ type fixedValue;
86
+ value uniform ( 0 0 0);
87
+ }
88
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/k ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object k;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 2 -2 0 0 0 0 ];
18
+ internalField uniform 3.375;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type fixedValue;
26
+ value uniform 3.375;
27
+ }
28
+
29
+ outlet
30
+ {
31
+ type zeroGradient;
32
+ }
33
+
34
+ sides
35
+ {
36
+ //type kqRWallFunction;
37
+ //value uniform 1e-20;
38
+ type slip;
39
+ }
40
+
41
+ ground
42
+ {
43
+ type kqRWallFunction;
44
+ value uniform 3.375;
45
+ }
46
+
47
+ top
48
+ {
49
+ //type kqRWallFunction;
50
+ //value uniform 1e-20;
51
+ type slip;
52
+ }
53
+
54
+ car
55
+ {
56
+ type kqRWallFunction;
57
+ value uniform 3.375;
58
+ }
59
+
60
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/nut ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object nut;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 2 -1 0 0 0 0 ];
18
+ internalField uniform 0.0001;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type zeroGradient;
26
+ }
27
+
28
+ outlet
29
+ {
30
+ type zeroGradient;
31
+ }
32
+
33
+ sides
34
+ {
35
+ //type nutUSpaldingWallFunction;
36
+ //value uniform 0.001;
37
+ type slip;
38
+ }
39
+
40
+ ground
41
+ {
42
+ type nutUSpaldingWallFunction;
43
+ value uniform 0.0001;
44
+ }
45
+
46
+ top
47
+ {
48
+ //type nutUSpaldingWallFunction;
49
+ //value uniform 0.001;
50
+ type slip;
51
+ }
52
+
53
+ car
54
+ {
55
+ type nutUSpaldingWallFunction;
56
+ value uniform 0.0001;
57
+ }
58
+
59
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/omega ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object omega;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 0 -1 0 0 0 0 ];
18
+ internalField uniform 9000;
19
+
20
+ boundaryField
21
+ {
22
+ #includeEtc "caseDicts/setConstraintTypes"
23
+ inlet
24
+ {
25
+ type fixedValue;
26
+ value uniform 9000;
27
+ }
28
+
29
+ outlet
30
+ {
31
+ type zeroGradient;
32
+ }
33
+
34
+ sides
35
+ {
36
+ //type omegaWallFunction;
37
+ //value uniform 1;
38
+ type slip;
39
+ }
40
+
41
+ ground
42
+ {
43
+ type omegaWallFunction;
44
+ //value uniform 9000;
45
+ value uniform 500000;
46
+ }
47
+
48
+ top
49
+ {
50
+ //type omegaWallFunction;
51
+ //value uniform 1;
52
+ type slip;
53
+ }
54
+
55
+ car
56
+ {
57
+ type omegaWallFunction;
58
+ //value uniform 9000;
59
+ value uniform 500000;
60
+ }
61
+
62
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/p ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 volScalarField;
13
+ object p;
14
+ }
15
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
+
17
+ dimensions [ 0 2 -2 0 0 0 0 ];
18
+ internalField uniform 0.0;
19
+
20
+ boundaryField
21
+ {
22
+ inlet
23
+ {
24
+ type zeroGradient;
25
+ }
26
+
27
+ outlet
28
+ {
29
+ type fixedValue;
30
+ value uniform 0.0;
31
+ }
32
+
33
+ sides
34
+ {
35
+ //type zeroGradient;
36
+ type slip;
37
+ }
38
+
39
+ ground
40
+ {
41
+ type zeroGradient;
42
+ }
43
+
44
+ top
45
+ {
46
+ //type zeroGradient;
47
+ type slip;
48
+ }
49
+
50
+ car
51
+ {
52
+ type zeroGradient;
53
+ }
54
+
55
+ }
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/README.md ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Experiment
2
+ Template.
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf1983fedc0027ab451bfec289390334a1544cc7de4e5a7203f6629871a29f27
3
+ size 96783484
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/.DS_Store ADDED
Binary file (6.15 kB). View file
 
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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.238;
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.10 -2.06 -0.30 );
29
+ vr2_max ( 9.18 2.06 1.95 );
30
+
31
+ vr3_min ( 1.19 -1.56 -0.30 );
32
+ vr3_max ( 7.68 1.56 1.65 );
33
+
34
+ vr4_min ( 1.19 -1.06 -0.30 );
35
+ vr4_max ( 6.38 1.06 1.35 );
36
+ }
37
+
38
+ // ************************************************************************* //
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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
cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/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/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/.DS_Store ADDED
Binary file (6.15 kB). View file