stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit 61c623be9b50b4bcd16b219b93efa48f95d254af
parent b139dd1d52e29fadec4a92ba3786d1cb520a19dc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 24 Apr 2024 18:41:48 +0200

Make the radiative environment time-dependent

Add time as an input parameter to the shader functions of the radiative
environment, so that it can vary not only with respect to the direction
along the path that reaches it, but also as a function of the time at
which it is reached.

Diffstat:
Msrc/sdis.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sdis.h b/src/sdis.h @@ -137,8 +137,9 @@ static const struct sdis_interface_fragment SDIS_INTERFACE_FRAGMENT_NULL = /* Ray traced in radiative environment */ struct sdis_radiative_ray { double dir[3]; /* Direction */ + double time; /* Time */ }; -#define SDIS_RADIATIVE_RAY_NULL__ {{0,0,0}} +#define SDIS_RADIATIVE_RAY_NULL__ {{0,0,0}, DBL_MAX} static const struct sdis_radiative_ray SDIS_RADIATIVE_RAY_NULL= SDIS_RADIATIVE_RAY_NULL__;