I'm trying to solve the following equation (in Mathematica 10):
mysol =
NDSolve[
{D[u[t, x], t] ==
lambda*D[u[t, x], x, x] + p*(1 + Cos[2*omega*t])*DiracDelta[x],
u[t, -b] == T0, u[0, x] == T0, Derivative[0, 1][u][t, a] == 0},
u,
{t, 0, 0.1}, {x, -b, a},
Method -> {"PDEDiscretization" -> "FiniteElement"}]
with the constants:
T0 = 295; a = 100*10^(-9); b = 1*10^(-3); lambda = 0.5; p = 1*10^8; omega = 1000.
However the result I get is constant everywhere and I don't think it 'sees' the DiracDelta function. I've tried changing the method to the Finite Element method (as above) and replacing the DiracDelta function with D[HeavisideTheta[x],x] (as suggested elsewhere).
Any help would be greatly appreciated.
DiscreteDelta? – bobthechemist Oct 02 '14 at 18:53