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/solidMechanics/deprecatedSolvers/icoFsiFoam/setPressure.H

25 lines
566 B
C

{
// Setting pressure on solid patch
Info << "Setting pressure" << endl;
scalarField solidPatchPressure =
interpolatorFluidSolid.faceInterpolate
(
p.boundaryField()[fluidPatchID]
);
solidPatchPressure *= rhoFluid.value();
tForce.pressure() = solidPatchPressure;
vector totalPressureForce =
sum
(
p.boundaryField()[fluidPatchID]*
mesh.Sf().boundaryField()[fluidPatchID]
);
Info << "Total pressure force = " << totalPressureForce << endl;
}