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/)
-   -   Iterative boundary condition (https://www.cfd-online.com/Forums/openfoam-programming-development/171164-iterative-boundary-condition.html)

Zhiheng Wang May 4, 2016 00:33

Iterative boundary condition
 
I have gone through all your suggestions about egassing BC I am trying to built BC based on Evaporation.

I am writting an interface condition for inlet where liquid converts to gas Method is very simple

1. first i have assume inlet temp 10k below boiling temp say Ts=290 and Tb=300
2.Then calculation XFs=exp((-hfg*Mw/Ru)((1/Ts)-(1/Tb)) Basic Clausious Claeperon hfg latent heat , Ru gas constant, Mw molecular weight of liquid.
3.Using Xfs we can find Yfs=(Xfs*Mw)/Mw,mix , Mw,mix is molecular weight of liquid
4.By using Yfs we can calculate velocity Us=diff*(gradYf)/(1-Yf).
5.We check that our assumed Ts value is right or not using gradTs = rho*Us*hfg/k.
If assumed Ts is write, Ts will be the boundary condition temp of inlet else it will go to re-iterate. until Ts=0.98Tb.

I can also send you code of c++ i tried and code of codestram can you plz help regarding this. Can we use for loop in groovy BC???

please send your valuable suggestions

Regards


All times are GMT -4. The time now is 07:55.