CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Accessing the previous cell (https://www.cfd-online.com/Forums/fluent-udf/134927-accessing-previous-cell.html)

bslalit May 7, 2014 05:25

Accessing the previous cell
 
1 Attachment(s)
I am simulating flow through porous media. Mass source term that I am planning to use is m=hA(delta c)

where m is the mass source
h is the mass transfer coefficient
A is the area
delta c is the concentration gradient = c(mixture in porous media) - c(inlet air)

Now delta c varies with each cell in x direction as inlet air absorbs moisture. I can use the c(out) of previous cell as the c(inlet) for the next cell. However, how should I specify the previous cell for complex geometries.


All times are GMT -4. The time now is 12:24.