Solid Mechanics
Since the entire circumference of each hole is now selected, the expression for the pressure must be truncated so that the load acts only on the intended semicircle.
Boundary Load 1
1
2
Locate the Force section, and modify the n text field to if(abs(sys2.phi)<pi/2,-p0*cos(sys2.phi),0)
Note how the Boolean expression abs(sys2.phi)<pi/2 is used to filter the load so that it is applied only to half of the pin hole. The loaded area does however rotate with the coordinate system, which is controlled by the parameter theta0.
An effect of the parameterization is that the load does not necessarily start at an element border; elements can be partially loaded. This is not a problem, as long as the mesh is fine enough.
Now, add an auxiliary sweep parameter.