stardis-test

Test Stardis behaviors
git clone git://git.meso-star.fr/stardis-test.git
Log | Files | Refs | README | LICENSE

commit 776fcbb9116ab52d58a06b3a4e72f778ca9cce16
parent 35775ad4c6cc1f2d6ff81d46434a5bba9c6a30f8
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sun, 14 Apr 2024 16:33:32 +0200

Add programmable properties to conducto-radiative testing

Check the programmable solid/fluid connection using a program to define
properties on boundaries with radiative exchange. The main thing we're
checking here is that updating the profile of the stardis_emissivity and
stardis_specular_fraction functions is correctly handled by Stardis
(they now have a parameter to identify the radiation source).

Diffstat:
Msrc/sadist_conducto_radiative.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sadist_conducto_radiative.c b/src/sadist_conducto_radiative.c @@ -97,11 +97,12 @@ setup_scene(FILE* fp) { ASSERT(fp); fprintf(fp, "PROGRAM radenv_1d libsadist_radenv_1d.so\n"); + fprintf(fp, "PROGRAM solid_fluid libsadist_solid_fluid.so\n"); fprintf(fp, "FLUID environment 1 1 0 UNKNOWN BACK %s\n", FILENAME_CUBE); fprintf(fp, "SOLID cube %g 1 1 0.05 0 UNKNOWN 0 FRONT %s\n", LAMBDA, FILENAME_CUBE); - fprintf(fp, "SOLID_FLUID_CONNECTION radiative 300 %g 0 0 %s\n", - EMISSIVITY, FILENAME_RADIATIVE); + fprintf(fp, "SOLID_FLUID_CONNECTION_PROG radiative solid_fluid %s " + "PROG_PARAMS dummy -e %g -r 300\n", FILENAME_RADIATIVE, EMISSIVITY); fprintf(fp, "SOLID_FLUID_CONNECTION adiabatic 0 0 0 0 %s\n", FILENAME_ADIABATIC); fprintf(fp, "TRAD_PROG radenv_1d PROG_PARAMS dummy -r %g,%g -t %g,%g\n",