Dear community,
I am solving a 2D plane stress problem. One thing I would like to try is to implement the boundary condition in which the zz component of the strain is zero (\epsilon_{zz}(R_2)=0). What would I need to add or change in the code snippet shown below if the boundary has the mesh tag shown in the snippet?
boundary_tag = 2 # this is the mesh boundary tag
T = fem.Constant(domain, default_scalar_type((0, 0)))
ds = ufl.Measure("ds", domain=domain)
def epsilon(u):
return ufl.sym(ufl.grad(u)) # Equivalent to 0.5*(ufl.nabla_grad(u) + ufl.nabla_grad(u).T)
def sigma(u):
return lambda_ * ufl.nabla_div(u) * ufl.Identity(len(u)) + 2 * mu * epsilon(u)
u = ufl.TrialFunction(V)
v = ufl.TestFunction(V)
a = ufl.inner(sigma(u), epsilon(v)) * ufl.dx
L = ufl.dot(f, v) * ufl.dx + ufl.dot(T, v) * ds
Regards,
Jorge