Note:The code runs correctly, but the results are not satisfactory. Additionally, how can the following space be defined in the code for the proximal EG method?.
Probably you need to define a new fe space for (26) (see the FF++ doc to define new fe spaces, but it is rather difficult).
Independently of that, it seems that there is a bug regarding the example since the exact solution does not vanish on the boundary. I think that the domain should be the unit disc instead of the square, or otherwise with the square we have to set the BC u=u_ex.
Here is a version with correct Newton algorithm, for the unit disk and conforming FE (P1,P0). pg_disk.edp (3.6 KB)
To compare with, here is a code for the semi-exact method obstacle-semiexact.edp (4.4 KB)
The method is described in
(see appendix A for the general formulation, that is applicable to the obstacle problem with G=Id, and h the indicator function (in the sense of convex analysis) of the set of admissible unknowns u(x) satisfying u\geq\phi a.e.)
Thank you so much, Sir, for your constant guidance and kind support. I truly appreciate your time, patience, and valuable suggestions. Your help means a lot to me.
Thank you so much, Sir. I have solved this issue. But I have seen that you considered alpha_k=1/k, whereas in my case alpha_k=2^(k-1). Although, the code is working fine when setting alpha_k=2^(k-1).
I donât know how to determine the âbest choiceâ for \alpha_k. The paper says âan unsummable sequence of positive proximity parameters \alpha_kâ. Probably the choice influences the number of iterations to achieve convergence.