Hello everyone
I want to polar solution on a Lshaped domain but it shows error.
I defined it as
x = SpatialCoordinate(mesh)
r = sqrt(x[0]**2 + x[1]**2)
theta = atan_2(x[1], x[0])
chi = Constant(0.54448373)
lamda = Constant(10)
nu = Constant(1.0)
M1 = Expression("-cos((chi + 1) * 3*pi / 4) / cos((chi - 1) * 3*pi / 4)", chi=chi, degree=3)
M2 = Expression("2 * (lamda + 2*nu) / (nu + lamda)", lamda=lamda, nu=nu, degree=3)
u_exact = Expression(("pow(r, chi) / (2 * nu) * (-(chi + 1) * cos((chi + 1) * theta) + (M2 - chi - 1) * M1 * cos((chi - 1) * theta))", "pow(r, chi) / (2 * nu) * ((chi + 1) * sin((chi + 1) * theta) + (M2 + chi - 1) * M1 * sin((chi - 1) * theta))"), r=r, theta=theta, chi=chi, M1=M1, M2=M2, nu=nu, domain=mesh, degree=3)
p_exact = Expression("pow(r, 1.0/3.0) * sin(1.0/3.0 * (pi/2 + theta))", r=r, theta=theta, domain=mesh, degree=3)
but it shows error. Please help me in this regard.
Thanks