Natural convection problem regarding the boundary condition

##### Title

##### Question

Good morning sir, i am simulating one problem. i am struggling to give boundary condition for a wall.

lefft wall temperature is = (T<sub>h</sub>-(T<sub>h</sub>-T<sub>c</sub>)).y/L,

here L is the length of the cavity. Everything is fixed in my problem. T<sub>h</sub> and T<sub>c</sub> represents hot and cold temperatures respectively. How to give y value? for a cavity problem, y varies continuously. Please tell me how to give the above condition. Thank you

lefft wall temperature is = (T<sub>h</sub>-(T<sub>h</sub>-T<sub>c</sub>)).y/L,

here L is the length of the cavity. Everything is fixed in my problem. T<sub>h</sub> and T<sub>c</sub> represents hot and cold temperatures respectively. How to give y value? for a cavity problem, y varies continuously. Please tell me how to give the above condition. Thank you

OpenFOAM General

__Answers:__

<font size="3">Hi,</font>

<font size="3">

</font>

</font>

<font size="3">If you need to give a boundary condition which varies based on an expression, you can use the swak4Foam library in OpenFOAM. You can refer to the following page for installation and usage of this library: <a href="https://openfoamwiki.net/index.php/Contrib/swak4Foam" target="_blank" title="swak4Foam">swak4Foam</a></font>

Login to add comment