Recently, I am studying on the point source problem (PDE with DiracDelta) for heat equation.
The equations are as follow

The problems are arisen from not only the DiracDelta issues but the nonlinear boundary condition at X = 0.
But I still try to using numerical method to solve, and the code is given below
RegularizedDelta[Gamma_, X_List, Xs_List] :=
Piecewise[{{Times @@
Thread[1/(4 Gamma) (1 + Cos[Pi/(2 Gamma) (X - Xs)])],
And @@ Thread[RealAbs[X - Xs] <= 2 Gamma]}, {0, True}}];
Timing[
a=2;b=15;c=25;A=1000;
Monitor[AbsoluteTiming[sys =
{
D[rou[X,Y,T],T]==D[rou[X,Y,T],X,X]+D[rou[X,Y,T],Y,Y],
+ aRegularizedDelta[0.01, {X}, {1}]RegularizedDelta[0.01, {Y}, {0}] -
NeumannValue[brou[X,Y,T]-phi[T], X == 0],
rou[X,Y,0] == 0, cD[phi[T],T]== b*rou[0,Y,T]-phi[T],phi[0]=0
};
{rou,phi} =
NDSolveValue[sys, {rou,phi}, {X, 0, A}, {Y, 0, A}, {T, 0, 1000000},
Method -> {"MethodOfLines",
"SpatialDiscretization" -> {"FiniteElement",
"MeshOptions" -> {"MaxCellMeasure" -> 0.009}}},
EvaluationMonitor :> (currentTime = Row[{"t =. ", CForm[t]}]),
InterpolationOrder -> All];], currentTime];]
However, MMA gave a warning message:
NDSolveValue::underdet: There are more dependent variables, {rou[X,Y,T],phi[T]}, than equations, so the system is underdetermined.
This problem bothers me for few months. Does anyone have experience to address this issue? Many thanks.
NDSolvecannot handle coupled PDE and ODE. – xzczd Sep 08 '21 at 11:24