Dear all
I am working on the Flow over heated plate steady-state tutorial described here:
Flow over heated plate steady state | preCICE - The Coupling Library
Versions Used
- preCICE: 3.0.0
- OpenFOAM: v2312
- OpenFOAM preCICE Adapter: 1.3.0
- Code_Aster: 14.6
- Code_Aster preCICE Adapter: GitHub Repository
Problem description
The expected temperature should be close to 310 K at the solid domain and 300 K at the fluid domain like this figure:
However, I am observing extremely high temperatures at the interface, reaching values around 1e7 K, which is far above the expected physical range:
More details
The only modification I made was to change the exchange directory in precice-config.xml
to an absolute path based on the advice given in The code_aster adapter | preCICE - The Coupling Library
After obtaining incorrect results, I tried to modify some parameters to identify the cause of the problem. For example, I tried to modify the initial temperature of the boundaries in fluid-openfoam/0/T
and solid-codeaster/def.comm
. I even modified the time step in precice-config.xml
. But these modifications have no impact on the results.
Finally, I found that the parameters that affect the interface temperature is the coefficients related to heat conduction in solid-codeaster/def.comm
::
# Materials
MAT = [None] * 1
COND = DEFI_CONSTANTE(VALE=100)
RHO_CP = DEFI_CONSTANTE(VALE=100)
MAT[0] = DEFI_MATERIAU(THER=_F(LAMBDA=100, RHO_CP=100),);
I noticed that the interface temperature strongly depends on LAMBDA:
- LAMBDA = 100 → Interface temperature = 1e7 K
LAMBDA = 0.5 → Interface temperature = 5e4 K
LAMBDA = 0.0031 → Interface temperature is closer to expected values.
In a normal physical scenario, a high LAMBDA should increase heat transfer, but it shouldn’t cause extreme interface temperatures.Could OpenFOAM’s enthalpy-based calculation be affecting the temperature exchange with Code_Aster?
Questions
- Why does changing
LAMBDA
(thermal conductivity) have such a strong impact on the interface temperature? - Could this be related to how OpenFOAM computes temperature when using
buoyantSimpleFoam
? - Is there any additional debugging step I should take to diagnose the issue?
Any suggestions or insights would be greatly appreciated!
Best regards
Butters