Dirichlet Boundary Conditions

I am solving the fatigue problem by employing a phase-field approach on a single-edge notched plate. My objective is to induce cyclic displacement along the y-direction at the plate’s top using the prescribed expression:

c = Expression(“t * 0.0”, “d_u * abs(sin(pi/2 * t))”, degree=1, t=0, d_u=2e-3)

Within the time loop, I’m utilizing c.t = t to enforce the cyclic displacement. However, upon executing the code, I’m observing no deformations in the plate, suggesting a potential issue with the application of displacement boundary conditions.

Upon further investigation, substituting "t * 0.0" with "t" in the expression yields plate deformation, albeit with a non-cyclic behavior; instead, the displacement increases linearly with time.

Do any adjustments need to be made to the expression? Any assistance on this matter would be highly appreciated.

Thanks.

Please read Read before posting: How do I get my question answered?