commit 49784ad1397ea9b366efeb01c3a8d5b35741af49
parent db0ef919c86d4bc698877badb66d88e1b8dc6de4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 9 Apr 2026 11:28:34 +0200
Corrections and adjustments to several scripts
All scripts should now work correctly with Stardis 0.12.
Some scripts were simply failing because updates to the Stardis syntax
had not been incorporated into the scripts. Or they were simply
calculation errors, such as the script that calculated the heat sink
temperature by accounting for the nonlinearity of radiative transfer,
even though Stardis does not support this when a power term is used.
Other scripts have been adjusted to prevent unusual behavior, such as
strange output file names.
Diffstat:
7 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,4 +1,5 @@
*.gp
+*.green
*.ht
*.ppm
*.sw[po]
diff --git a/city/run_IR_rendering.sh b/city/run_IR_rendering.sh
@@ -24,7 +24,7 @@ HEIGHT=480
MODEL=model.txt
POSITION="0,-150,30" #camera position
TARGET="50,30,0" #position targeted
-FILE=IR_rendering_${MODEL}_${WIDTH}x${HEIGHT}x${SPP}
+FILE="IR_rendering_${WIDTH}x${HEIGHT}x${SPP}"
### END USER PARAMETERS SECTION
#erase FILE result if exists
@@ -45,4 +45,4 @@ stardis -V 3 -M "${MODEL}" -R spp="${SPP}":img="${WIDTH}"x"${HEIGHT}":fov=30:pos
#convert ht file in ppm file
htpp -f -o "${FILE}".ppm -v -m default:range=273,275 "${FILE}".ht
-printf '>>> You can now watch the IR rendering by opening the file "%s".ppm\n' "${FILE}"
+printf '>>> You can now watch the IR rendering by opening the file "%s.ppm"\n' "${FILE}"
diff --git a/cube/run_dump_path.sh b/cube/run_dump_path.sh
@@ -40,7 +40,7 @@ if ! command -v stardis > /dev/null ; then
fi
#launch Stardis to dump geometry in vtk format
-stardis -V 3 -M model.txt -d > "${GEOM_FILE}"
+stardis -V 3 -M model.txt -d "${GEOM_FILE%.vtk}"
#launch Stardis to dump path for the probe X,Y,Z,TIME
stardis -V 3 -M model.txt -p "${X},${Y},${Z},${TIME}" -n "${NPATH}" -D all,"${PATH_FILE_PREFIX}"
diff --git a/cube/run_green_evaluation.sh b/cube/run_green_evaluation.sh
@@ -52,7 +52,7 @@ else
printf '\n'
#launch stardis to produce the Green function for the probe X,Y,Z at steady state
- stardis -M model.txt -p "${X},${Y},${Z}" -n "${NREAL}" -G "${GREEN_FILE}"
+ stardis -V3 -M model.txt -p "${X},${Y},${Z}" -n "${NREAL}" -G "${GREEN_FILE}"
printf '\n'
printf '>>> Now, compute probe temperature by applying new source and boundary to the Green function.\n'
diff --git a/heatsink/run_medium_computation.sh b/heatsink/run_medium_computation.sh
@@ -35,7 +35,7 @@ if ! command -v stardis > /dev/null ; then
fi
#launch Stardis to dump geometry in vtk format
-#stardis -V 3 -M model.txt -d > "${GEOM_FILE}"
+stardis -V 3 -M model.txt -d "${GEOM_FILE%.*vtk}"
#launch Stardis to compute mean temperature in the chip (named SIPw in model.txt)
-stardis -V 3 -M model.txt -m SIPw,INF -o2 -n "${NREAL}" -e
+stardis -V 3 -M model.txt -m SIPw,INF -n "${NREAL}" -e
diff --git a/heatsink/run_medium_computation_multiple.sh b/heatsink/run_medium_computation_multiple.sh
@@ -35,7 +35,7 @@ if ! command -v stardis > /dev/null ; then
fi
#launch Stardis to dump geometry in vtk format
-stardis -V 3 -M model_multiple.txt -d > "${GEOM_FILE}"
+stardis -V 3 -M model_multiple.txt -d "${GEOM_FILE%.vtk}"
#launch Stardis
-stardis -V 3 -M model_multiple.txt -m SIPw,INF -n "${NREAL}" -e
+stardis -V 3 -M model_multiple.txt -m SIPw,INF -n "${NREAL}" -e
diff --git a/porous/run_IR_rendering.sh b/porous/run_IR_rendering.sh
@@ -20,7 +20,7 @@ set -e
### USER PARAMETERS SECTION
SPP=32 #samples per pixel
WIDTH=320
-HEIGHT=320
+HEIGHT=240
POSITION="0.05,0.01,0" #camera position
TARGET="0,0,0" #position targeted
FILE="IR_rendering_${WIDTH}x${HEIGHT}x${SPP}"