CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to calculate unsteady residual (http://www.cfd-online.com/Forums/openfoam/108355-how-calculate-unsteady-residual.html)

praveen October 21, 2012 03:27

How to calculate unsteady residual
 
Hello

Is there a function available to calculate something like

\sum_{i=1}^{ncells} \left( \frac{\rho^n_i - \rho^o_i}{\Delta t} \right)^2 V_i

I am looking for some solution like

sum(sqr(fvc::ddt(rho)))

but I dont know if such functions exist.


All times are GMT -4. The time now is 06:27.