Wrong flux with externalWallHeatFluxTemperature
Summary
When using the boundary condition externalWallHeatFluxTemperature in coefficient mode and with thicknessLayers, kappaLayers and emissivity different from 0, the computed flux is wrong.
Steps to reproduce
- Mesh a solid square
- Left wall and right wall both using externalWallHeatFluxTemperature in coefficient mode with the same Ta, same h and emissivity at 0.9 for both.
- On the right wall, add one thicknessLayers at 0.1 and kappaLayers at 1
- Top and bottom walls using zeroGradient
- Run the case with chtMultiRegionSimpleFoam (laplacianFoam does not accept externalWallHeatFluxTemperature, so you have to manipulate the mesh files a little bit, or you can set up a fluid simulation instead with buoyantSimpleFoam, the same behavior appears).
- Check the heat flux at both boundaries
Example case
What is the current bug behaviour?
The heat flux converges to around 2000 W
What is the expected correct behavior?
The heat flux should converge towards 0 W
Relevant logs and/or images
Environment information
- OpenFOAM version : v2212
- Operating system : Windows 10
- Hardware info : 28 cores / 128 GB
- Compiler : -