diff --git a/.gitattributes b/.gitattributes index 52a99b6b5ba32ee62a3865a0ee4e6fe6349f2367..54feb0733a113fc3b61526f4868874a8ebc90b03 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11423,3 +11423,4 @@ cfd_workflow_20261012/**/wallShearStressMean filter=lfs diff=lfs merge=lfs -text cfd_workflow_20261012/**/yPlus filter=lfs diff=lfs merge=lfs -text cfd_workflow_20261012/**/yPlusMean filter=lfs diff=lfs merge=lfs -text cfd_workflow_20261012/_seiler_ref/example_INIT_30_sim/constant/triSurface/car.stl.ori filter=lfs diff=lfs merge=lfs -text +cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl filter=lfs diff=lfs merge=lfs -text diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/constant/turbulenceProperties b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/constant/turbulenceProperties new file mode 100644 index 0000000000000000000000000000000000000000..a87c7f8a8999fb5a479f5b06c843aac5bbb0d19e --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/constant/turbulenceProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + turbulence on; + printCoeffs on; +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forceCoeffs_car b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forceCoeffs_car new file mode 100644 index 0000000000000000000000000000000000000000..234e0644650ef54d23efc83dcba928ac7b1d792d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forceCoeffs_car @@ -0,0 +1,20 @@ +#set yr [0:0.25] +set term pngcairo +set output "./images/forceCoeffs.png" +#set xr [0:3000] +set yr [0:2.0] +set key bottom right +set xlabel "Simulation time [s]" +set ylabel "forceCoeff [-]" +set title "Plot of forceCoeffs over simulationtime" +set grid + + +#plot "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($4) with lines title "lift_{coeff}",\ + "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($3) with lines title "drag_{coeff}" + +plot "./postProcessing/car/0/forceCoeffs.dat" using ($1):($4) with lines title "lift_{coeff}",\ + "./postProcessing/car/0/forceCoeffs.dat" using ($1):($3) with lines title "drag_{coeff}" + +#pause -1 +#reread \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forces b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forces new file mode 100644 index 0000000000000000000000000000000000000000..771e29e3bd1e38aae30c12dfa0ddaf94d07bb37d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/forces @@ -0,0 +1,18 @@ +#set yr [0:0.25] +set term pngcairo +set output "./images/forces.png" +#set xr [0:2000] +set yr [0:500] +set key bottom right +set xlabel "Simulation time [s]" +set ylabel "forces [N]" +set title "Plot of forces over simulationtime" +set grid + +#plot "./postProcessing/forces/0/forces_0.dat" using ($1):($4) with lines title "lift",\ + "./postProcessing/forces/0/forces_0.dat" using ($1):($3) with lines title "drag" + +plot "./postProcessing/forces/0/forces.dat" using ($1):($4) with lines title "lift",\ + "./postProcessing/forces/0/forces.dat" using ($1):($3) with lines title "drag" +#pause -1 +#reread diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/.DS_Store b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/.DS_Store differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/config b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/config new file mode 100644 index 0000000000000000000000000000000000000000..b21bb2aa3765d1d1c9191a2297516d5fedc46467 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/config @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object config; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +config +{ + /* controlDict */ + // Area of reference (projected area in x) + Aref 2.238; + + /* snappyHexMeshDict */ + // Refinement regions + vr1_min ( -7.50 -3.00 -0.30 ); + vr1_max ( 25.00 3.00 3.70 ); + + vr2_min ( -2.10 -2.06 -0.30 ); + vr2_max ( 9.18 2.06 1.95 ); + + vr3_min ( 1.19 -1.56 -0.30 ); + vr3_max ( 7.68 1.56 1.65 ); + + vr4_min ( 1.19 -1.06 -0.30 ); + vr4_max ( 6.38 1.06 1.35 ); +} + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/geometry b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/geometry new file mode 100644 index 0000000000000000000000000000000000000000..7dc3dec0ded7efcdede4d9ec4e2a126f3bbace52 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/include/geometry @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +//Name of .stl +name_stl car.stl; + +// Computational domain coordinates +x_min -15.0; +x_max 25.0; + +y_min -15.0; +y_max 15.0; + +z_min -0.3; +z_max 14.7; + +cell_division (80 60 30); +// Refinement box coordinates + +//fine box close to the car +x_min_ref -1.25; +x_max_ref 2.0; + +y_min_ref -1.25; +y_max_ref 1.25; + +z_min_ref -0.3; +z_max_ref 1.75; + +//medium box further away +x_min_ref_medium -2.0; +x_max_ref_medium 10.0; + +y_min_ref_medium -1.75; +y_max_ref_medium 1.75; + +z_min_ref_medium -0.3; +z_max_ref_medium 2.25; + +//coarse box just before far field +x_min_ref_coarse -3.0; +x_max_ref_coarse 15.0; + +y_min_ref_coarse -2.75; +y_max_ref_coarse 2.75; + +z_min_ref_coarse -0.3; +z_max_ref_coarse 2.75; + + +// ************************************************************************* // \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/plots.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/plots.sh new file mode 100644 index 0000000000000000000000000000000000000000..a89c1d1acc01d5ceddb69a4b128297788893e044 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/plots.sh @@ -0,0 +1,6 @@ +#!/bin/bash +dict=$1 +mkdir -p ./images +#gnuplot $dict/forces +gnuplot $dict/forceCoeffs_car +gnuplot $dict/residuals \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/residuals b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/residuals new file mode 100644 index 0000000000000000000000000000000000000000..14e42308536cb9041ca8938686d419d1806d3c57 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/residuals @@ -0,0 +1,15 @@ +set term pngcairo +set output "./images/residuals.png" +set logscale y +set yr [0.0000001:1] +set title "Residuals" +set ylabel 'Residual' +set xlabel 'Iteration' +plot "< cat logs/log.solver | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ + "< cat logs/log.solver | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ + "< cat logs/log.solver | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ + "< cat logs/log.solver | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\ + "< cat logs/log.solver | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\ + #"< cat logs/log.solver | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines +#pause -1 +#reread diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_all_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_all_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a13c05c826a642dac48f9b35d9da3ad9fccc2d1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_all_shm.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +# Verify if already finished by checking the plotting folder +ITERMAX=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d images ]] && [[ -d $ITERMAX ]] && [[ -f simulation.done ]]; then + echo "Experiment at $(pwd) is already finished! Passing..." + exit 0 +fi + +mkdir -p logs + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." +MAXITER=2500 # max iter of the simulations + +# If car.foam, then must have at least meshed -> skip +if [[ ! -f car.foam ]]; then + foamCleanTutorials + #rm -rf 0 > /dev/null 2>&1 + + #PART DEDICATED TO MESHING + surfaceFeatures | tee logs/log.surfaceFeatures + blockMesh | tee logs/log.blockMesh + + decomposePar + (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm + mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh + + reconstructParMesh -constant + rm -r ./processor* + + touch car.foam +fi + +#PART DEDICATED TO SOLVER +# If processor0 -> must have been doing solver (assuming not already finished and removed!) +if [[ ! -d processor0 ]]; then + decomposePar -force -copyZero + + mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber + mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential +fi +(time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver + +# If solver has finished, do rest +ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d processor0/$ENDTIME ]]; then + reconstructPar -latestTime + + rm -r ./processor* + + ./plots.sh . + + touch car.foam + + touch simulation.done +fi + +# # Copy UMean as U to compute vorticity on UMean automatically +# cp $MAXITER/UMean $MAXITER/U + +# # Compute vorticity +# postProcess -func vorticity -latestTime + +# # Remove copied U (ignore if non-existent) +# rm -f $MAXITER/U diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_mesh_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_mesh_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..361eddfe77dd51d99c455e3553de1889b2508139 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_mesh_shm.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." + +# If car.foam, then must have at least meshed -> skip +if [[ ! -f car.foam ]]; then + foamCleanTutorials + #rm -rf 0 > /dev/null 2>&1 + + surfaceFeatures | tee logs/log.surfaceFeatures + blockMesh | tee logs/log.blockMesh + + decomposePar + (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm + mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh + + reconstructParMesh -constant + # rm -rf 0 > /dev/null 2>&1 + # cp -r 0_org 0 > /dev/null 2>&1 + rm -r ./processor* + + touch car.foam +fi diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_solver_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_solver_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..872d05bd12b28bdf790fe66e148ee13dfd28a118 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/run_solver_shm.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." + +#PART DEDICATED TO SOLVER +# If processor0 -> must have been doing solver (assuming not already finished and removed!) +if [[ ! -d processor0 ]]; then + decomposePar -force -copyZero + + mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber + mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential +fi +(time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver + +# If solver has finished, do rest +ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d processor0/$ENDTIME ]]; then + reconstructPar -latestTime + + rm -r ./processor* + + ./plots.sh . + + touch car.foam +fi diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/.DS_Store b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/.DS_Store differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/._snappyHexMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/._snappyHexMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..2d8c802c5694d932033382b968937ccdc9ccb25f Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/._snappyHexMeshDict differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/blockMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/blockMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..5652745415ba1f9aef73769b9ec8c8e4a479ef8c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/blockMeshDict @@ -0,0 +1,121 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +x_min -12; +x_max 32; +y_min -4; +y_max 4; +z_min -0.3; +z_max 6.4; + +//xcells 22; +//ycells 4; +//zcells 4; + + +//deltax 0.2; //0.05 +//deltay 0.2; //0.05 +//deltaz 0.2; //0.05 +// +//lx #calc "($xmax) - ($xmin)"; +//ly #calc "($ymax) - ($ymin)"; +//lz #calc "($zmax) - ($zmin)"; +// +//xcells #calc "round(($lx)/($deltax))"; +//ycells #calc "round(($ly)/($deltay))"; +//zcells #calc "round(($lz)/($deltaz))"; + + +xcells 220; // MANUALLY CALCULATED BECAUSE WMAKE FAILED +ycells 40; +zcells 34; + +vertices +( + ($x_min $y_min $z_min) + ($x_max $y_min $z_min) + ($x_max $y_max $z_min) + ($x_min $y_max $z_min) + ($x_min $y_min $z_max) + ($x_max $y_min $z_max) + ($x_max $y_max $z_max) + ($x_min $y_max $z_max) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) ($xcells $ycells $zcells) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + inlet + { + type patch; + faces + ( + (0 4 7 3) + ); + } + + outlet + { + type patch; + faces + ( + (2 6 5 1) + ); + } + + sides + { + type patch; + faces + ( + (3 7 6 2) + (0 1 5 4) + ); + } + + ground + { + type wall; + faces + ( + (0 3 2 1) + ); + } + + top + { + type patch; + faces + ( + (4 5 6 7) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/controlDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/controlDict new file mode 100644 index 0000000000000000000000000000000000000000..04dc95d234d2a9b2298177d731c0ae17d96541d5 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/controlDict @@ -0,0 +1,333 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#include "../include/config" + + +application simpleFoam; + +// startFrom startTime; +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 2500; //1000-3000-5000 +averageStart 1500; // 1K iters before the end + +deltaT 1; + +writeControl timeStep; + +writeInterval 500; + +/* +secondaryWriteControl cpuTime; +secondaryWriteInterval 1000; +secondaryPurgeWrite 1; +*/ + +purgeWrite 2; + +writeFormat binary; + +writePrecision 12; + +writeCompression off; //uncompressed + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + + + + +// ************************************************************************* // + +functions +{ +carForces +{ + type forces; + functionObjectLibs ("libforces.so"); + patches ("car"); + rho rhoInf; + rhoInf 1.205; + CofR (0 0 0); + porosity false; + log false; + writeControl timeStep; + writeInterval 1; +} + + +/////////////////////////////////////////////////////////////////////////// +car +{ + log yes; + enabled yes; + + type forceCoeffs; + functionObjectLibs ( "libforces.so"); + + patches ( "car"); + + rho rhoInf; + rhoInf 1.205; + + CofR ( 0 0 0); + liftDir ( 0 0 1); + dragDir ( 1 0 0); + pitchAxis ( 0 1 0); + magUInf 30; + lRef 1; //length in x //1; + Aref $!config/Aref; //projected area in x //drivAer=2.146952 + writeControl timeStep; + writeInterval 1; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +yplus +{ + type yPlus; + functionObjectLibs ("libfieldFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + writeInterval 25; + + log true; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// +Q +{ + type Q; + functionObjectLibs ("libutilityFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + //writeInterval 1; + + //log true; +} +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +minmaxdomain_scalar +{ + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + + enabled true; //true or false + log true; //write to screen + + //writeControl writeTime; + writeControl timeStep; + writeInterval 1; + + writeFields false; //write solution to field value - Not needed when only reporting value to screen + + writeLocation true; //write location in the output file + + //mode component; + + regionType all; + + operation none; + + fields + ( + p k omega nut + ); +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +wallShearStress1 +{ + type wallShearStress; + functionObjectLibs ("libutilityFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + //writeInterval 1; + + //log true; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + + fieldAverage + { + type fieldAverage; + functionObjectLibs ("libfieldFunctionObjects.so"); + enabled true; + writeControl outputTime; + + //writeControl timeStep; + //writeInterval 100; + + //cleanRestart true; + + timeStart $!averageStart; // see top of file, should be 1K iters before endTime + //timeEnd 1000; + + fields + ( + U + { + mean on; + prime2Mean on; + base time; + } + + p + { + mean on; + prime2Mean on; + base time; + } + + nut + { + mean on; + prime2Mean on; + base time; + } + + k + { + mean on; + prime2Mean off; + base time; + } + + omega + { + mean on; + prime2Mean off; + base time; + } + + Q + { + mean on; + prime2Mean off; + base time; + } + + yPlus + { + mean on; + prime2Mean off; + base time; + } + + wallShearStress + { + mean on; + prime2Mean off; + base time; + } + + ); + } + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +minmaxdomain_vector +{ + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + + enabled true; //true or false + log true; //write to screen + + //writeControl writeTime; + writeControl timeStep; + writeInterval 1; + + writeFields false; //write solution to field value - Not needed when only reporting value to screen + + writeLocation true; //write location in the output file + + //mode component; + + regionType all; + + operation none; + + fields + ( + U + ); +} + +mindomain_scalar +{ + $minmaxdomain_scalar + operation min; +} + +mindomain_vector +{ + $minmaxdomain_vector + operation minMag; +} + +maxdomain_scalar +{ + $minmaxdomain_scalar + operation max; +} + +maxdomain_vector +{ + $minmaxdomain_vector + operation maxMag; +} + +/////////////////////////////////////////////////////////////////////////// + + +}; diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/decomposeParDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/decomposeParDict new file mode 100644 index 0000000000000000000000000000000000000000..3283b86bd9ac38d375127aaf93305d0303f5394f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/decomposeParDict @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + numberOfSubdomains 16; + method scotch; + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvConstraints b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvConstraints new file mode 100644 index 0000000000000000000000000000000000000000..f118edd9bdd5683dca879a301623ed4143299b9f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvConstraints @@ -0,0 +1,28 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvConstraints; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +//To control on/off just modify the value. +//In this case a large value is like off +//Use from the begining so the object it is created + +limitU +{ + type limitVelocity; + selectionMode all; + max 200; //100 - 10000 (large value is off) +} + +//************************************************************************** // + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSchemes b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSchemes new file mode 100644 index 0000000000000000000000000000000000000000..7a9c59cdd42076680fbe1bb63b998855aed1cf67 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSchemes @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + ddtSchemes + { + default steadyState; + } + + gradSchemes + { + //default Gauss linear; + default cellLimited Gauss linear 1; + grad(U) cellLimited Gauss linear 1; + grad(k) cellLimited Gauss linear 1; + grad(omega) cellLimited Gauss linear 1; + grad(p) cellLimited Gauss linear 0.333; + } + + divSchemes + { + default none; + + //div(phi,U) bounded Gauss linearUpwindV grad(U); + div(phi,U) bounded Gauss linearUpwind grad(U); + + //div(phi,k) bounded Gauss linearUpwind grad(k); + //div(phi,omega) bounded Gauss linearUpwind grad(omega); + div(phi,k) bounded Gauss upwind; + div(phi,omega) bounded Gauss upwind; + + div((nuEff*dev2(T(grad(U))))) Gauss linear; + +//For potentialFoam + div(div(phi,U)) Gauss linear; + + } + + interpolationSchemes + { + //default linear; + default skewCorrected linear; + } + + laplacianSchemes + { + default Gauss linear limited 0.5; + } + + snGradSchemes + { + default limited 0.5; + } + + wallDist + { + method meshWave; + } diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSolution b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSolution new file mode 100644 index 0000000000000000000000000000000000000000..fd57a585baeee7026e9383e8e73b966cf0779098 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/fvSolution @@ -0,0 +1,175 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + solvers + { + p + { + + solver GAMG; + tolerance 1e-06; + relTol 0.01; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration on; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; +/* + + solver PCG; + preconditioner + { + preconditioner GAMG; + tolerance 1e-06; //1e-06 1e-08 + relTol 0.0; //0.01 0 + nVcycles 2; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration false; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + tolerance 1e-06; + relTol 0.01; + //maxIter 20; + + + solver PCG; + preconditioner DIC; + tolerance 1e-6; + relTol 0.01; +*/ + + minIter 3; + } + + U + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + + k + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + + omega + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + +/* + Phi + { + $p; + } +*/ + + Phi + { + solver GAMG; + agglomerator faceAreaPair; + mergeLevels 1; + cacheAgglomeration true; + nCellsInCoarsestLevel 200; + tolerance 1e-8; + relTol 0.001; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + minIter 3; + } + + } + + potentialFlow + { + nNonOrthogonalCorrectors 10; + } + + SIMPLE + { + consistent yes; + nNonOrthogonalCorrectors 2; + + pRefCell 0; + pRefValue 0; + + residualControl {} + + } + +//SIMPLE +/* + relaxationFactors + { + fields + { + p 0.3; + } + + equations + { + U 0.7; + k 0.5; + omega 0.5; + } + + } +*/ + +//SIMPLEC + + relaxationFactors + { + fields + { + //".*" 0.7; + p 0.9; + } + equations + { + //".*" 0.7; + p 0.9; + U 0.7; + k 0.7; + omega 0.7; + } + } + + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/meshQualityDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/meshQualityDict new file mode 100644 index 0000000000000000000000000000000000000000..485ffbf78a759b69fa33e50f8ecb96245a82bfa5 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/meshQualityDict @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object meshQualityDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +maxNonOrtho 75; +maxBoundarySkewness 4; //Original 20 for better quality 4 +maxInternalSkewness 4; + +/* +maxNonOrtho 180; +maxBoundarySkewness -1; +maxInternalSkewness -1; +*/ + +maxConcave 80; + +minVol 1e-13; + +minTetQuality -1e+30; + +minArea -1; + +minTwist 0.02; + +minDeterminant 0.001; + +minFaceWeight 0.05; +//minFaceWeight 0.02; + +minVolRatio 0.01; + +minTriangleTwist -1; + +//minFlatness 0.5; + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/snappyHexMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/snappyHexMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..a4c34526ab1098437a9dc2076065f0ef5064d0cb --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/snappyHexMeshDict @@ -0,0 +1,322 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object snappyHexMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#include "../include/config" + +/***************************************************/ +castellatedMesh true; +snap true; +addLayers true; +/***************************************************/ + + + +/***************************************************/ + +geometry +{ + + car.stl + { + type triSurfaceMesh; + name car; + } + + + vr1 + { + type searchableBox; + min $!config/vr1_min; + max $!config/vr1_max; + } + + vr2 + { + type searchableBox; + min $!config/vr2_min; + max $!config/vr2_max; + } + + vr3 + { + type searchableBox; + min $!config/vr3_min; + max $!config/vr3_max; + } + + vr4 + { + type searchableBox; + min $!config/vr4_min; + max $!config/vr4_max; + } + + + /* + vr1 + { + type searchableBox; + min ( -7.5 -3.0 -0.3 ); + max ( 25.0 3.0 3.7 ); + } + + vr2 + { + type searchableBox; + //min ( -3.0 0.0 0.0 ); + //max ( 15.0 2.0 3.0 ); + min ( -2.0 -2.0 -0.3 ); + max ( 9.0 2.0 1.7 ); // 6.0 2.0 1.7 + } + + vr3 + { + type searchableBox; + min ( 2.5 -1.5 -0.3 ); + max ( 7.5 1.5 1.4 ); // 6.5 1.5 1.4 + } + + vr4 + { + type searchableBox; + min ( 3.2 -1 -0.3 ); + max ( 6.2 1.0 1.0 ); // 5.2 1.0 1.0 + } + */ +} + +/***************************************************/ + + + +/***************************************************/ + +castellatedMeshControls +{ + + maxLocalCells 5000000; + maxGlobalCells 30000000; //******* + minRefinementCells 0; + nCellsBetweenLevels 10; // 5 + resolveFeatureAngle 30.0; //curvature + allowFreeStandingZoneFaces true; + planarAngle 30.0; + maxLoadUnbalance 0.1; + + locationInMesh (10.0 1.0 1.0 ); + + +////////////////////////////////////// + features + ( + + { + file "car.eMesh"; + levels ((0.025 0)); + //level 0; + } + + ); +////////////////////////////////////// + + +////////////////////////////////////// + refinementSurfaces + { + car + { + level ( 4 5 ); // 2 4 - 4 4 + } + + } +////////////////////////////////////// + + +////////////////////////////////////// + refinementRegions + { + + vr1 + { + mode inside; + levels (( 1E5 1 )); + } + + vr2 + { + mode inside; + levels (( 1E5 2 )); + } + + vr3 + { + mode inside; + levels (( 1E5 3 )); + } + + vr4 + { + mode inside; + levels (( 1E5 4 )); // 1E5 4 + } + + } +////////////////////////////////////// + +} + +/***************************************************/ + + + +/***************************************************/ + +snapControls +{ + +// Number of patch smoothing iterations before finding correspondence +// to surface +nSmoothPatch 3; //recommended +//nSmoothPatch 10; //improved + +tolerance 2.0; +//tolerance 1.0; + +nSolveIter 30; //recommended +//nSolveIter 100; //improved + +nRelaxIter 5; //default +//nRelaxIter 10; //improved 10-20-50 + +// Feature snapping + + // Number of feature edge snapping iterations. + // Leave out altogether to disable. + nFeatureSnapIter 10; //recommended + //nFeatureSnapIter 100; //improved 20-50-100 + + // Detect (geometric only) features by sampling the surface + // (default=false). + implicitFeatureSnap false; + + // Use castellatedMeshControls::features (default = true) + explicitFeatureSnap true; + + // Detect features between multiple surfaces + // (only for explicitFeatureSnap, default = false) + multiRegionFeatureSnap false; + +} + +/***************************************************/ + + + + +/***************************************************/ + +addLayersControls +{ + +///////////////////////////////////////////// + relativeSizes true; + + expansionRatio 1.2; //1.0; + finalLayerThickness 0.3; + minThickness 0.01; //0.1 0.25 +///////////////////////////////////////////// + + + layers + { + + car + { + nSurfaceLayers 6; + expansionRatio 1.1; + finalLayerThickness 0.3; + minThickness 0.01; + } + + ground + { + nSurfaceLayers 6; + expansionRatio 1.2; + finalLayerThickness 0.3; + minThickness 0.01; + } + + } + + +///////////////////////////////////////////// + nGrow 0; + + featureAngle 130.0; + + maxFaceThicknessRatio 0.5; + + nSmoothSurfaceNormals 1; + nSmoothNormals 3; + nSmoothThickness 10; + + slipFeatureAngle 30.0; + nRelaxIter 5; + + maxThicknessToMedialRatio 0.3; + + minMedialAxisAngle 90; + minMedianAxisAngle 90; + + nBufferCellsNoExtrude 0; + nLayerIter 50; + nRelaxedIter 20; + + //writeVTK false; + //noErrors false; + //layerRecovery 1; + //growZoneLayers false; + //projectGrownUp 0.0; +///////////////////////////////////////////// + +} + +/***************************************************/ + + + + +/***************************************************/ + +meshQualityControls +{ + #include "meshQualityDict" + + nSmoothScale 4; + errorReduction 0.75; + + relaxed + { + maxNonOrtho 75; + } + +} + +/***************************************************/ + + +debug 0; +mergeTolerance 1.0E-6; +//autoBlockMesh false; diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/surfaceFeaturesDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/surfaceFeaturesDict new file mode 100644 index 0000000000000000000000000000000000000000..b98166722df51048ec84e897563c807290f7b37c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/initial/prepared/system/surfaceFeaturesDict @@ -0,0 +1,34 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object surfaceFeatureExtractDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces ("car.stl"); + +extractionMethod extractFromSurface; + +includedAngle 150; + +subsetFeatures +{ + // Keep nonManifold edges (edges with >2 connected faces) + nonManifoldEdges yes; + + // Keep open edges (edges with 1 connected face) + openEdges yes; +} + +// Write features to obj format for postprocessing +writeObj yes; + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/STAGE.txt b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/STAGE.txt new file mode 100644 index 0000000000000000000000000000000000000000..366ab42518e9773aff8114b995c1094fcf44f666 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/STAGE.txt @@ -0,0 +1 @@ +2026-09-23T09:54:28Z snappyHexMesh diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/._run_all_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/._run_all_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b79678ac7c6eef0dcf07f74df68d46f92a924f1b Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/._run_all_shm.sh differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/U b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/U new file mode 100644 index 0000000000000000000000000000000000000000..5769e79855336fd3cfd9be718253e66f5c745dd8 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/U @@ -0,0 +1,88 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 1 -1 0 0 0 0 ]; +internalField uniform (30 0.0 0.0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + + } + + outlet + { + //type zeroGradient; + //value uniform ( 0.0 0.0 0.0 ); + + type inletOutlet; + inletValue uniform (30 0 0); + value uniform (30 0 0); + } + + sides + { + type slip; + } + + ground + { + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + } + + top + { + type slip; + } + + car + { + type fixedValue; + value uniform ( 0 0 0); + } +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/k b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/k new file mode 100644 index 0000000000000000000000000000000000000000..3fbd5f6027c8e931e018cc02da50c2bbd0831fc1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/k @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 3.375; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 3.375; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + ground + { + type kqRWallFunction; + value uniform 3.375; + } + + top + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + car + { + type kqRWallFunction; + value uniform 3.375; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/nut b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/nut new file mode 100644 index 0000000000000000000000000000000000000000..7cc736fd68245464e1f551f416639189b1d2c3ee --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/nut @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -1 0 0 0 0 ]; +internalField uniform 0.0001; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + ground + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + + top + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + car + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/omega b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/omega new file mode 100644 index 0000000000000000000000000000000000000000..abb9403abbbecb24411e3e29e7e9ae75c9b5b779 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/omega @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 -1 0 0 0 0 ]; +internalField uniform 9000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 9000; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + ground + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + + top + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + car + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/p b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/p new file mode 100644 index 0000000000000000000000000000000000000000..fc09297236df88eb7bd8fd91833cb28a6bad8464 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0/p @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 0.0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type zeroGradient; + } + + outlet + { + type fixedValue; + value uniform 0.0; + } + + sides + { + //type zeroGradient; + type slip; + } + + ground + { + type zeroGradient; + } + + top + { + //type zeroGradient; + type slip; + } + + car + { + type zeroGradient; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/U b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/U new file mode 100644 index 0000000000000000000000000000000000000000..5769e79855336fd3cfd9be718253e66f5c745dd8 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/U @@ -0,0 +1,88 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 1 -1 0 0 0 0 ]; +internalField uniform (30 0.0 0.0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + + } + + outlet + { + //type zeroGradient; + //value uniform ( 0.0 0.0 0.0 ); + + type inletOutlet; + inletValue uniform (30 0 0); + value uniform (30 0 0); + } + + sides + { + type slip; + } + + ground + { + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + } + + top + { + type slip; + } + + car + { + type fixedValue; + value uniform ( 0 0 0); + } +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/k b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/k new file mode 100644 index 0000000000000000000000000000000000000000..3fbd5f6027c8e931e018cc02da50c2bbd0831fc1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/k @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 3.375; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 3.375; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + ground + { + type kqRWallFunction; + value uniform 3.375; + } + + top + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + car + { + type kqRWallFunction; + value uniform 3.375; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/nut b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/nut new file mode 100644 index 0000000000000000000000000000000000000000..7cc736fd68245464e1f551f416639189b1d2c3ee --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/nut @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -1 0 0 0 0 ]; +internalField uniform 0.0001; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + ground + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + + top + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + car + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/omega b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/omega new file mode 100644 index 0000000000000000000000000000000000000000..abb9403abbbecb24411e3e29e7e9ae75c9b5b779 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/omega @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 -1 0 0 0 0 ]; +internalField uniform 9000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 9000; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + ground + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + + top + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + car + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/p b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/p new file mode 100644 index 0000000000000000000000000000000000000000..a6c6175f19ff93896acbb705f2185d1e873fb459 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/0_org/p @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 0.0; + +boundaryField +{ + inlet + { + type zeroGradient; + } + + outlet + { + type fixedValue; + value uniform 0.0; + } + + sides + { + //type zeroGradient; + type slip; + } + + ground + { + type zeroGradient; + } + + top + { + //type zeroGradient; + type slip; + } + + car + { + type zeroGradient; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/README.md b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/README.md new file mode 100644 index 0000000000000000000000000000000000000000..64257758096adc411dea9ac934e4af58f47fd8ea --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/README.md @@ -0,0 +1,2 @@ +# Experiment +Template. \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/transportProperties b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/transportProperties new file mode 100644 index 0000000000000000000000000000000000000000..c96a5beb6a77b30738b977bcdf55adcc2961c822 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/transportProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +transportModel Newtonian; + +nu nu [0 2 -1 0 0 0 0 ] 1.5881327800829875E-5; + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl new file mode 100644 index 0000000000000000000000000000000000000000..83f2f91526c861424816361dc23bce44e72d217f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/triSurface/car.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf1983fedc0027ab451bfec289390334a1544cc7de4e5a7203f6629871a29f27 +size 96783484 diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/turbulenceProperties b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/turbulenceProperties new file mode 100644 index 0000000000000000000000000000000000000000..a87c7f8a8999fb5a479f5b06c843aac5bbb0d19e --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/constant/turbulenceProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + turbulence on; + printCoeffs on; +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forceCoeffs_car b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forceCoeffs_car new file mode 100644 index 0000000000000000000000000000000000000000..234e0644650ef54d23efc83dcba928ac7b1d792d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forceCoeffs_car @@ -0,0 +1,20 @@ +#set yr [0:0.25] +set term pngcairo +set output "./images/forceCoeffs.png" +#set xr [0:3000] +set yr [0:2.0] +set key bottom right +set xlabel "Simulation time [s]" +set ylabel "forceCoeff [-]" +set title "Plot of forceCoeffs over simulationtime" +set grid + + +#plot "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($4) with lines title "lift_{coeff}",\ + "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($3) with lines title "drag_{coeff}" + +plot "./postProcessing/car/0/forceCoeffs.dat" using ($1):($4) with lines title "lift_{coeff}",\ + "./postProcessing/car/0/forceCoeffs.dat" using ($1):($3) with lines title "drag_{coeff}" + +#pause -1 +#reread \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forces b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forces new file mode 100644 index 0000000000000000000000000000000000000000..771e29e3bd1e38aae30c12dfa0ddaf94d07bb37d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/forces @@ -0,0 +1,18 @@ +#set yr [0:0.25] +set term pngcairo +set output "./images/forces.png" +#set xr [0:2000] +set yr [0:500] +set key bottom right +set xlabel "Simulation time [s]" +set ylabel "forces [N]" +set title "Plot of forces over simulationtime" +set grid + +#plot "./postProcessing/forces/0/forces_0.dat" using ($1):($4) with lines title "lift",\ + "./postProcessing/forces/0/forces_0.dat" using ($1):($3) with lines title "drag" + +plot "./postProcessing/forces/0/forces.dat" using ($1):($4) with lines title "lift",\ + "./postProcessing/forces/0/forces.dat" using ($1):($3) with lines title "drag" +#pause -1 +#reread diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/.DS_Store b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/.DS_Store differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/config b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/config new file mode 100644 index 0000000000000000000000000000000000000000..b21bb2aa3765d1d1c9191a2297516d5fedc46467 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/config @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object config; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +config +{ + /* controlDict */ + // Area of reference (projected area in x) + Aref 2.238; + + /* snappyHexMeshDict */ + // Refinement regions + vr1_min ( -7.50 -3.00 -0.30 ); + vr1_max ( 25.00 3.00 3.70 ); + + vr2_min ( -2.10 -2.06 -0.30 ); + vr2_max ( 9.18 2.06 1.95 ); + + vr3_min ( 1.19 -1.56 -0.30 ); + vr3_max ( 7.68 1.56 1.65 ); + + vr4_min ( 1.19 -1.06 -0.30 ); + vr4_max ( 6.38 1.06 1.35 ); +} + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/geometry b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/geometry new file mode 100644 index 0000000000000000000000000000000000000000..7dc3dec0ded7efcdede4d9ec4e2a126f3bbace52 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/include/geometry @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +//Name of .stl +name_stl car.stl; + +// Computational domain coordinates +x_min -15.0; +x_max 25.0; + +y_min -15.0; +y_max 15.0; + +z_min -0.3; +z_max 14.7; + +cell_division (80 60 30); +// Refinement box coordinates + +//fine box close to the car +x_min_ref -1.25; +x_max_ref 2.0; + +y_min_ref -1.25; +y_max_ref 1.25; + +z_min_ref -0.3; +z_max_ref 1.75; + +//medium box further away +x_min_ref_medium -2.0; +x_max_ref_medium 10.0; + +y_min_ref_medium -1.75; +y_max_ref_medium 1.75; + +z_min_ref_medium -0.3; +z_max_ref_medium 2.25; + +//coarse box just before far field +x_min_ref_coarse -3.0; +x_max_ref_coarse 15.0; + +y_min_ref_coarse -2.75; +y_max_ref_coarse 2.75; + +z_min_ref_coarse -0.3; +z_max_ref_coarse 2.75; + + +// ************************************************************************* // \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/plots.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/plots.sh new file mode 100644 index 0000000000000000000000000000000000000000..a89c1d1acc01d5ceddb69a4b128297788893e044 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/plots.sh @@ -0,0 +1,6 @@ +#!/bin/bash +dict=$1 +mkdir -p ./images +#gnuplot $dict/forces +gnuplot $dict/forceCoeffs_car +gnuplot $dict/residuals \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/residuals b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/residuals new file mode 100644 index 0000000000000000000000000000000000000000..14e42308536cb9041ca8938686d419d1806d3c57 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/residuals @@ -0,0 +1,15 @@ +set term pngcairo +set output "./images/residuals.png" +set logscale y +set yr [0.0000001:1] +set title "Residuals" +set ylabel 'Residual' +set xlabel 'Iteration' +plot "< cat logs/log.solver | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ + "< cat logs/log.solver | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ + "< cat logs/log.solver | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ + "< cat logs/log.solver | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\ + "< cat logs/log.solver | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\ + #"< cat logs/log.solver | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines +#pause -1 +#reread diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_all_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_all_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a13c05c826a642dac48f9b35d9da3ad9fccc2d1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_all_shm.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +# Verify if already finished by checking the plotting folder +ITERMAX=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d images ]] && [[ -d $ITERMAX ]] && [[ -f simulation.done ]]; then + echo "Experiment at $(pwd) is already finished! Passing..." + exit 0 +fi + +mkdir -p logs + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." +MAXITER=2500 # max iter of the simulations + +# If car.foam, then must have at least meshed -> skip +if [[ ! -f car.foam ]]; then + foamCleanTutorials + #rm -rf 0 > /dev/null 2>&1 + + #PART DEDICATED TO MESHING + surfaceFeatures | tee logs/log.surfaceFeatures + blockMesh | tee logs/log.blockMesh + + decomposePar + (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm + mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh + + reconstructParMesh -constant + rm -r ./processor* + + touch car.foam +fi + +#PART DEDICATED TO SOLVER +# If processor0 -> must have been doing solver (assuming not already finished and removed!) +if [[ ! -d processor0 ]]; then + decomposePar -force -copyZero + + mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber + mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential +fi +(time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver + +# If solver has finished, do rest +ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d processor0/$ENDTIME ]]; then + reconstructPar -latestTime + + rm -r ./processor* + + ./plots.sh . + + touch car.foam + + touch simulation.done +fi + +# # Copy UMean as U to compute vorticity on UMean automatically +# cp $MAXITER/UMean $MAXITER/U + +# # Compute vorticity +# postProcess -func vorticity -latestTime + +# # Remove copied U (ignore if non-existent) +# rm -f $MAXITER/U diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_mesh_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_mesh_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..361eddfe77dd51d99c455e3553de1889b2508139 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_mesh_shm.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." + +# If car.foam, then must have at least meshed -> skip +if [[ ! -f car.foam ]]; then + foamCleanTutorials + #rm -rf 0 > /dev/null 2>&1 + + surfaceFeatures | tee logs/log.surfaceFeatures + blockMesh | tee logs/log.blockMesh + + decomposePar + (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm + mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh + + reconstructParMesh -constant + # rm -rf 0 > /dev/null 2>&1 + # cp -r 0_org 0 > /dev/null 2>&1 + rm -r ./processor* + + touch car.foam +fi diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_solver_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_solver_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..872d05bd12b28bdf790fe66e148ee13dfd28a118 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/run_solver_shm.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." + +#PART DEDICATED TO SOLVER +# If processor0 -> must have been doing solver (assuming not already finished and removed!) +if [[ ! -d processor0 ]]; then + decomposePar -force -copyZero + + mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber + mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential +fi +(time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver + +# If solver has finished, do rest +ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d processor0/$ENDTIME ]]; then + reconstructPar -latestTime + + rm -r ./processor* + + ./plots.sh . + + touch car.foam +fi diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/.DS_Store b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/.DS_Store differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/._snappyHexMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/._snappyHexMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..2d8c802c5694d932033382b968937ccdc9ccb25f Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/._snappyHexMeshDict differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/blockMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/blockMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..5652745415ba1f9aef73769b9ec8c8e4a479ef8c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/blockMeshDict @@ -0,0 +1,121 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +x_min -12; +x_max 32; +y_min -4; +y_max 4; +z_min -0.3; +z_max 6.4; + +//xcells 22; +//ycells 4; +//zcells 4; + + +//deltax 0.2; //0.05 +//deltay 0.2; //0.05 +//deltaz 0.2; //0.05 +// +//lx #calc "($xmax) - ($xmin)"; +//ly #calc "($ymax) - ($ymin)"; +//lz #calc "($zmax) - ($zmin)"; +// +//xcells #calc "round(($lx)/($deltax))"; +//ycells #calc "round(($ly)/($deltay))"; +//zcells #calc "round(($lz)/($deltaz))"; + + +xcells 220; // MANUALLY CALCULATED BECAUSE WMAKE FAILED +ycells 40; +zcells 34; + +vertices +( + ($x_min $y_min $z_min) + ($x_max $y_min $z_min) + ($x_max $y_max $z_min) + ($x_min $y_max $z_min) + ($x_min $y_min $z_max) + ($x_max $y_min $z_max) + ($x_max $y_max $z_max) + ($x_min $y_max $z_max) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) ($xcells $ycells $zcells) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + inlet + { + type patch; + faces + ( + (0 4 7 3) + ); + } + + outlet + { + type patch; + faces + ( + (2 6 5 1) + ); + } + + sides + { + type patch; + faces + ( + (3 7 6 2) + (0 1 5 4) + ); + } + + ground + { + type wall; + faces + ( + (0 3 2 1) + ); + } + + top + { + type patch; + faces + ( + (4 5 6 7) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/controlDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/controlDict new file mode 100644 index 0000000000000000000000000000000000000000..04dc95d234d2a9b2298177d731c0ae17d96541d5 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/controlDict @@ -0,0 +1,333 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#include "../include/config" + + +application simpleFoam; + +// startFrom startTime; +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 2500; //1000-3000-5000 +averageStart 1500; // 1K iters before the end + +deltaT 1; + +writeControl timeStep; + +writeInterval 500; + +/* +secondaryWriteControl cpuTime; +secondaryWriteInterval 1000; +secondaryPurgeWrite 1; +*/ + +purgeWrite 2; + +writeFormat binary; + +writePrecision 12; + +writeCompression off; //uncompressed + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + + + + +// ************************************************************************* // + +functions +{ +carForces +{ + type forces; + functionObjectLibs ("libforces.so"); + patches ("car"); + rho rhoInf; + rhoInf 1.205; + CofR (0 0 0); + porosity false; + log false; + writeControl timeStep; + writeInterval 1; +} + + +/////////////////////////////////////////////////////////////////////////// +car +{ + log yes; + enabled yes; + + type forceCoeffs; + functionObjectLibs ( "libforces.so"); + + patches ( "car"); + + rho rhoInf; + rhoInf 1.205; + + CofR ( 0 0 0); + liftDir ( 0 0 1); + dragDir ( 1 0 0); + pitchAxis ( 0 1 0); + magUInf 30; + lRef 1; //length in x //1; + Aref $!config/Aref; //projected area in x //drivAer=2.146952 + writeControl timeStep; + writeInterval 1; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +yplus +{ + type yPlus; + functionObjectLibs ("libfieldFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + writeInterval 25; + + log true; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// +Q +{ + type Q; + functionObjectLibs ("libutilityFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + //writeInterval 1; + + //log true; +} +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +minmaxdomain_scalar +{ + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + + enabled true; //true or false + log true; //write to screen + + //writeControl writeTime; + writeControl timeStep; + writeInterval 1; + + writeFields false; //write solution to field value - Not needed when only reporting value to screen + + writeLocation true; //write location in the output file + + //mode component; + + regionType all; + + operation none; + + fields + ( + p k omega nut + ); +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +wallShearStress1 +{ + type wallShearStress; + functionObjectLibs ("libutilityFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + //writeInterval 1; + + //log true; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + + fieldAverage + { + type fieldAverage; + functionObjectLibs ("libfieldFunctionObjects.so"); + enabled true; + writeControl outputTime; + + //writeControl timeStep; + //writeInterval 100; + + //cleanRestart true; + + timeStart $!averageStart; // see top of file, should be 1K iters before endTime + //timeEnd 1000; + + fields + ( + U + { + mean on; + prime2Mean on; + base time; + } + + p + { + mean on; + prime2Mean on; + base time; + } + + nut + { + mean on; + prime2Mean on; + base time; + } + + k + { + mean on; + prime2Mean off; + base time; + } + + omega + { + mean on; + prime2Mean off; + base time; + } + + Q + { + mean on; + prime2Mean off; + base time; + } + + yPlus + { + mean on; + prime2Mean off; + base time; + } + + wallShearStress + { + mean on; + prime2Mean off; + base time; + } + + ); + } + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +minmaxdomain_vector +{ + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + + enabled true; //true or false + log true; //write to screen + + //writeControl writeTime; + writeControl timeStep; + writeInterval 1; + + writeFields false; //write solution to field value - Not needed when only reporting value to screen + + writeLocation true; //write location in the output file + + //mode component; + + regionType all; + + operation none; + + fields + ( + U + ); +} + +mindomain_scalar +{ + $minmaxdomain_scalar + operation min; +} + +mindomain_vector +{ + $minmaxdomain_vector + operation minMag; +} + +maxdomain_scalar +{ + $minmaxdomain_scalar + operation max; +} + +maxdomain_vector +{ + $minmaxdomain_vector + operation maxMag; +} + +/////////////////////////////////////////////////////////////////////////// + + +}; diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/decomposeParDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/decomposeParDict new file mode 100644 index 0000000000000000000000000000000000000000..3283b86bd9ac38d375127aaf93305d0303f5394f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/decomposeParDict @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + numberOfSubdomains 16; + method scotch; + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvConstraints b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvConstraints new file mode 100644 index 0000000000000000000000000000000000000000..f118edd9bdd5683dca879a301623ed4143299b9f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvConstraints @@ -0,0 +1,28 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvConstraints; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +//To control on/off just modify the value. +//In this case a large value is like off +//Use from the begining so the object it is created + +limitU +{ + type limitVelocity; + selectionMode all; + max 200; //100 - 10000 (large value is off) +} + +//************************************************************************** // + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvSchemes b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvSchemes new file mode 100644 index 0000000000000000000000000000000000000000..7a9c59cdd42076680fbe1bb63b998855aed1cf67 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvSchemes @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + ddtSchemes + { + default steadyState; + } + + gradSchemes + { + //default Gauss linear; + default cellLimited Gauss linear 1; + grad(U) cellLimited Gauss linear 1; + grad(k) cellLimited Gauss linear 1; + grad(omega) cellLimited Gauss linear 1; + grad(p) cellLimited Gauss linear 0.333; + } + + divSchemes + { + default none; + + //div(phi,U) bounded Gauss linearUpwindV grad(U); + div(phi,U) bounded Gauss linearUpwind grad(U); + + //div(phi,k) bounded Gauss linearUpwind grad(k); + //div(phi,omega) bounded Gauss linearUpwind grad(omega); + div(phi,k) bounded Gauss upwind; + div(phi,omega) bounded Gauss upwind; + + div((nuEff*dev2(T(grad(U))))) Gauss linear; + +//For potentialFoam + div(div(phi,U)) Gauss linear; + + } + + interpolationSchemes + { + //default linear; + default skewCorrected linear; + } + + laplacianSchemes + { + default Gauss linear limited 0.5; + } + + snGradSchemes + { + default limited 0.5; + } + + wallDist + { + method meshWave; + } diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvSolution b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvSolution new file mode 100644 index 0000000000000000000000000000000000000000..fd57a585baeee7026e9383e8e73b966cf0779098 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/fvSolution @@ -0,0 +1,175 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + solvers + { + p + { + + solver GAMG; + tolerance 1e-06; + relTol 0.01; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration on; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; +/* + + solver PCG; + preconditioner + { + preconditioner GAMG; + tolerance 1e-06; //1e-06 1e-08 + relTol 0.0; //0.01 0 + nVcycles 2; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration false; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + tolerance 1e-06; + relTol 0.01; + //maxIter 20; + + + solver PCG; + preconditioner DIC; + tolerance 1e-6; + relTol 0.01; +*/ + + minIter 3; + } + + U + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + + k + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + + omega + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + +/* + Phi + { + $p; + } +*/ + + Phi + { + solver GAMG; + agglomerator faceAreaPair; + mergeLevels 1; + cacheAgglomeration true; + nCellsInCoarsestLevel 200; + tolerance 1e-8; + relTol 0.001; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + minIter 3; + } + + } + + potentialFlow + { + nNonOrthogonalCorrectors 10; + } + + SIMPLE + { + consistent yes; + nNonOrthogonalCorrectors 2; + + pRefCell 0; + pRefValue 0; + + residualControl {} + + } + +//SIMPLE +/* + relaxationFactors + { + fields + { + p 0.3; + } + + equations + { + U 0.7; + k 0.5; + omega 0.5; + } + + } +*/ + +//SIMPLEC + + relaxationFactors + { + fields + { + //".*" 0.7; + p 0.9; + } + equations + { + //".*" 0.7; + p 0.9; + U 0.7; + k 0.7; + omega 0.7; + } + } + + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/meshQualityDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/meshQualityDict new file mode 100644 index 0000000000000000000000000000000000000000..485ffbf78a759b69fa33e50f8ecb96245a82bfa5 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/meshQualityDict @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object meshQualityDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +maxNonOrtho 75; +maxBoundarySkewness 4; //Original 20 for better quality 4 +maxInternalSkewness 4; + +/* +maxNonOrtho 180; +maxBoundarySkewness -1; +maxInternalSkewness -1; +*/ + +maxConcave 80; + +minVol 1e-13; + +minTetQuality -1e+30; + +minArea -1; + +minTwist 0.02; + +minDeterminant 0.001; + +minFaceWeight 0.05; +//minFaceWeight 0.02; + +minVolRatio 0.01; + +minTriangleTwist -1; + +//minFlatness 0.5; + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/snappyHexMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/snappyHexMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..a4c34526ab1098437a9dc2076065f0ef5064d0cb --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/snappyHexMeshDict @@ -0,0 +1,322 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object snappyHexMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#include "../include/config" + +/***************************************************/ +castellatedMesh true; +snap true; +addLayers true; +/***************************************************/ + + + +/***************************************************/ + +geometry +{ + + car.stl + { + type triSurfaceMesh; + name car; + } + + + vr1 + { + type searchableBox; + min $!config/vr1_min; + max $!config/vr1_max; + } + + vr2 + { + type searchableBox; + min $!config/vr2_min; + max $!config/vr2_max; + } + + vr3 + { + type searchableBox; + min $!config/vr3_min; + max $!config/vr3_max; + } + + vr4 + { + type searchableBox; + min $!config/vr4_min; + max $!config/vr4_max; + } + + + /* + vr1 + { + type searchableBox; + min ( -7.5 -3.0 -0.3 ); + max ( 25.0 3.0 3.7 ); + } + + vr2 + { + type searchableBox; + //min ( -3.0 0.0 0.0 ); + //max ( 15.0 2.0 3.0 ); + min ( -2.0 -2.0 -0.3 ); + max ( 9.0 2.0 1.7 ); // 6.0 2.0 1.7 + } + + vr3 + { + type searchableBox; + min ( 2.5 -1.5 -0.3 ); + max ( 7.5 1.5 1.4 ); // 6.5 1.5 1.4 + } + + vr4 + { + type searchableBox; + min ( 3.2 -1 -0.3 ); + max ( 6.2 1.0 1.0 ); // 5.2 1.0 1.0 + } + */ +} + +/***************************************************/ + + + +/***************************************************/ + +castellatedMeshControls +{ + + maxLocalCells 5000000; + maxGlobalCells 30000000; //******* + minRefinementCells 0; + nCellsBetweenLevels 10; // 5 + resolveFeatureAngle 30.0; //curvature + allowFreeStandingZoneFaces true; + planarAngle 30.0; + maxLoadUnbalance 0.1; + + locationInMesh (10.0 1.0 1.0 ); + + +////////////////////////////////////// + features + ( + + { + file "car.eMesh"; + levels ((0.025 0)); + //level 0; + } + + ); +////////////////////////////////////// + + +////////////////////////////////////// + refinementSurfaces + { + car + { + level ( 4 5 ); // 2 4 - 4 4 + } + + } +////////////////////////////////////// + + +////////////////////////////////////// + refinementRegions + { + + vr1 + { + mode inside; + levels (( 1E5 1 )); + } + + vr2 + { + mode inside; + levels (( 1E5 2 )); + } + + vr3 + { + mode inside; + levels (( 1E5 3 )); + } + + vr4 + { + mode inside; + levels (( 1E5 4 )); // 1E5 4 + } + + } +////////////////////////////////////// + +} + +/***************************************************/ + + + +/***************************************************/ + +snapControls +{ + +// Number of patch smoothing iterations before finding correspondence +// to surface +nSmoothPatch 3; //recommended +//nSmoothPatch 10; //improved + +tolerance 2.0; +//tolerance 1.0; + +nSolveIter 30; //recommended +//nSolveIter 100; //improved + +nRelaxIter 5; //default +//nRelaxIter 10; //improved 10-20-50 + +// Feature snapping + + // Number of feature edge snapping iterations. + // Leave out altogether to disable. + nFeatureSnapIter 10; //recommended + //nFeatureSnapIter 100; //improved 20-50-100 + + // Detect (geometric only) features by sampling the surface + // (default=false). + implicitFeatureSnap false; + + // Use castellatedMeshControls::features (default = true) + explicitFeatureSnap true; + + // Detect features between multiple surfaces + // (only for explicitFeatureSnap, default = false) + multiRegionFeatureSnap false; + +} + +/***************************************************/ + + + + +/***************************************************/ + +addLayersControls +{ + +///////////////////////////////////////////// + relativeSizes true; + + expansionRatio 1.2; //1.0; + finalLayerThickness 0.3; + minThickness 0.01; //0.1 0.25 +///////////////////////////////////////////// + + + layers + { + + car + { + nSurfaceLayers 6; + expansionRatio 1.1; + finalLayerThickness 0.3; + minThickness 0.01; + } + + ground + { + nSurfaceLayers 6; + expansionRatio 1.2; + finalLayerThickness 0.3; + minThickness 0.01; + } + + } + + +///////////////////////////////////////////// + nGrow 0; + + featureAngle 130.0; + + maxFaceThicknessRatio 0.5; + + nSmoothSurfaceNormals 1; + nSmoothNormals 3; + nSmoothThickness 10; + + slipFeatureAngle 30.0; + nRelaxIter 5; + + maxThicknessToMedialRatio 0.3; + + minMedialAxisAngle 90; + minMedianAxisAngle 90; + + nBufferCellsNoExtrude 0; + nLayerIter 50; + nRelaxedIter 20; + + //writeVTK false; + //noErrors false; + //layerRecovery 1; + //growZoneLayers false; + //projectGrownUp 0.0; +///////////////////////////////////////////// + +} + +/***************************************************/ + + + + +/***************************************************/ + +meshQualityControls +{ + #include "meshQualityDict" + + nSmoothScale 4; + errorReduction 0.75; + + relaxed + { + maxNonOrtho 75; + } + +} + +/***************************************************/ + + +debug 0; +mergeTolerance 1.0E-6; +//autoBlockMesh false; diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/surfaceFeaturesDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/surfaceFeaturesDict new file mode 100644 index 0000000000000000000000000000000000000000..b98166722df51048ec84e897563c807290f7b37c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/results/pair0503_source083/target/prepared/system/surfaceFeaturesDict @@ -0,0 +1,34 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object surfaceFeatureExtractDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces ("car.stl"); + +extractionMethod extractFromSurface; + +includedAngle 150; + +subsetFeatures +{ + // Keep nonManifold edges (edges with >2 connected faces) + nonManifoldEdges yes; + + // Keep open edges (edges with 1 connected face) + openEdges yes; +} + +// Write features to obj format for postprocessing +writeObj yes; + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/run_case.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/run_case.sh new file mode 100644 index 0000000000000000000000000000000000000000..c91651baea041834a62ce03ef9ad9418e9edd272 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/run_case.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -o pipefail +taskroot="$1" +caseid="$2" +source /opt/openfoam9/etc/bashrc +set -e +command -v simpleFoam +export OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1 +export PYTHONIOENCODING=utf-8 LC_ALL=C.UTF-8 +umask 000 +work="/tmp/anchor60_cfd_${caseid}" +mkdir -p "$taskroot/results/$caseid" +exec > >(tee -a "$taskroot/results/$caseid/JOB.log") 2>&1 +trap 'printf "failed at line %s\n" "$LINENO" > "$taskroot/results/$caseid/JOB_FAILED"' ERR +printf 'case=%s host=%s user=%s\n' "$caseid" "$(hostname)" "$(id -u)" +python3 "$taskroot/prepare.py" "$taskroot" "$caseid" "$work" +pids=() +for state in target initial final60; do + bash "$taskroot/run_state.sh" "$taskroot" "$caseid" "$state" "$work/$state" & + pids+=("$!") +done +rc=0 +for pid in "${pids[@]}"; do wait "$pid" || rc=1; done +python3 "$taskroot/summarize.py" pair "$taskroot" "$caseid" +exit "$rc" diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/run_state.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/run_state.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa700f34c4d25bd798649f37a5f5495d4254c88f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/run_state.sh @@ -0,0 +1,50 @@ +#!/bin/bash +set -eo pipefail +taskroot="$1" +caseid="$2" +state="$3" +work="$4" +dest="$taskroot/results/$caseid/$state" +mkdir -p "$dest" "$work/logs" +cd "$work" +step() { + printf '%s %s\n' "$(date -u +%FT%TZ)" "$1" > "$dest/STAGE.txt" + name="$1" + shift + "$@" > "logs/$name.log" 2>&1 +} +sync_small() { + cp -f logs/* "$dest/" 2>/dev/null || true + if [ -d postProcessing ]; then cp -r postProcessing "$dest/"; fi +} +finish() { + rc=$? + trap - EXIT + sync_small + printf '%s\n' "$rc" > "$dest/EXIT_CODE" + if [ "$rc" -ne 0 ]; then printf 'failed; see logs\n' > "$dest/FAILED"; fi + kill "$sync_pid" 2>/dev/null || true + exit "$rc" +} +(while sleep 60; do sync_small; done) & +sync_pid=$! +trap finish EXIT +step surfaceCheck surfaceCheck constant/triSurface/car.stl +step surfaceFeatures surfaceFeatures +step blockMesh blockMesh +step decomposePar decomposePar +step snappyHexMesh mpirun --bind-to none -np 16 snappyHexMesh -parallel -overwrite +step checkMesh mpirun --bind-to none -np 16 checkMesh -parallel +if ! grep -q 'Mesh OK' logs/checkMesh.log; then exit 24; fi +step reconstructParMesh reconstructParMesh -constant +step decomposeFields decomposePar -force -copyZero +step renumberMesh mpirun --bind-to none -np 16 renumberMesh -parallel -overwrite +step potentialFoam mpirun --bind-to none -np 16 potentialFoam -parallel -writep +step simpleFoam mpirun --bind-to none -np 16 simpleFoam -parallel +sync_small +step aggregate python3 "$taskroot/summarize.py" state "$taskroot" "$caseid" "$state" +printf 'archiving volume mesh and fields\n' > "$dest/STAGE.txt" +tar -cf "$dest/volume_fields.tar.partial" processor* constant system include 0 +mv "$dest/volume_fields.tar.partial" "$dest/volume_fields.tar" +touch "$dest/COMPLETE" +printf 'complete\n' > "$dest/STAGE.txt" diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/sim.py b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/sim.py new file mode 100644 index 0000000000000000000000000000000000000000..6b0f371d18bb43b9b035e221ce7c5a8125b7ef0c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/sim.py @@ -0,0 +1,236 @@ +""" +Utilities for the OpenFOAM simulation. + +Also look into /openfoam and oclerc/improved_car_dataset/Preprocessing +""" + +import os, os.path +import shutil +import re + +import trimesh +import numpy as np + +RE_FLOAT = '-?[0-9]+\.?[0-9]*' # signed float +RE_VECTOR = f'\(\s*{RE_FLOAT}\s*{RE_FLOAT}\s*{RE_FLOAT}\s*\)' # 3d vector of signed floats + +CONFIG_FILE = "include/config" +CAR_STL_FILE = "constant/triSurface/car.stl" + + +#################################################################################################### +# Simulation setup +#################################################################################################### + +def find_highest_point(mesh, epsilon=0.05): + """Find point close to max height and the further front.""" + height = mesh.bounds[1, 2] + close_p = mesh.vertices[:,2] > height - epsilon + verts = mesh.vertices[close_p] + return verts[verts[:,0].argmin()] + +def get_vr4(mesh): + # From DRIVAER template + _vr4_min, _vr4_max = np.array([3.2, -1., -0.3]), np.array([6.2, 1.0, 1.0]) + vr4_min, vr4_max = _vr4_min.copy(), _vr4_max.copy() + + # x: start on highest point, then end on offset to the car + vr4_min[0] = find_highest_point(mesh)[0] + x_offset = 2.395022 # from DRIVAER + vr4_max[0] = mesh.bounds[1,0] + x_offset + + # y: resize based on ratio to DRIVAER + ratio_y = mesh.extents[1] / 2.02998 # from DRIVAER + vr4_y = (_vr4_max[1] - _vr4_min[1]) * ratio_y + vr4_min[1], vr4_max[1] = -vr4_y / 2, vr4_y / 2 + + # z: to car height + vr4_max[2] = mesh.bounds[1,2] + + return vr4_min, vr4_max + +def get_vr3(mesh, vr4): + # From DRIVAER template + _vr3_min, _vr3_max = np.array([2.5, -1.5, -0.3]), np.array([7.5, 1.5, 1.4]) + vr3_min, vr3_max = _vr3_min.copy(), _vr3_max.copy() + + # x: start on highest point, then constant offset to vr4 + vr3_min[0] = find_highest_point(mesh)[0] + x_offset = 1.3 # from DRIVAER + vr3_max[0] = vr4[1][0] + x_offset + + # y: constant offset to vr4 + y_offset = 0.5 + vr3_min[1] = vr4[0][1] - y_offset + vr3_max[1] = vr4[1][1] + y_offset + + # z: height of car + constant offset + z_offset = 0.300101 # from DRIVAER + vr3_max[2] = mesh.bounds[1,2] + z_offset + + return vr3_min, vr3_max + +def get_vr2(mesh, vr3): + # From DRIVAER template + _vr2_min, _vr2_max = np.array([-2.0, -2.0, -0.3]), np.array([9.0, 2.0, 1.7]) + vr2_min, vr2_max = _vr2_min.copy(), _vr2_max.copy() + + # x: same offset to front and to vr3 + front_x_offset = 1.192151 # between DRIVAER and vr2 + back_x_offset = 1.5 # between vr3 and 2 + vr2_min[0] = mesh.bounds[0,0] - front_x_offset + vr2_max[0] = vr3[1][0] + back_x_offset + + # y: constant offset to vr3 + y_offset = 0.5 + vr2_min[1] = vr3[0][1] - y_offset + vr2_max[1] = vr3[1][1] + y_offset + + # z: constant offset to vr3 + z_offset = 0.3 + vr2_max[2] = vr3[1][2] + z_offset + + return vr2_min, vr2_max + +def get_vr1(mesh): + # From DRIVAER template + _vr1_min, _vr1_max = np.array([-7.5, -3.0, -0.3]), np.array([25.0, 3.0, 3.7]) + vr1_min, vr1_max = _vr1_min.copy(), _vr1_max.copy() + + # Fixed + return vr1_min, vr1_max + +def get_all_vr(mesh): + vr4_min, vr4_max = get_vr4(mesh) + vr3_min, vr3_max = get_vr3(mesh, (vr4_min, vr4_max)) + vr2_min, vr2_max = get_vr2(mesh, (vr3_min, vr3_max)) + vr1_min, vr1_max = get_vr1(mesh) + return (vr4_min, vr4_max), (vr3_min, vr3_max), (vr2_min, vr2_max), (vr1_min, vr1_max) + + +def find_Aref(mesh, ray_per_dim=512): + """Approximate frontal area by intersecting rays.""" + y_min, y_max = mesh.bounds[:,1] + z_min, z_max = mesh.bounds[:,2] + yz_area = (y_max - y_min) * (z_max - z_min) + YZ = np.stack(np.meshgrid( + np.linspace(y_min, y_max, ray_per_dim), + np.linspace(z_min, z_max, ray_per_dim), + ), axis=-1).reshape(-1, 2) + YZ = np.concatenate([np.full_like(YZ[:,0:1], -2), YZ], axis=1) + + intersections = mesh.ray.intersects_any(YZ, [[1,0,0]]* len(YZ)) + return yz_area * intersections.mean() + + +def vector2str(vector): + return " ".join(["("] + [f"{x:.2f}" for x in vector]+ [")"]) + +def edit_config(configpath, aref, vr1_min, vr1_max, vr2_min, vr2_max, vr3_min, vr3_max, vr4_min, vr4_max): + with open(configpath, 'r') as f: + content = f.read() + + # Automatic edition of Aref + content = re.sub(f'Aref\s*{RE_FLOAT}\s*;', f'Aref {aref:.6f};', content) + + # Automatic edition of vri's + content = re.sub(f'vr1_min\s*{RE_VECTOR}\s*;', f'vr1_min {vector2str(vr1_min)};', content) + content = re.sub(f'vr1_max\s*{RE_VECTOR}\s*;', f'vr1_max {vector2str(vr1_max)};', content) + + content = re.sub(f'vr2_min\s*{RE_VECTOR}\s*;', f'vr2_min {vector2str(vr2_min)};', content) + content = re.sub(f'vr2_max\s*{RE_VECTOR}\s*;', f'vr2_max {vector2str(vr2_max)};', content) + + content = re.sub(f'vr3_min\s*{RE_VECTOR}\s*;', f'vr3_min {vector2str(vr3_min)};', content) + content = re.sub(f'vr3_max\s*{RE_VECTOR}\s*;', f'vr3_max {vector2str(vr3_max)};', content) + + content = re.sub(f'vr4_min\s*{RE_VECTOR}\s*;', f'vr4_min {vector2str(vr4_min)};', content) + content = re.sub(f'vr4_max\s*{RE_VECTOR}\s*;', f'vr4_max {vector2str(vr4_max)};', content) + + with open(configpath, 'w') as f: + f.write(content) + + +def copy_template(dst, src="/mnt/cvlab/scratch/cvlab/home/hantzhan/cfd_workflow/template/"): + shutil.copytree(src, dst) + + +def setup_simulation(simdir, aref_ray=512): + """Correctly transform the car and compute the config parameters.""" + # 1. Verify the existence of a mesh + if not os.path.isfile(os.path.join(simdir, CAR_STL_FILE)): + print(f"File does not exist! ({simdir}) Skipping...") + return + car = trimesh.load(os.path.join(simdir, CAR_STL_FILE)) + + # 2. Frontal area + aref_pred = find_Aref(car, ray_per_dim=aref_ray) + + # 3. Refinement regions + (vr4_min, vr4_max), (vr3_min, vr3_max), (vr2_min, vr2_max), (vr1_min, vr1_max) = get_all_vr(car) + + # Edit the config file + edit_config(os.path.join(simdir, "include/config"), + aref_pred, + vr1_min, vr1_max, vr2_min, vr2_max, + vr3_min, vr3_max, vr4_min, vr4_max) + + + + +#################################################################################################### +# Utilities +#################################################################################################### + +def get_Cd_sim(simdir, itercheck=2500, average=1000, load_always=False): + """ + Get the drag coefficient from the simulation directory. + + itercheck: int (optional) + If given, will verify if the max iteration is the given int. + average: int + If not None, will return the average Cd over the last `average` iters. + load_always: bool + If True, will load the data even if the simulation is not finished. + + If return value is negative, then an error has been raised: + -1: Unknown error. + -2: Experiment is not finished. + -3: Problem in loading the force coeff data. + """ + try: + if not os.path.isdir(os.path.join(simdir, "postProcessing")): + print(f"{simdir} might not be finished (no 'postProcessing' folder).") + return -2 + + # Get data in tabular form + try: + data = [] + with open(os.path.join(simdir, "postProcessing/car/0/forceCoeffs.dat")) as file: + for line in file: + if line[0] == '#': + # The last commented line should correspond to column names + names = line[1:].split() + else: + data.append(line.split()) + data = np.array(data).astype(float) + + if itercheck is not None and len(data)-1 != itercheck: + print(f"WARNING ({simdir}): iteration number is incorrect ({len(data)-1}!={itercheck})!") + if not load_always: + return -2 + + except ValueError as err: + print(f"Cannot load data from {simdir}: {err}") + return -3 + + # Extract the drag coeff (optionally average over the last iters) + col = names.index('Cd') if 'Cd' in names else 2 + if average is not None: + cd = data[-average:, col].mean() + else: + cd = data[:, col] + return cd + + except Exception as err: + print(f"Unknown exception for {simdir}: {err}") + return -1 \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/._run_all_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/._run_all_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b79678ac7c6eef0dcf07f74df68d46f92a924f1b Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/._run_all_shm.sh differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/U b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/U new file mode 100644 index 0000000000000000000000000000000000000000..5769e79855336fd3cfd9be718253e66f5c745dd8 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/U @@ -0,0 +1,88 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 1 -1 0 0 0 0 ]; +internalField uniform (30 0.0 0.0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + + } + + outlet + { + //type zeroGradient; + //value uniform ( 0.0 0.0 0.0 ); + + type inletOutlet; + inletValue uniform (30 0 0); + value uniform (30 0 0); + } + + sides + { + type slip; + } + + ground + { + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + } + + top + { + type slip; + } + + car + { + type fixedValue; + value uniform ( 0 0 0); + } +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/k b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/k new file mode 100644 index 0000000000000000000000000000000000000000..3fbd5f6027c8e931e018cc02da50c2bbd0831fc1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/k @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 3.375; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 3.375; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + ground + { + type kqRWallFunction; + value uniform 3.375; + } + + top + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + car + { + type kqRWallFunction; + value uniform 3.375; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/nut b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/nut new file mode 100644 index 0000000000000000000000000000000000000000..7cc736fd68245464e1f551f416639189b1d2c3ee --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/nut @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -1 0 0 0 0 ]; +internalField uniform 0.0001; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + ground + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + + top + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + car + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/omega b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/omega new file mode 100644 index 0000000000000000000000000000000000000000..abb9403abbbecb24411e3e29e7e9ae75c9b5b779 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/omega @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 -1 0 0 0 0 ]; +internalField uniform 9000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 9000; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + ground + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + + top + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + car + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/p b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/p new file mode 100644 index 0000000000000000000000000000000000000000..fc09297236df88eb7bd8fd91833cb28a6bad8464 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0/p @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 0.0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type zeroGradient; + } + + outlet + { + type fixedValue; + value uniform 0.0; + } + + sides + { + //type zeroGradient; + type slip; + } + + ground + { + type zeroGradient; + } + + top + { + //type zeroGradient; + type slip; + } + + car + { + type zeroGradient; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/U b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/U new file mode 100644 index 0000000000000000000000000000000000000000..5769e79855336fd3cfd9be718253e66f5c745dd8 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/U @@ -0,0 +1,88 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 1 -1 0 0 0 0 ]; +internalField uniform (30 0.0 0.0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + + } + + outlet + { + //type zeroGradient; + //value uniform ( 0.0 0.0 0.0 ); + + type inletOutlet; + inletValue uniform (30 0 0); + value uniform (30 0 0); + } + + sides + { + type slip; + } + + ground + { + type fixedValue; + value uniform ( 30.0 0.0 0.0 ); + +/* + type uniformFixedValue; + uniformValue table + ( + (0 (5 0 0)) + //(20 (10 0 0)) + //(40 (15 0 0)) + //(60 (20 0 0)) + //(80 (25 0 0)) + (100 (30 0 0)) + ); +*/ + } + + top + { + type slip; + } + + car + { + type fixedValue; + value uniform ( 0 0 0); + } +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/k b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/k new file mode 100644 index 0000000000000000000000000000000000000000..3fbd5f6027c8e931e018cc02da50c2bbd0831fc1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/k @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 3.375; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 3.375; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + ground + { + type kqRWallFunction; + value uniform 3.375; + } + + top + { + //type kqRWallFunction; + //value uniform 1e-20; + type slip; + } + + car + { + type kqRWallFunction; + value uniform 3.375; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/nut b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/nut new file mode 100644 index 0000000000000000000000000000000000000000..7cc736fd68245464e1f551f416639189b1d2c3ee --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/nut @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -1 0 0 0 0 ]; +internalField uniform 0.0001; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + ground + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + + top + { + //type nutUSpaldingWallFunction; + //value uniform 0.001; + type slip; + } + + car + { + type nutUSpaldingWallFunction; + value uniform 0.0001; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/omega b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/omega new file mode 100644 index 0000000000000000000000000000000000000000..abb9403abbbecb24411e3e29e7e9ae75c9b5b779 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/omega @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 -1 0 0 0 0 ]; +internalField uniform 9000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + inlet + { + type fixedValue; + value uniform 9000; + } + + outlet + { + type zeroGradient; + } + + sides + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + ground + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + + top + { + //type omegaWallFunction; + //value uniform 1; + type slip; + } + + car + { + type omegaWallFunction; + //value uniform 9000; + value uniform 500000; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/p b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/p new file mode 100644 index 0000000000000000000000000000000000000000..a6c6175f19ff93896acbb705f2185d1e873fb459 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/0_org/p @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; +internalField uniform 0.0; + +boundaryField +{ + inlet + { + type zeroGradient; + } + + outlet + { + type fixedValue; + value uniform 0.0; + } + + sides + { + //type zeroGradient; + type slip; + } + + ground + { + type zeroGradient; + } + + top + { + //type zeroGradient; + type slip; + } + + car + { + type zeroGradient; + } + +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/README.md b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/README.md new file mode 100644 index 0000000000000000000000000000000000000000..64257758096adc411dea9ac934e4af58f47fd8ea --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/README.md @@ -0,0 +1,2 @@ +# Experiment +Template. \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/constant/transportProperties b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/constant/transportProperties new file mode 100644 index 0000000000000000000000000000000000000000..c96a5beb6a77b30738b977bcdf55adcc2961c822 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/constant/transportProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +transportModel Newtonian; + +nu nu [0 2 -1 0 0 0 0 ] 1.5881327800829875E-5; + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/constant/turbulenceProperties b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/constant/turbulenceProperties new file mode 100644 index 0000000000000000000000000000000000000000..a87c7f8a8999fb5a479f5b06c843aac5bbb0d19e --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/constant/turbulenceProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + turbulence on; + printCoeffs on; +} diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/forceCoeffs_car b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/forceCoeffs_car new file mode 100644 index 0000000000000000000000000000000000000000..234e0644650ef54d23efc83dcba928ac7b1d792d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/forceCoeffs_car @@ -0,0 +1,20 @@ +#set yr [0:0.25] +set term pngcairo +set output "./images/forceCoeffs.png" +#set xr [0:3000] +set yr [0:2.0] +set key bottom right +set xlabel "Simulation time [s]" +set ylabel "forceCoeff [-]" +set title "Plot of forceCoeffs over simulationtime" +set grid + + +#plot "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($4) with lines title "lift_{coeff}",\ + "./postProcessing/car/0/forceCoeffs_0.dat" using ($1):($3) with lines title "drag_{coeff}" + +plot "./postProcessing/car/0/forceCoeffs.dat" using ($1):($4) with lines title "lift_{coeff}",\ + "./postProcessing/car/0/forceCoeffs.dat" using ($1):($3) with lines title "drag_{coeff}" + +#pause -1 +#reread \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/forces b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/forces new file mode 100644 index 0000000000000000000000000000000000000000..771e29e3bd1e38aae30c12dfa0ddaf94d07bb37d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/forces @@ -0,0 +1,18 @@ +#set yr [0:0.25] +set term pngcairo +set output "./images/forces.png" +#set xr [0:2000] +set yr [0:500] +set key bottom right +set xlabel "Simulation time [s]" +set ylabel "forces [N]" +set title "Plot of forces over simulationtime" +set grid + +#plot "./postProcessing/forces/0/forces_0.dat" using ($1):($4) with lines title "lift",\ + "./postProcessing/forces/0/forces_0.dat" using ($1):($3) with lines title "drag" + +plot "./postProcessing/forces/0/forces.dat" using ($1):($4) with lines title "lift",\ + "./postProcessing/forces/0/forces.dat" using ($1):($3) with lines title "drag" +#pause -1 +#reread diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/.DS_Store b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/.DS_Store differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/config b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/config new file mode 100644 index 0000000000000000000000000000000000000000..1c25dc386fe0fd61aef2be6b323ca97f8b484735 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/config @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object config; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +config +{ + /* controlDict */ + // Area of reference (projected area in x) + Aref 2.146952; + + /* snappyHexMeshDict */ + // Refinement regions + vr1_min ( -7.5 -3.0 -0.3 ); + vr1_max ( 25.0 3.0 3.7 ); + + vr2_min ( -2.0 -2.0 -0.3 ); + vr2_max ( 9.0 2.0 1.7 ); + + vr3_min ( 2.5 -1.5 -0.3 ); + vr3_max ( 7.5 1.5 1.4 ); + + vr4_min ( 3.2 -1 -0.3 ); + vr4_max ( 6.2 1.0 1.0 ); +} + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/geometry b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/geometry new file mode 100644 index 0000000000000000000000000000000000000000..7dc3dec0ded7efcdede4d9ec4e2a126f3bbace52 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/include/geometry @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +//Name of .stl +name_stl car.stl; + +// Computational domain coordinates +x_min -15.0; +x_max 25.0; + +y_min -15.0; +y_max 15.0; + +z_min -0.3; +z_max 14.7; + +cell_division (80 60 30); +// Refinement box coordinates + +//fine box close to the car +x_min_ref -1.25; +x_max_ref 2.0; + +y_min_ref -1.25; +y_max_ref 1.25; + +z_min_ref -0.3; +z_max_ref 1.75; + +//medium box further away +x_min_ref_medium -2.0; +x_max_ref_medium 10.0; + +y_min_ref_medium -1.75; +y_max_ref_medium 1.75; + +z_min_ref_medium -0.3; +z_max_ref_medium 2.25; + +//coarse box just before far field +x_min_ref_coarse -3.0; +x_max_ref_coarse 15.0; + +y_min_ref_coarse -2.75; +y_max_ref_coarse 2.75; + +z_min_ref_coarse -0.3; +z_max_ref_coarse 2.75; + + +// ************************************************************************* // \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/plots.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/plots.sh new file mode 100644 index 0000000000000000000000000000000000000000..a89c1d1acc01d5ceddb69a4b128297788893e044 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/plots.sh @@ -0,0 +1,6 @@ +#!/bin/bash +dict=$1 +mkdir -p ./images +#gnuplot $dict/forces +gnuplot $dict/forceCoeffs_car +gnuplot $dict/residuals \ No newline at end of file diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/residuals b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/residuals new file mode 100644 index 0000000000000000000000000000000000000000..14e42308536cb9041ca8938686d419d1806d3c57 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/residuals @@ -0,0 +1,15 @@ +set term pngcairo +set output "./images/residuals.png" +set logscale y +set yr [0.0000001:1] +set title "Residuals" +set ylabel 'Residual' +set xlabel 'Iteration' +plot "< cat logs/log.solver | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ + "< cat logs/log.solver | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ + "< cat logs/log.solver | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ + "< cat logs/log.solver | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\ + "< cat logs/log.solver | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\ + #"< cat logs/log.solver | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines +#pause -1 +#reread diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_all_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_all_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a13c05c826a642dac48f9b35d9da3ad9fccc2d1 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_all_shm.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +# Verify if already finished by checking the plotting folder +ITERMAX=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d images ]] && [[ -d $ITERMAX ]] && [[ -f simulation.done ]]; then + echo "Experiment at $(pwd) is already finished! Passing..." + exit 0 +fi + +mkdir -p logs + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." +MAXITER=2500 # max iter of the simulations + +# If car.foam, then must have at least meshed -> skip +if [[ ! -f car.foam ]]; then + foamCleanTutorials + #rm -rf 0 > /dev/null 2>&1 + + #PART DEDICATED TO MESHING + surfaceFeatures | tee logs/log.surfaceFeatures + blockMesh | tee logs/log.blockMesh + + decomposePar + (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm + mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh + + reconstructParMesh -constant + rm -r ./processor* + + touch car.foam +fi + +#PART DEDICATED TO SOLVER +# If processor0 -> must have been doing solver (assuming not already finished and removed!) +if [[ ! -d processor0 ]]; then + decomposePar -force -copyZero + + mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber + mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential +fi +(time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver + +# If solver has finished, do rest +ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d processor0/$ENDTIME ]]; then + reconstructPar -latestTime + + rm -r ./processor* + + ./plots.sh . + + touch car.foam + + touch simulation.done +fi + +# # Copy UMean as U to compute vorticity on UMean automatically +# cp $MAXITER/UMean $MAXITER/U + +# # Compute vorticity +# postProcess -func vorticity -latestTime + +# # Remove copied U (ignore if non-existent) +# rm -f $MAXITER/U diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_mesh_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_mesh_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..361eddfe77dd51d99c455e3553de1889b2508139 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_mesh_shm.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." + +# If car.foam, then must have at least meshed -> skip +if [[ ! -f car.foam ]]; then + foamCleanTutorials + #rm -rf 0 > /dev/null 2>&1 + + surfaceFeatures | tee logs/log.surfaceFeatures + blockMesh | tee logs/log.blockMesh + + decomposePar + (time (mpirun -np $procs snappyHexMesh -parallel -overwrite)) 2>&1 | tee logs/log.shm + mpirun -np $procs checkMesh -parallel | tee logs/log.checkMesh + + reconstructParMesh -constant + # rm -rf 0 > /dev/null 2>&1 + # cp -r 0_org 0 > /dev/null 2>&1 + rm -r ./processor* + + touch car.foam +fi diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_solver_shm.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_solver_shm.sh new file mode 100644 index 0000000000000000000000000000000000000000..872d05bd12b28bdf790fe66e148ee13dfd28a118 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/run_solver_shm.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Following tries to recover automatically the numberOfSubdomains from system/decomposeParDict +procs=$(grep -o "numberOfSubdomains *[0-9]* *;" system/decomposeParDict | grep -o "[0-9]*") +# If doesn't work, set it manually here +if [ -z $procs ]; then + echo "Couldn't read 'numberOfSubdomains' from 'system/decomposeParDict'." + procs=12 +fi +echo "procs set to $procs." + +#PART DEDICATED TO SOLVER +# If processor0 -> must have been doing solver (assuming not already finished and removed!) +if [[ ! -d processor0 ]]; then + decomposePar -force -copyZero + + mpirun -np $procs renumberMesh -parallel -overwrite | tee logs/log.renumber + mpirun -np $procs potentialFoam -parallel -writep | tee logs/log.potential +fi +(time (mpirun -np $procs simpleFoam -parallel)) 2>&1 | tee logs/log.solver + +# If solver has finished, do rest +ENDTIME=$(grep -o "endTime *[0-9]* *;" system/controlDict | grep -o "[0-9]*") +if [[ -d processor0/$ENDTIME ]]; then + reconstructPar -latestTime + + rm -r ./processor* + + ./plots.sh . + + touch car.foam +fi diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/.DS_Store b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/.DS_Store differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/._snappyHexMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/._snappyHexMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..2d8c802c5694d932033382b968937ccdc9ccb25f Binary files /dev/null and b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/._snappyHexMeshDict differ diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/blockMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/blockMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..5652745415ba1f9aef73769b9ec8c8e4a479ef8c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/blockMeshDict @@ -0,0 +1,121 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +x_min -12; +x_max 32; +y_min -4; +y_max 4; +z_min -0.3; +z_max 6.4; + +//xcells 22; +//ycells 4; +//zcells 4; + + +//deltax 0.2; //0.05 +//deltay 0.2; //0.05 +//deltaz 0.2; //0.05 +// +//lx #calc "($xmax) - ($xmin)"; +//ly #calc "($ymax) - ($ymin)"; +//lz #calc "($zmax) - ($zmin)"; +// +//xcells #calc "round(($lx)/($deltax))"; +//ycells #calc "round(($ly)/($deltay))"; +//zcells #calc "round(($lz)/($deltaz))"; + + +xcells 220; // MANUALLY CALCULATED BECAUSE WMAKE FAILED +ycells 40; +zcells 34; + +vertices +( + ($x_min $y_min $z_min) + ($x_max $y_min $z_min) + ($x_max $y_max $z_min) + ($x_min $y_max $z_min) + ($x_min $y_min $z_max) + ($x_max $y_min $z_max) + ($x_max $y_max $z_max) + ($x_min $y_max $z_max) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) ($xcells $ycells $zcells) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + inlet + { + type patch; + faces + ( + (0 4 7 3) + ); + } + + outlet + { + type patch; + faces + ( + (2 6 5 1) + ); + } + + sides + { + type patch; + faces + ( + (3 7 6 2) + (0 1 5 4) + ); + } + + ground + { + type wall; + faces + ( + (0 3 2 1) + ); + } + + top + { + type patch; + faces + ( + (4 5 6 7) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/controlDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/controlDict new file mode 100644 index 0000000000000000000000000000000000000000..0df518e2872176077cd578ac16072e5bbdf68e64 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/controlDict @@ -0,0 +1,319 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#include "../include/config" + + +application simpleFoam; + +// startFrom startTime; +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 2500; //1000-3000-5000 +averageStart 1500; // 1K iters before the end + +deltaT 1; + +writeControl timeStep; + +writeInterval 100; + +/* +secondaryWriteControl cpuTime; +secondaryWriteInterval 1000; +secondaryPurgeWrite 1; +*/ + +purgeWrite 2; + +writeFormat binary; + +writePrecision 12; + +writeCompression off; //uncompressed + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + + + + +// ************************************************************************* // + +functions +{ + +/////////////////////////////////////////////////////////////////////////// +car +{ + log yes; + enabled yes; + + type forceCoeffs; + functionObjectLibs ( "libforces.so"); + + patches ( "car"); + + rho rhoInf; + rhoInf 1.205; + + CofR ( 0 0 0); + liftDir ( 0 0 1); + dragDir ( 1 0 0); + pitchAxis ( 0 1 0); + magUInf 30; + lRef 1; //length in x //1; + Aref $!config/Aref; //projected area in x //drivAer=2.146952 + writeControl timeStep; + writeInterval 1; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +yplus +{ + type yPlus; + functionObjectLibs ("libfieldFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + writeInterval 25; + + log true; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// +Q +{ + type Q; + functionObjectLibs ("libutilityFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + //writeInterval 1; + + //log true; +} +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +minmaxdomain_scalar +{ + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + + enabled true; //true or false + log true; //write to screen + + //writeControl writeTime; + writeControl timeStep; + writeInterval 1; + + writeFields false; //write solution to field value - Not needed when only reporting value to screen + + writeLocation true; //write location in the output file + + //mode component; + + regionType all; + + operation none; + + fields + ( + p k omega nut + ); +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +wallShearStress1 +{ + type wallShearStress; + functionObjectLibs ("libutilityFunctionObjects.so"); + + enabled true; + + writeControl outputTime; + //writeControl timeStep; + //writeInterval 1; + + //log true; +} + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + + fieldAverage + { + type fieldAverage; + functionObjectLibs ("libfieldFunctionObjects.so"); + enabled true; + writeControl outputTime; + + //writeControl timeStep; + //writeInterval 100; + + //cleanRestart true; + + timeStart $!averageStart; // see top of file, should be 1K iters before endTime + //timeEnd 1000; + + fields + ( + U + { + mean on; + prime2Mean on; + base time; + } + + p + { + mean on; + prime2Mean on; + base time; + } + + nut + { + mean on; + prime2Mean on; + base time; + } + + k + { + mean on; + prime2Mean off; + base time; + } + + omega + { + mean on; + prime2Mean off; + base time; + } + + Q + { + mean on; + prime2Mean off; + base time; + } + + yPlus + { + mean on; + prime2Mean off; + base time; + } + + wallShearStress + { + mean on; + prime2Mean off; + base time; + } + + ); + } + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////// + +minmaxdomain_vector +{ + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + + enabled true; //true or false + log true; //write to screen + + //writeControl writeTime; + writeControl timeStep; + writeInterval 1; + + writeFields false; //write solution to field value - Not needed when only reporting value to screen + + writeLocation true; //write location in the output file + + //mode component; + + regionType all; + + operation none; + + fields + ( + U + ); +} + +mindomain_scalar +{ + $minmaxdomain_scalar + operation min; +} + +mindomain_vector +{ + $minmaxdomain_vector + operation minMag; +} + +maxdomain_scalar +{ + $minmaxdomain_scalar + operation max; +} + +maxdomain_vector +{ + $minmaxdomain_vector + operation maxMag; +} + +/////////////////////////////////////////////////////////////////////////// + + +}; diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/decomposeParDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/decomposeParDict new file mode 100644 index 0000000000000000000000000000000000000000..00f514fbd0580aab4e4f2d1558b52cb2263c082d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/decomposeParDict @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + numberOfSubdomains 12; + method scotch; + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvConstraints b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvConstraints new file mode 100644 index 0000000000000000000000000000000000000000..f118edd9bdd5683dca879a301623ed4143299b9f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvConstraints @@ -0,0 +1,28 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvConstraints; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +//To control on/off just modify the value. +//In this case a large value is like off +//Use from the begining so the object it is created + +limitU +{ + type limitVelocity; + selectionMode all; + max 200; //100 - 10000 (large value is off) +} + +//************************************************************************** // + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvSchemes b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvSchemes new file mode 100644 index 0000000000000000000000000000000000000000..7a9c59cdd42076680fbe1bb63b998855aed1cf67 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvSchemes @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + ddtSchemes + { + default steadyState; + } + + gradSchemes + { + //default Gauss linear; + default cellLimited Gauss linear 1; + grad(U) cellLimited Gauss linear 1; + grad(k) cellLimited Gauss linear 1; + grad(omega) cellLimited Gauss linear 1; + grad(p) cellLimited Gauss linear 0.333; + } + + divSchemes + { + default none; + + //div(phi,U) bounded Gauss linearUpwindV grad(U); + div(phi,U) bounded Gauss linearUpwind grad(U); + + //div(phi,k) bounded Gauss linearUpwind grad(k); + //div(phi,omega) bounded Gauss linearUpwind grad(omega); + div(phi,k) bounded Gauss upwind; + div(phi,omega) bounded Gauss upwind; + + div((nuEff*dev2(T(grad(U))))) Gauss linear; + +//For potentialFoam + div(div(phi,U)) Gauss linear; + + } + + interpolationSchemes + { + //default linear; + default skewCorrected linear; + } + + laplacianSchemes + { + default Gauss linear limited 0.5; + } + + snGradSchemes + { + default limited 0.5; + } + + wallDist + { + method meshWave; + } diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvSolution b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvSolution new file mode 100644 index 0000000000000000000000000000000000000000..4aa7bb6ebab56df1247323c121661d4bd7988950 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/fvSolution @@ -0,0 +1,181 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + solvers + { + p + { + + solver GAMG; + tolerance 1e-06; + relTol 0.01; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration on; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; +/* + + solver PCG; + preconditioner + { + preconditioner GAMG; + tolerance 1e-06; //1e-06 1e-08 + relTol 0.0; //0.01 0 + nVcycles 2; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration false; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + tolerance 1e-06; + relTol 0.01; + //maxIter 20; + + + solver PCG; + preconditioner DIC; + tolerance 1e-6; + relTol 0.01; +*/ + + minIter 3; + } + + U + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + + k + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + + omega + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-08; //1e-08 + relTol 0.001; //0.1 0.01 + + minIter 3; + } + +/* + Phi + { + $p; + } +*/ + + Phi + { + solver GAMG; + agglomerator faceAreaPair; + mergeLevels 1; + cacheAgglomeration true; + nCellsInCoarsestLevel 200; + tolerance 1e-8; + relTol 0.001; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + minIter 3; + } + + } + + potentialFlow + { + nNonOrthogonalCorrectors 10; + } + + SIMPLE + { + consistent yes; + nNonOrthogonalCorrectors 2; + + pRefCell 0; + pRefValue 0; + + residualControl + { + p 1.0e-4; + U 1.0e-4; + k 1.0e-4; + omega 1.0e-4; + } + + } + +//SIMPLE +/* + relaxationFactors + { + fields + { + p 0.3; + } + + equations + { + U 0.7; + k 0.5; + omega 0.5; + } + + } +*/ + +//SIMPLEC + + relaxationFactors + { + fields + { + //".*" 0.7; + p 0.9; + } + equations + { + //".*" 0.7; + p 0.9; + U 0.7; + k 0.7; + omega 0.7; + } + } + + diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/meshQualityDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/meshQualityDict new file mode 100644 index 0000000000000000000000000000000000000000..485ffbf78a759b69fa33e50f8ecb96245a82bfa5 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/meshQualityDict @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object meshQualityDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +maxNonOrtho 75; +maxBoundarySkewness 4; //Original 20 for better quality 4 +maxInternalSkewness 4; + +/* +maxNonOrtho 180; +maxBoundarySkewness -1; +maxInternalSkewness -1; +*/ + +maxConcave 80; + +minVol 1e-13; + +minTetQuality -1e+30; + +minArea -1; + +minTwist 0.02; + +minDeterminant 0.001; + +minFaceWeight 0.05; +//minFaceWeight 0.02; + +minVolRatio 0.01; + +minTriangleTwist -1; + +//minFlatness 0.5; + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/snappyHexMeshDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/snappyHexMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..a4c34526ab1098437a9dc2076065f0ef5064d0cb --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/snappyHexMeshDict @@ -0,0 +1,322 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 7 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object snappyHexMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#include "../include/config" + +/***************************************************/ +castellatedMesh true; +snap true; +addLayers true; +/***************************************************/ + + + +/***************************************************/ + +geometry +{ + + car.stl + { + type triSurfaceMesh; + name car; + } + + + vr1 + { + type searchableBox; + min $!config/vr1_min; + max $!config/vr1_max; + } + + vr2 + { + type searchableBox; + min $!config/vr2_min; + max $!config/vr2_max; + } + + vr3 + { + type searchableBox; + min $!config/vr3_min; + max $!config/vr3_max; + } + + vr4 + { + type searchableBox; + min $!config/vr4_min; + max $!config/vr4_max; + } + + + /* + vr1 + { + type searchableBox; + min ( -7.5 -3.0 -0.3 ); + max ( 25.0 3.0 3.7 ); + } + + vr2 + { + type searchableBox; + //min ( -3.0 0.0 0.0 ); + //max ( 15.0 2.0 3.0 ); + min ( -2.0 -2.0 -0.3 ); + max ( 9.0 2.0 1.7 ); // 6.0 2.0 1.7 + } + + vr3 + { + type searchableBox; + min ( 2.5 -1.5 -0.3 ); + max ( 7.5 1.5 1.4 ); // 6.5 1.5 1.4 + } + + vr4 + { + type searchableBox; + min ( 3.2 -1 -0.3 ); + max ( 6.2 1.0 1.0 ); // 5.2 1.0 1.0 + } + */ +} + +/***************************************************/ + + + +/***************************************************/ + +castellatedMeshControls +{ + + maxLocalCells 5000000; + maxGlobalCells 30000000; //******* + minRefinementCells 0; + nCellsBetweenLevels 10; // 5 + resolveFeatureAngle 30.0; //curvature + allowFreeStandingZoneFaces true; + planarAngle 30.0; + maxLoadUnbalance 0.1; + + locationInMesh (10.0 1.0 1.0 ); + + +////////////////////////////////////// + features + ( + + { + file "car.eMesh"; + levels ((0.025 0)); + //level 0; + } + + ); +////////////////////////////////////// + + +////////////////////////////////////// + refinementSurfaces + { + car + { + level ( 4 5 ); // 2 4 - 4 4 + } + + } +////////////////////////////////////// + + +////////////////////////////////////// + refinementRegions + { + + vr1 + { + mode inside; + levels (( 1E5 1 )); + } + + vr2 + { + mode inside; + levels (( 1E5 2 )); + } + + vr3 + { + mode inside; + levels (( 1E5 3 )); + } + + vr4 + { + mode inside; + levels (( 1E5 4 )); // 1E5 4 + } + + } +////////////////////////////////////// + +} + +/***************************************************/ + + + +/***************************************************/ + +snapControls +{ + +// Number of patch smoothing iterations before finding correspondence +// to surface +nSmoothPatch 3; //recommended +//nSmoothPatch 10; //improved + +tolerance 2.0; +//tolerance 1.0; + +nSolveIter 30; //recommended +//nSolveIter 100; //improved + +nRelaxIter 5; //default +//nRelaxIter 10; //improved 10-20-50 + +// Feature snapping + + // Number of feature edge snapping iterations. + // Leave out altogether to disable. + nFeatureSnapIter 10; //recommended + //nFeatureSnapIter 100; //improved 20-50-100 + + // Detect (geometric only) features by sampling the surface + // (default=false). + implicitFeatureSnap false; + + // Use castellatedMeshControls::features (default = true) + explicitFeatureSnap true; + + // Detect features between multiple surfaces + // (only for explicitFeatureSnap, default = false) + multiRegionFeatureSnap false; + +} + +/***************************************************/ + + + + +/***************************************************/ + +addLayersControls +{ + +///////////////////////////////////////////// + relativeSizes true; + + expansionRatio 1.2; //1.0; + finalLayerThickness 0.3; + minThickness 0.01; //0.1 0.25 +///////////////////////////////////////////// + + + layers + { + + car + { + nSurfaceLayers 6; + expansionRatio 1.1; + finalLayerThickness 0.3; + minThickness 0.01; + } + + ground + { + nSurfaceLayers 6; + expansionRatio 1.2; + finalLayerThickness 0.3; + minThickness 0.01; + } + + } + + +///////////////////////////////////////////// + nGrow 0; + + featureAngle 130.0; + + maxFaceThicknessRatio 0.5; + + nSmoothSurfaceNormals 1; + nSmoothNormals 3; + nSmoothThickness 10; + + slipFeatureAngle 30.0; + nRelaxIter 5; + + maxThicknessToMedialRatio 0.3; + + minMedialAxisAngle 90; + minMedianAxisAngle 90; + + nBufferCellsNoExtrude 0; + nLayerIter 50; + nRelaxedIter 20; + + //writeVTK false; + //noErrors false; + //layerRecovery 1; + //growZoneLayers false; + //projectGrownUp 0.0; +///////////////////////////////////////////// + +} + +/***************************************************/ + + + + +/***************************************************/ + +meshQualityControls +{ + #include "meshQualityDict" + + nSmoothScale 4; + errorReduction 0.75; + + relaxed + { + maxNonOrtho 75; + } + +} + +/***************************************************/ + + +debug 0; +mergeTolerance 1.0E-6; +//autoBlockMesh false; diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/surfaceFeaturesDict b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/surfaceFeaturesDict new file mode 100644 index 0000000000000000000000000000000000000000..b98166722df51048ec84e897563c807290f7b37c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/snapshot/template/system/surfaceFeaturesDict @@ -0,0 +1,34 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object surfaceFeatureExtractDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces ("car.stl"); + +extractionMethod extractFromSurface; + +includedAngle 150; + +subsetFeatures +{ + // Keep nonManifold edges (edges with >2 connected faces) + nonManifoldEdges yes; + + // Keep open edges (edges with 1 connected face) + openEdges yes; +} + +// Write features to obj format for postprocessing +writeObj yes; + +// ************************************************************************* // diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c0-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c0-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..92b38b720a5eb3ff393f8ce299967460bde3daa7 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c0-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c0-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c0-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c0-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c0-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..4aba94683312368f2e02e23944e522a9c9b96b23 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c0-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c0-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c0-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c1-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c1-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..8fc8138cb180b559309b90c41771ad74b4ff66b8 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c1-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c1-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c1-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c1-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c1-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..d5f1423b150ed1f23040d97226feedfc3eeb5e2c --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c1-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c1-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c1-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c2-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c2-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..2df1b9db915c56f6a5e2e54328094a736033662f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c2-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c2-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c2-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c2-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c2-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..8de5d3a7e558037d337f25bf26de03f2f8ffd9e5 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c2-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c2-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c2-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c3-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c3-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..001f2532a58bde1c800ffdd3d9682311a88b554f --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c3-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c3-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c3-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c3-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c3-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..1bbdfdd7fde561d5bec67b078af2ea212e7435c9 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c3-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c3-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c3-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c4-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c4-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..5bdbb7d161228db461bc56b5aa5cb327392c3fa7 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c4-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c4-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c4-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c4-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c4-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..77fb35cff436e6d1f79d2db200ec91517f1b4bc3 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c4-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c4-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c4-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c5-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c5-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..9880c83537be4738bda7d49bc26e8bd619c9d127 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c5-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c5-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c5-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c5-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c5-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..8547df55f948d0f5266dafec12b99c36ea337267 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c5-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c5-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c5-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c6-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c6-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..96cd4a94760700b31611f40925b1bdc2208cfc85 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c6-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c6-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c6-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c6-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c6-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..4d8d453379ac3c9b033441beab398b3ea1500186 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c6-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c6-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c6-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c7-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c7-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..b007a92a00014d78d1b025a8d5933145792d7d70 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c7-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c7-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c7-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c7-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c7-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..1042989c8a1e71b5795144f3e0daf7975a73eb16 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c7-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c7-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c7-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c8-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c8-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..21ac03f291602cbac61e366cde720a14330737b7 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c8-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c8-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c8-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c8-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c8-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..c08b7dfab26bd34e0e5808210cd2f49e43594a89 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c8-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c8-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c8-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c9-0923a.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c9-0923a.log new file mode 100644 index 0000000000000000000000000000000000000000..3377909f0c5ced8a84d7c31d051d03a6a9bbfee6 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c9-0923a.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c9-0923a submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c9-0923a -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c9-0923b.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c9-0923b.log new file mode 100644 index 0000000000000000000000000000000000000000..32ad92bc691f34561efa400e55f5817d38b51af0 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submissions/agcfd60-c9-0923b.log @@ -0,0 +1,8 @@ +CLI v1 is now deprecated. It will remain available for two more releases (until version 2.22). +However, we recommend migrating to CLI v2, which ensures full compatibility and ongoing feature development. +Contact your administrator for more details. +Can be suppressed with --suppress-deprecation-message flag or set SUPPRESS_DEPRECATION_MESSAGE=true environment variable + +Job agcfd60-c9-0923b submitted successfully. +You can check the status of the job by running: + runai describe job agcfd60-c9-0923b -p cvlab-hantzhan diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submit_all.sh b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submit_all.sh new file mode 100644 index 0000000000000000000000000000000000000000..19a9dbed78b063669426d906af6075ad96c9c6f8 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/submit_all.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -euo pipefail +root=/mnt/cvlab/scratch/cvlab/home/hantzhan/cfd_workflow/anchorgen_side60_20260923_v1 +inside=/scratch/cvlab/home/hantzhan/cfd_workflow/anchorgen_side60_20260923_v1 +mapfile -t cases < <(python3 -c 'import json,sys;print("\n".join(r["case_id"] for r in json.load(open(sys.argv[1]))["cases"]))' "$root/INPUT_MANIFEST.json") +mkdir -p "$root/submissions" +for i in "${!cases[@]}"; do + caseid="${cases[$i]}" + job="agcfd60-c${i}-0923b" + runai submit "$job" -p cvlab-hantzhan \ + -i ic-registry.epfl.ch/cvlab/gherardi/foam9 \ + --gpu 0 --cpu 48 --memory 144G --large-shm \ + --allow-privilege-escalation --backoff-limit 0 --pvc cvlab-scratch:/scratch \ + -e CLUSTER_USER=hantzhan -e CLUSTER_USER_ID=306442 \ + -e CLUSTER_GROUP_NAME=CVLAB-StaffU -e CLUSTER_GROUP_ID=11166 \ + -e CVHOME=/scratch/cvlab/home/hantzhan \ + -e PYTHONIOENCODING=utf-8 -e LC_ALL=C.UTF-8 \ + --command -- /opt/lab/setup_and_run_command.sh \ + "bash $inside/run_case.sh $inside $caseid" > "$root/submissions/$job.log" 2>&1 + printf '%s %s submitted\n' "$job" "$caseid" +done diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/summarize.py b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/summarize.py new file mode 100644 index 0000000000000000000000000000000000000000..799e1959c0f6c47f6ee548952a7c140b969c9a40 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/summarize.py @@ -0,0 +1,41 @@ +import json,math,re,sys +from pathlib import Path +def write(p,o):p.write_text(json.dumps(o,indent=2,allow_nan=False)+'\n') +def mean(v):return sum(v)/len(v) +def state(root,case,phase): + d=root/'results'/case/phase;prep=json.loads((root/'results'/case/'PREPARED.json').read_text());rows={} + for p in sorted(d.glob('postProcessing/car/*/forceCoeffs.dat')): + for line in p.read_text().splitlines(): + if not line.strip() or line.lstrip().startswith('#'):continue + a=[float(x) for x in line.split()];rows[a[0]]=a[2] + assert rows and max(rows)>=2500,'Incomplete 2500 iterations' + window=[(t,c) for t,c in sorted(rows.items()) if 2000<=t<=2500] + assert len(window)==501 and all(math.isfinite(c) for t,c in window),'Missing/nonfinite averaging samples' + vals=[c for t,c in window];assert min(vals)>0,'Nonpositive CFD total Cd' + forces={} + for p in sorted(d.glob('postProcessing/carForces/*/forces.dat')): + for line in p.read_text().splitlines(): + if not line.strip() or line.lstrip().startswith('#'):continue + a=[float(x) for x in re.sub(r'[()]',' ',line).split()] + assert len(a)==13,'Unexpected forces schema' + forces[a[0]]=(a[1],a[4]) + qA=.5*prep['rho']*prep['U']**2*prep['aref_m2'] + pressure=[forces[t][0]/qA for t,c in window];viscous=[forces[t][1]/qA for t,c in window] + assert max(abs(p+v-c) for p,v,c in zip(pressure,viscous,vals))<1e-4,'Force/coeff disagreement' + drift=abs(mean(vals[-250:])-mean(vals[:250]))/abs(mean(vals));std=mean([(x-mean(vals))**2 for x in vals])**.5 + result={'case_id':case,'state':phase,'metric_source':'OpenFOAM9 CFD','iterations':2500,'average_window':[2000,2500],'n_samples':501,'cd_total':mean(vals),'cd_pressure':mean(pressure),'cd_viscous':mean(viscous),'drag_force_total_N':mean(vals)*qA,'aref_m2':prep['aref_m2'],'relative_half_window_drift':drift,'relative_std':std/abs(mean(vals)),'temporal_stability_pass':drift<=.02 and std/abs(mean(vals))<=.05,'note':'Temporal stability is not mesh independence; one inherited mesh recipe.'} + write(d/'CFD_RESULT.json',result);print(json.dumps(result),flush=True) +def pair(root,case): + d=root/'results'/case;states={} + for s in ('target','initial','final60'): + p=d/s/'CFD_RESULT.json' + if p.exists() and (d/s/'COMPLETE').exists():states[s]=json.loads(p.read_text()) + result={'case_id':case,'complete':len(states)==3,'states':states} + if len(states)==3: + t=states['target']['cd_total'];i=states['initial']['cd_total'];f=states['final60']['cd_total'] + result.update(initial_reduction_vs_target=(t-i)/t,final60_reduction_vs_target=(t-f)/t,final60_reduction_vs_initial=(i-f)/i,temporal_stability_pass=all(v['temporal_stability_pass'] for v in states.values())) + write(d/'PAIR_RESULT.json',result) +if __name__=='__main__': + root=Path(sys.argv[2]);case=sys.argv[3] + if sys.argv[1]=='state':state(root,case,sys.argv[4]) + else:pair(root,case) diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog.log b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog.log new file mode 100644 index 0000000000000000000000000000000000000000..b2c715056361358b60a754930f08371f3616d97d --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog.log @@ -0,0 +1,3 @@ +/mnt/cvlab/scratch/cvlab/home/hantzhan/cfd_workflow/anchorgen_side60_20260923_v1/watchdog.py:7: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). + now=datetime.datetime.utcnow().isoformat()+'Z' +2026-09-23T09:53:40.863707Z completed 0 /30 diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog.py b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog.py new file mode 100644 index 0000000000000000000000000000000000000000..8cd06f2c67073721e6abcf75e89f053490c9fd67 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog.py @@ -0,0 +1,23 @@ +# Control-plane only: poll pods, stage text, and JSON receipts; no mesh computation. +import datetime,json,subprocess,time +from pathlib import Path +root=Path(__file__).resolve().parent +cases=json.loads((root/'INPUT_MANIFEST.json').read_text())['cases'] +while True: + now=datetime.datetime.utcnow().isoformat()+'Z' + p=subprocess.run(['kubectl','get','pods','-n','runai-cvlab-hantzhan','-o','json'],stdout=subprocess.PIPE,stderr=subprocess.PIPE,universal_newlines=True) + pods=json.loads(p.stdout).get('items',[]) if p.returncode==0 else [] + rows=[] + for i,c in enumerate(cases): + job='agcfd60-c%d-0923b'%i + found=[x for x in pods if x['metadata']['name'].startswith(job+'-')] + d=root/'results'/c['case_id'] + stages={s:(d/s/'STAGE.txt').read_text().strip() if (d/s/'STAGE.txt').exists() else 'not-started' for s in ('target','initial','final60')} + rows.append({'job':job,'case_id':c['case_id'],'pods':[{'name':x['metadata']['name'],'phase':x['status']['phase'],'node':x['spec'].get('nodeName'),'containers':x['status'].get('containerStatuses',[])} for x in found],'stages':stages,'complete_states':sum((d/s/'COMPLETE').exists() for s in stages),'failed_states':[s for s in stages if (d/s/'FAILED').exists()],'prep_failure':(d/'JOB_FAILED').exists()}) + record={'utc':now,'cases':rows} + (root/'WATCHDOG_LATEST.json').write_text(json.dumps(record,indent=2)) + with (root/'watchdog_status.jsonl').open('a') as f:f.write(json.dumps(record)+'\n') + subprocess.run(['python3',str(root/'aggregate_all.py'),str(root)]) + print(now,'completed',sum(r['complete_states'] for r in rows),'/30',flush=True) + if sum(r['complete_states'] for r in rows)==30:break + time.sleep(120) diff --git a/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog_status.jsonl b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog_status.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ae06e339dfb8624d420f57ec3e9eb6ef7db0c072 --- /dev/null +++ b/cfd_workflow_20261012/anchorgen_side60_20260923_v1/watchdog_status.jsonl @@ -0,0 +1,4 @@ +{"utc": "2026-09-23T09:50:09.425180Z", "cases": [{"job": "agcfd60-c0-0923a", "case_id": "pair0008_source001", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c1-0923a", "case_id": "pair0078_source013", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c2-0923a", "case_id": "pair0094_source015", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c3-0923a", "case_id": "pair0116_source019", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c4-0923a", "case_id": "pair0133_source022", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c5-0923a", "case_id": "pair0330_source055", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c6-0923a", "case_id": "pair0342_source057", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c7-0923a", "case_id": "pair0428_source071", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c8-0923a", "case_id": "pair0478_source079", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c9-0923a", "case_id": "pair0503_source083", "pods": [], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}]} +{"utc": "2026-09-23T09:51:31.728966Z", "cases": [{"job": "agcfd60-c0-0923b", "case_id": "pair0008_source001", "pods": [{"name": "agcfd60-c0-0923b-0-0", "phase": "Running", "node": "gpu246.rcp.epfl.ch", "containers": [{"containerID": "containerd://39077a6f5771ae14e41a201fc14ed462c3c734715e4581369ffce743f17f3f51", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c0-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:51:11Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-t9xvr", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c1-0923b", "case_id": "pair0078_source013", "pods": [{"name": "agcfd60-c1-0923b-0-0", "phase": "Pending", "node": "gpu230.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c1-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-66mgd", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c2-0923b", "case_id": "pair0094_source015", "pods": [{"name": "agcfd60-c2-0923b-0-0", "phase": "Pending", "node": "gpu207.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c2-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-8d9ss", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c3-0923b", "case_id": "pair0116_source019", "pods": [{"name": "agcfd60-c3-0923b-0-0", "phase": "Pending", "node": "gpu227.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c3-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-4zd9f", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c4-0923b", "case_id": "pair0133_source022", "pods": [{"name": "agcfd60-c4-0923b-0-0", "phase": "Pending", "node": "gpu232.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c4-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-zs75w", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c5-0923b", "case_id": "pair0330_source055", "pods": [{"name": "agcfd60-c5-0923b-0-0", "phase": "Pending", "node": "gpu233.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c5-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-gtwf8", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c6-0923b", "case_id": "pair0342_source057", "pods": [{"name": "agcfd60-c6-0923b-0-0", "phase": "Running", "node": "gpu205.rcp.epfl.ch", "containers": [{"containerID": "containerd://2bbe539ccd3e6c8e30c0d3959ef9af0969e151477aa01e3d2321f975a4ba9702", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c6-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:51:18Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-z7lxw", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c7-0923b", "case_id": "pair0428_source071", "pods": [{"name": "agcfd60-c7-0923b-0-0", "phase": "Pending", "node": null, "containers": []}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c8-0923b", "case_id": "pair0478_source079", "pods": [{"name": "agcfd60-c8-0923b-0-0", "phase": "Pending", "node": null, "containers": []}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c9-0923b", "case_id": "pair0503_source083", "pods": [{"name": "agcfd60-c9-0923b-0-0", "phase": "Pending", "node": null, "containers": []}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}]} +{"utc": "2026-09-23T09:53:32.053246Z", "cases": [{"job": "agcfd60-c0-0923b", "case_id": "pair0008_source001", "pods": [{"name": "agcfd60-c0-0923b-0-0", "phase": "Running", "node": "gpu246.rcp.epfl.ch", "containers": [{"containerID": "containerd://39077a6f5771ae14e41a201fc14ed462c3c734715e4581369ffce743f17f3f51", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c0-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:51:11Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-t9xvr", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:52:11Z snappyHexMesh", "initial": "2026-09-23T09:51:49Z snappyHexMesh", "final60": "2026-09-23T09:51:49Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c1-0923b", "case_id": "pair0078_source013", "pods": [{"name": "agcfd60-c1-0923b-0-0", "phase": "Pending", "node": "gpu230.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c1-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-66mgd", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c2-0923b", "case_id": "pair0094_source015", "pods": [{"name": "agcfd60-c2-0923b-0-0", "phase": "Pending", "node": "gpu207.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c2-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-8d9ss", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c3-0923b", "case_id": "pair0116_source019", "pods": [{"name": "agcfd60-c3-0923b-0-0", "phase": "Pending", "node": "gpu227.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c3-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-4zd9f", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:06Z surfaceCheck", "initial": "2026-09-23T09:53:15Z snappyHexMesh", "final60": "2026-09-23T09:53:15Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c4-0923b", "case_id": "pair0133_source022", "pods": [{"name": "agcfd60-c4-0923b-0-0", "phase": "Pending", "node": "gpu232.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c4-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-zs75w", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c5-0923b", "case_id": "pair0330_source055", "pods": [{"name": "agcfd60-c5-0923b-0-0", "phase": "Pending", "node": "gpu233.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c5-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-gtwf8", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c6-0923b", "case_id": "pair0342_source057", "pods": [{"name": "agcfd60-c6-0923b-0-0", "phase": "Running", "node": "gpu205.rcp.epfl.ch", "containers": [{"containerID": "containerd://2bbe539ccd3e6c8e30c0d3959ef9af0969e151477aa01e3d2321f975a4ba9702", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c6-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:51:18Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-z7lxw", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:52:06Z snappyHexMesh", "initial": "2026-09-23T09:51:50Z snappyHexMesh", "final60": "2026-09-23T09:51:50Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": true}, {"job": "agcfd60-c7-0923b", "case_id": "pair0428_source071", "pods": [{"name": "agcfd60-c7-0923b-0-0", "phase": "Running", "node": "gpu219.rcp.epfl.ch", "containers": [{"containerID": "containerd://9802a76642f37e5033ceefe933a4a50245921a77c13c0ebccb5af98dff23aa51", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c7-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:53:01Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-wqscc", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:23Z surfaceCheck", "initial": "2026-09-23T09:53:30Z decomposePar", "final60": "2026-09-23T09:53:30Z decomposePar"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c8-0923b", "case_id": "pair0478_source079", "pods": [{"name": "agcfd60-c8-0923b-0-0", "phase": "Running", "node": "gpu204.rcp.epfl.ch", "containers": [{"containerID": "containerd://f30bcc2a17f7d2355ecbe42c57963262b099cd8208ab66f61e9f2f3f54d9a2e7", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c8-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:53:21Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-ztdh6", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:24Z surfaceCheck", "initial": "2026-09-23T09:53:28Z surfaceFeatures", "final60": "2026-09-23T09:53:28Z surfaceFeatures"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c9-0923b", "case_id": "pair0503_source083", "pods": [{"name": "agcfd60-c9-0923b-0-0", "phase": "Pending", "node": null, "containers": []}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}]} +{"utc": "2026-09-23T09:53:40.863707Z", "cases": [{"job": "agcfd60-c0-0923b", "case_id": "pair0008_source001", "pods": [{"name": "agcfd60-c0-0923b-0-0", "phase": "Running", "node": "gpu246.rcp.epfl.ch", "containers": [{"containerID": "containerd://39077a6f5771ae14e41a201fc14ed462c3c734715e4581369ffce743f17f3f51", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c0-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:51:11Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-t9xvr", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:52:11Z snappyHexMesh", "initial": "2026-09-23T09:51:49Z snappyHexMesh", "final60": "2026-09-23T09:51:49Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": true}, {"job": "agcfd60-c1-0923b", "case_id": "pair0078_source013", "pods": [{"name": "agcfd60-c1-0923b-0-0", "phase": "Pending", "node": "gpu230.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c1-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-66mgd", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c2-0923b", "case_id": "pair0094_source015", "pods": [{"name": "agcfd60-c2-0923b-0-0", "phase": "Running", "node": "gpu207.rcp.epfl.ch", "containers": [{"containerID": "containerd://213845cfe2880162d0e893251ee4a11a3640cf18bc9fb54343ced3a2f6d48071", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c2-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:53:39Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-8d9ss", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c3-0923b", "case_id": "pair0116_source019", "pods": [{"name": "agcfd60-c3-0923b-0-0", "phase": "Pending", "node": "gpu227.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c3-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-4zd9f", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:06Z surfaceCheck", "initial": "2026-09-23T09:53:15Z snappyHexMesh", "final60": "2026-09-23T09:53:15Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c4-0923b", "case_id": "pair0133_source022", "pods": [{"name": "agcfd60-c4-0923b-0-0", "phase": "Pending", "node": "gpu232.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c4-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-zs75w", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c5-0923b", "case_id": "pair0330_source055", "pods": [{"name": "agcfd60-c5-0923b-0-0", "phase": "Pending", "node": "gpu233.rcp.epfl.ch", "containers": [{"image": "ic-registry.epfl.ch/cvlab/gherardi/foam9", "imageID": "", "lastState": {}, "name": "agcfd60-c5-0923b", "ready": false, "restartCount": 0, "started": false, "state": {"waiting": {"reason": "ContainerCreating"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-gtwf8", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:34Z surfaceCheck", "initial": "2026-09-23T09:53:40Z blockMesh", "final60": "2026-09-23T09:53:40Z blockMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c6-0923b", "case_id": "pair0342_source057", "pods": [{"name": "agcfd60-c6-0923b-0-0", "phase": "Running", "node": "gpu205.rcp.epfl.ch", "containers": [{"containerID": "containerd://2bbe539ccd3e6c8e30c0d3959ef9af0969e151477aa01e3d2321f975a4ba9702", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c6-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:51:18Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-z7lxw", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:52:06Z snappyHexMesh", "initial": "2026-09-23T09:51:50Z snappyHexMesh", "final60": "2026-09-23T09:51:50Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": true}, {"job": "agcfd60-c7-0923b", "case_id": "pair0428_source071", "pods": [{"name": "agcfd60-c7-0923b-0-0", "phase": "Running", "node": "gpu219.rcp.epfl.ch", "containers": [{"containerID": "containerd://9802a76642f37e5033ceefe933a4a50245921a77c13c0ebccb5af98dff23aa51", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c7-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:53:01Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-wqscc", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:34Z surfaceFeatures", "initial": "2026-09-23T09:53:32Z snappyHexMesh", "final60": "2026-09-23T09:53:32Z snappyHexMesh"}, "complete_states": 0, "failed_states": [], "prep_failure": true}, {"job": "agcfd60-c8-0923b", "case_id": "pair0478_source079", "pods": [{"name": "agcfd60-c8-0923b-0-0", "phase": "Running", "node": "gpu204.rcp.epfl.ch", "containers": [{"containerID": "containerd://f30bcc2a17f7d2355ecbe42c57963262b099cd8208ab66f61e9f2f3f54d9a2e7", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c8-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:53:21Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-ztdh6", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "2026-09-23T09:53:24Z surfaceCheck", "initial": "2026-09-23T09:53:28Z surfaceFeatures", "final60": "2026-09-23T09:53:28Z surfaceFeatures"}, "complete_states": 0, "failed_states": [], "prep_failure": false}, {"job": "agcfd60-c9-0923b", "case_id": "pair0503_source083", "pods": [{"name": "agcfd60-c9-0923b-0-0", "phase": "Running", "node": "gpu218.rcp.epfl.ch", "containers": [{"containerID": "containerd://1ffb6b10fcf4e489c6f388f8902f3f2b0e130e3ebbe3154e7ba54082fa6fb346", "image": "ic-registry.epfl.ch/cvlab/gherardi/foam9:latest", "imageID": "ic-registry.epfl.ch/cvlab/gherardi/foam9@sha256:ca2875fd70d3573b921bc0f14f57b160e5a4528017d324f249066ccd07bfe74b", "lastState": {}, "name": "agcfd60-c9-0923b", "ready": true, "restartCount": 0, "started": true, "state": {"running": {"startedAt": "2026-09-23T09:53:34Z"}}, "volumeMounts": [{"mountPath": "/scratch", "name": "pvc-volume-0"}, {"mountPath": "/dev/shm", "name": "dshm"}, {"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-pn44h", "readOnly": true, "recursiveReadOnly": "Disabled"}]}]}], "stages": {"target": "not-started", "initial": "not-started", "final60": "not-started"}, "complete_states": 0, "failed_states": [], "prep_failure": false}]}