I'm having the following issue that can not find a solution , by using this boundary condition
u[0, t] == 2 u[1, t]
that Mathematica does not understand, someone please help me!
s = NDSolve[
{
D[u[x, t], t] == -D[u[x, t], x] - u[x, t],
u[x, 0] == 1,
u[0, t] == 2 u[1, t]
},
{u[x, t]},
{x, 0, 1}, {t, 0, 1},
Method -> {"PDEDiscretization" -> {"MethodOfLines",
"TemporalVariable" -> t}}]
I'm getting this error message :
NDSolve::bcedge: Boundary condition u[0,t]==2u[1,t] is not specified on a single edge of the boundary of the computational domain.
I have already presented a similar problem here, but the reasoning suggested is not a good solution for my case.
What strategies do you know to treat this problem ? I appreciate any help...