Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticIncrSolidFoam / calculateNetForces.H
blob9e48bfd6ae3220fb23071a88ed160b9fffb6908d
1 //- net forces on boundary patches
3 vectorField netForces(mesh.boundary().size(), vector::zero);
5 Info << nl;
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;