This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/surfaceTracking/sloshingInterTrackFoam/freeSurfaceContinuityErrs.H

25 lines
936 B
C
Raw Normal View History

if(Pstream::master())
{
Info<< "Free surface flux: sum local = "
<< sum(mag(phi.boundaryField()[interface.aPatchID()]))
<< ", global = "
<< sum(phi.boundaryField()[interface.aPatchID()]) << endl;
Info<< "Free surface continuity error : sum local = " <<
sum
(
mag
(
phiNet.boundaryField()[interface.aPatchID()]/
interface.rhoFluidA().value()
)
)
<< ", global = " <<
sum
(
phiNet.boundaryField()[interface.aPatchID()]/
interface.rhoFluidA().value()
)
<< endl << endl;
}