Hello,
In a 2D problem I want to solve I have a right hand side of the form
$$L = \nabla \cdot \left( A \nabla f\right) + \omega^2 f$$
with $A = A(x,y)$ a $2\times 2$ matrix and $f = \exp{(i\omega x)}$.
When $A = Id(2)$ we clearly have $L=0$, but numerically computing $L$ even with third degree elements produces a solution of order $10^{-2}$ instead of being exactly 0.
There is however a whole region where $A$ is not the identity but assumes values depending on the position.
I tried feeding $L$ a modified function $f$ that is exactly 0 except for the region where $A \neq Id(2)$, but this produces a jump at the interface between the regions.
So I was wondering if there is a way to change the linear form $L$ after it's been computed to set it exactly to 0 in the region where it should in fact be null.
Thanks in advance