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

here L is the length of the cavity. Everything is fixed in my problem. T

lefft wall temperature is = (T

_{h}-(T_{h}-T_{c})).y/L,here L is the length of the cavity. Everything is fixed in my problem. T

_{h}and T_{c}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 youOpenFOAM General

__Answers:__

Hi,

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: swak4Foam

Login to add comment