CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Robin boundary condition containing two dependent variables (https://www.cfd-online.com/Forums/openfoam-programming-development/184239-robin-boundary-condition-containing-two-dependent-variables.html)

babakflame February 25, 2017 19:04

Robin boundary condition containing two dependent variables
 
Dear Fellows

I know how to implement Robin boundary condition for a dependent variable T in OpenFoam using swak4Foam. For instance, the boundary condition:

k \frac{\partial T}{\partial n} +
\alpha T = \alpha T_\infty
can be written using swak4Foam library as described in the following link:

http://www.modlab.lv/docs/2011/OpenF...Vilums_pdf.pdf

However, my question is if my boundary was in the following form:
\frac{\partial T}{\partial n} +
\frac{\partial \varphi}{\partial n} T = 1

in which both T and \varphi are dependent variables. How can I implement it in OpenFoam?

I am thinking of using codedFixedValue option for this boundary condition.


Any hint is appreciated.


All times are GMT -4. The time now is 08:19.