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/forceWriteData.H

29 lines
924 B
C++

OFstream file
(
runTime.timePath()/"curvature.dat"
);
const vectorField& C = interface.aMesh().areaCentres().internalField();
const scalarField& K = interface.aMesh().faceCurvatures().internalField();
// const scalarField divUs = fac::div(Us)().internalField();
// const vectorField& nP = interface.aMesh().pointAreaNormals();
// const vectorField& nF = interface.aMesh().faceAreaNormals();
// primitivePatchInterpolationZT
// patchInterpolator(mesh.boundaryMesh()[movingPatchID]);
// vectorField nFAvr =
// patchInterpolator.pointToFaceInterpolate(nP);
// nFAvr /= mag(nFAvr);
forAll(C, faceI)
{
file<< C[faceI].x() << ' '
<< C[faceI].y() << ' '
<< K[faceI] << endl;
// << phi.boundaryField()[movingPatchID][faceI] << ' '
// << (180.0/M_PI)*std::acos((nF[faceI])&(nFAvr[faceI])) << endl;
}