Dear everyone,
I am currently working on solving a PDE with first and second derivatives explicitly with respect to two spatial variables π₯1 and π₯2. I am having some difficulty identifying the correct FEniCS operators to implement this equation properly. The equation I am trying to solve is:
(πΉ,22 β β1) π,11 + (πΉ,11 β β2) π,22 β 2 πΉ,12 π,12 β π,1 π1 πβ π,2 π2 π β π = 0
Where
π(x1, x2) is the unknown function
π,i represents the first derivatives with respect to π₯π
π,ij represents the second derivatives with respect to π₯π and π₯π.
F(x1, x2) represents a scalar function of spatial variables x1 and x2 with its second variables.
h1, h2, π1 and π2 are scalars and p is a known load term.
I attempted to implement the equation using grad(f) and inner() terms, but this approach includes derivatives in all spatial directions, which does not match the PDE that requires derivatives explicitly with respect to π₯1 and π₯2 only.
My weak form currently looks like this:
a = (F_S22_minus_h1 * inner(grad(f), grad(v)) * dx
+ F_S11_minus_h2 * inner(grad(f), grad(v)) * dx
- 2 * F_S12 * inner(grad(f), grad(v)) * dx)
-load_times_lambda_1 * v * dx - + load_times_lambda_2 * v * dx
L = -load * v * dx
How can I explicitly apply first and second derivatives with respect to π₯1 and π₯2 only in the weak form of my PDE? Is there a better operator or method in FEniCS to achieve this? I apologize if this is a basic questionβI am still quite new to FEniCS and learning its syntax. Any guidance, hints, or references would be greatly appreciated!
Thank you very much, and I look forward to hearing from you.
Best Regards,
Luigi