CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   VelocityGradient as a function of temperature (https://www.cfd-online.com/Forums/openfoam/221821-velocitygradient-function-temperature.html)

Nikhil2511 October 31, 2019 08:02

VelocityGradient as a function of temperature
 
2 Attachment(s)
mu*du/dy = A* dT/dy + B*dC/dy ;

A and B are constants.
v = 0

Is it possible to define above equation as boundary condition using Groovy BC or using library for it ?
please help how to write this Boundary Condition.
I am attaching the library which I used but the result are not good. It is a 2D cavity with temperature and concentration given to the side walls and the surafce tension is linearly varying with the temperature. The solver is for the OpenFoam 5.0.
Is it necessary to initialize the test case using setFields for the concentration?

thanks.


All times are GMT -4. The time now is 11:20.