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/)
-   -   Thermal energy in a cavaty flow (https://www.cfd-online.com/Forums/openfoam-programming-development/83083-thermal-energy-cavaty-flow.html)

sfhr December 14, 2010 07:22

Thermal energy in a cavaty flow
 
I am new to OpenFoam and I have the following situation:
i need to simulate the convection/diffusion problem with:
u=1,
v=0,
T_West=0
T_East=1
and dT/dy=0 for North and South

I need to determine the rate of convergence of the numerical solution using the OpenFoam finite volume scheme.

I just figured out how to add the temperature to IcoFoam.

But I have to plot the the log(err) vs. log(sqrt(n)) when using n total triangules in 2D since sqrt(n) is a measure of the grid space.

I was wondering if someone can help me with this... :)


All times are GMT -4. The time now is 00:13.