Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / solidMechanics / deprecatedSolvers / icoFsiFoam / setPressure.H
blob3bf180df0b485462786d62f538e9338231b8aed1
2     // Setting pressure on solid patch
3     Info << "Setting pressure" << endl;
5     scalarField solidPatchPressure =
6         interpolatorFluidSolid.faceInterpolate
7         (
8             p.boundaryField()[fluidPatchID]
9         );
11     solidPatchPressure *= rhoFluid.value();
13     tForce.pressure() = solidPatchPressure;
16     vector totalPressureForce =
17         sum
18         (
19             p.boundaryField()[fluidPatchID]*
20             mesh.Sf().boundaryField()[fluidPatchID]
21         );
24     Info << "Total pressure force = " << totalPressureForce << endl;