I'm Trying to solve the following PDE:
$$ \frac{1}{20}\left(2 x_1^2+x_2^2\right) -25\left( \begin{bmatrix} 0\\ \frac{6 \cos(x_1)}{-37 + 3 \cos(2 x_1)} \end{bmatrix}^\intercal \nabla_{x_1,x_2}V(x_1,x_2) \right)^2 + \begin{bmatrix} x_2\\ \frac{6 (-98 + x_2^2 \cos(x_1)) \sin(x_1)}{-37 + 3 \cos(2 x_1)} \end{bmatrix}^\intercal \nabla_{x_1,x_2}V(x_1,x_2) = 0 $$
The only condition I have is $V(0,0)=0$ and I am looking for a positive definite solution. To give some context, this comes from a Hamilton-Jacobi-Bellman PDE.
ClearAll[RHS]
RHS = 1/20 (2 x1^2 + x2^2) - 25({0, (6 Cos[x1])/(-37 + 3 Cos[2 x1])}.Inactive[Grad][V[x1, x2], {x1, x2}])^2 + {x2,( 6 (-98 + x2^2 Cos[x1]) Sin[x1])/(-37 + 3 Cos[2 x1])}.Inactive[Grad][V[x1, x2], {x1, x2}]
ClearAll[ufun, mesh]
Needs["NDSolve`FEM`"]
mesh = ToElementMesh[Rectangle[{0, 0}, {1, 1}], "MaxBoundaryCellMeasure" -> 0.005, "MeshElementType" -> TriangleElement];
ufun = NDSolveValue[{RHS == 0, DirichletCondition[V[x1, x2] == 0, x1 == 0 && x2 == 0]}, V, {x1, x2} \[Element] mesh]
Plot3D[ufun[x1, x2], {x1, 0, 1}, {x2, 0, 1}, ColorFunction -> "TemperatureMap", AxesLabel -> Automatic]
Which gives some interpolating function with the warning: The PDE is convection dominated and the result may not be stable. Adding artificial diffusion may help. I am looking for a solution on a rather larger domain (e.g. Rectangle[{-10, -10}, {10, 10}), but I am finding several problems. First, I am not sure on how to enforce the condition $V(0,0)=0$ if (0,0) is not in the boundary of the region. Second, I am not sure on how to enforce the fact that V should be positive on the region and finally, I am not sure how to get rid of that warning about the PDE being convection dominated.
Any help would be greatly appreciated.