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/include/freeSurfaceContinuityErrs.H
2013-07-18 10:15:54 +02:00

15 lines
531 B
C

// if(Pstream::master())
// {
Info<< "Free surface flux: sum local = "
<< gSum(mag(phi.boundaryField()[interface.aPatchID()]))
<< ", global = "
<< gSum(phi.boundaryField()[interface.aPatchID()]) << endl;
scalarField netPhiA =
phi.boundaryField()[interface.aPatchID()]
- fvc::meshPhi(rho,U)().boundaryField()[interface.aPatchID()];
Info<< "Free surface continuity error : sum local = "
<< gSum(mag(netPhiA)) << ", global = " << gSum(netPhiA)
<< endl << endl;
// }