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/)
-   -   what do global and cumulative terms in continuity refer to exactly? (https://www.cfd-online.com/Forums/openfoam-solving/111663-what-do-global-cumulative-terms-continuity-refer-exactly.html)

immortality January 12, 2013 03:55

what do global and cumulative terms in continuity refer to exactly?
 
at results there are 3 types of residuals of continuity equation.whats the definition of them and difference?if cumulative and or global be negative whats wrong in the problem?

fumiya January 13, 2013 05:17

For the solvers of incompressible fluid, take a look at the
src/finiteVolume/cfdTools/incompressible/continuityErrs.H:

Code:

    volScalarField contErr(fvc::div(phi));

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

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

    Info<< "time step continuity errors : sum local = " << sumLocalContErr
        << ", global = " << globalContErr
        << ", cumulative = " << cumulativeContErr
        << endl;

From the above definitions, the difference between the local and global
continuity error is whether the magnitude of divergence is taken or not.
The "local" error is a measure of the continuity of each cell and the
"global" error represents the continuity in the whole computational domain.
If the global error converges to zero, I think the negative value is of no matter.

I have no idea about the importance of considering the cumulative error.

Fumiya

immortality January 16, 2013 09:15

thanks fumiya
I cant grasp how the total continuity is calculated.my case is compressible.
What does mean cumulative continuity error?
Any hint is accepted here!

kk415 September 6, 2018 03:05

hey fumiya,


I am also not able to understand what is the meaning of these errors, if sumLocalcontErr is the continuity error for a cell then for what cell it is giving the value. I mean it should give value for all cell. Is it the maximum that is calculated too?:confused:

kk415 September 6, 2018 05:06

I am interpolating the velocity field from coarser mesh to finer mesh and then checking the continuity error, this gives me SumLocalErr a relatively high value (inc. from 1e-9 to 1e-4) but globalErr remains of same (i.e. 1e-19 to 1e-20). What this implies? Is the interpolation wrong? Can this effect my solution?


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