1 //- write force displacement to file
2 if(historyPatchID != -1)
4 Info << "Found patch "<<historyPatchName<<", writing y force and displacement to file"
7 //- for small strain or moving mesh
9 gSum(mesh.boundary()[historyPatchID].Sf() & sigma.boundaryField()[historyPatchID]);
11 vector disp = gAverage(U.boundaryField()[historyPatchID]);
16 OFstream& forceDispFile = *filePtr;
17 forceDispFile << disp.x() << " "