Any help on how to get this started would be awesome, I have no idea where to being with this:
"Approximate the sensor output for the following model
$$u_t+k\cdot u_{xx}=0$$ $$u(x,0)=0$$ $$\pi\cdot a^2\cdot k\cdot u_x(0,t) = -r(t)$$ $$\pi\cdot a^2\cdot k\cdot u_x(l,t) =-E\cdot R\cdot u(l,t)$$ where: $k = 0.5*10^{-4}$; $a=4.0$; $l=25$; $E=0.9$; $R=1.5$; $r=1/11.2$. The desired output st (the sensor time trace) is the concentration at $x = 22$ in mg/L measured in minutes, which is given by: $$st(\tau)=21.3\cdot u(\rho,60\cdot \tau)$$ where $\tau$ is measured in minutes, $\rho=22$, and $c=20$ is the unit conversion factor $$2.0*10^4 mg/mol *10^{-3} m^3/L$$
Basically I am trying to find the gas concentration of some gas, 22m down a 25m tunnel. A sensor at 22m records the concentration once every minute. The gas is absorbed in a filter at the far end of the tunnel, at 90% of its concentration in the 1.5 m$^3$/s of air passing through the filter. I need to simulate the sensor output as a function of time from the instant the gas is released until the sensor reads 2 mg/L.
There is indeed a sign problem. Such an equation is very ill-posed. Forgetting the boundary condition and thinking of this equation in all $\mathbb R$, you can see that it is "intrinsecally" ill-posed by taking Fourier transform for instance : formally, you would have $\hat u(t,\xi) = Ce^{k\xi^2t}$. The function $e^{k\xi^2}$ is growing way too fast as $|\xi| \to +\infty$, so this does not make any sense, even in the Schwartz distribution sense : there are no solution, even in the Schwartz space.
If you change the sign of $k$ it is way better : you get the classic Gaussian function which makes a lot more sense.
Perhaps you have $k > 0$ but $u_x$ and not $u_{xx}$, this would model transport of gas instead of diffusion.