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/interTrackFoam/freeSurfaceContinuityErrs.H

24 lines
660 B
C

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;
}