stardis-solver

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

commit 7d51c9f3691f97b5e266b7358b36abeea470f29a
parent cef3e6ab6d7d6932201ded498d24b09b01d344c2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 27 Oct 2021 11:25:19 +0200

Update the check of the interface properties

Check that the reference temperature is set only on the interface side
looking at a fluid.

Diffstat:
Msrc/sdis_interface.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/sdis_interface.c b/src/sdis_interface.c @@ -74,11 +74,13 @@ check_interface_shader FOR_EACH(i, 0, 2) { switch(type[i]) { case SDIS_SOLID: - if(shaders[i]->emissivity || shaders[i]->specular_fraction) { + if(shaders[i]->emissivity + || shaders[i]->specular_fraction + || shaders[i]->reference_temperature) { log_warn(dev, - "%s: the interface side toward a solid can neither have the " - "emissivity nor the specular_fraction properties. The shader's " - " pointer functions for these attributes should be NULL.\n", + "%s: the interface side toward a solid cannot have an emissivity, " + "a specular_fraction or a reference temperature. The shader's " + "pointer functions for these attributes should be NULL.\n", caller_name); } break;