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

25 lines
558 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;
}