CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   deltaT in calculation of time step continuity errors (https://www.cfd-online.com/Forums/openfoam-solving/79584-deltat-calculation-time-step-continuity-errors.html)

misakagan August 27, 2010 10:13

deltaT in calculation of time step continuity errors
 
Hi,

Right now I'm inspecting the code in "continuityErrs.H" and couldn't figure out what deltaT is doing there? Does somebody know why we are multiplying weighted sum of the fluxes with deltaT?

Thanks.


Code:

    volScalarField contErr = fvc::div(phi);

    scalar sumLocalContErr = runTime.deltaT().value()*
        mag(contErr)().weightedAverage(mesh.V()).value();

    scalar globalContErr = runTime.deltaT().value()*
        contErr.weightedAverage(mesh.V()).value();
    cumulativeContErr += globalContErr;



All times are GMT -4. The time now is 17:54.