1 /* ------------------------------------------------------------------------- *\
3 || Update loading patch ||
5 \* ------------------------------------------------------------------------- */
7 word patchName = "right";
8 label patchID = mesh.boundaryMesh().findPatchID(patchName);
11 FatalErrorIn("updateLoadingPatch.H") << "Patch " << patchName << " not found." << endl
18 U.boundaryField()[patchID].type()
19 == fixedValueFvPatchVectorField::typeName
22 //- 1 mm every 100 seconds
23 //- experimental ultimate failure occurred at 0.3 mm
24 vector disp(0.00001*runTime.value(), 0, 0);
25 U.boundaryField()[patchID] == disp;
27 Info << "Patch " << mesh.boundary()[patchID].name() << " has been updated"
33 SeriousError << "Loading Patch " << patchName << " is type "
34 << U.boundaryField()[patchID].type()
35 << " and is not updated!" << endl
39 // ************************************************************************* //