stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit 2885b4a81102d0522c98418a400b7e9d82727fb2
parent 3dea9d4d5f9f4caa30da16c491a0711575348852
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 20 May 2020 15:25:32 +0200

BugFix: emissivity of T_BOUNDARY_FOR_FLUID boundaries was always 1

Diffstat:
Msrc/stardis-intface.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/stardis-intface.c b/src/stardis-intface.c @@ -271,9 +271,12 @@ create_intface /* The imposed T is for the 2 sides (until there is contact resistnces) */ interface_shader.front.temperature = interface_get_temperature; interface_shader.back.temperature = interface_get_temperature; - /* Set emissivity to 1 to allow radiative paths to 'see' the imposed T */ - fluid_side_shader->emissivity = interface_get_emissivity; - interface_props->emissivity = 1; + if(connect->type == DESC_BOUND_T_FOR_SOLID) { + /* Set emissivity to 1 to allow radiative paths comming from + * a possible external fluid to 'see' the imposed T */ + fluid_side_shader->emissivity = interface_get_emissivity; + interface_props->emissivity = 1; + } ASSERT(connect->d.t_boundary.imposed_temperature >= 0); interface_props->imposed_temperature = connect->d.t_boundary.imposed_temperature;