almost done with linear 1D isothermal