1 //- net forces on boundary patches
3 vectorField netForces(mesh.boundary().size(), vector::zero);
6 forAll(netForces, patchI)
8 netForces[patchI] = gSum(mesh.Sf().boundaryField()[patchI] & sigma.boundaryField()[patchI]);
10 Info << "patch\t" << mesh.boundary()[patchI].name() << "\t\tnet force is\t"
11 << netForces[patchI] << " N" << endl;