I have the following PDE.
$\frac{\partial c}{\partial t} + v\frac{\partial c}{\partial x} - D\frac{\partial^2 c}{\partial x^2} = 0 \\$.
I have discretized it such that i now have $\frac{dC}{dt} = aC_{i+1} +bC_{i} +cC_{i-1} \\$ (1)
I have been given the following initial conditions:
$\\C=C_0\quad\forall \ 0<t<\tau\\$
$\\C=0\quad\forall \ t>\tau\\$
i have been asked how i would go about: ' describe how to implement the initial conditions in terms of the solution domain and in terms of any extra vectors'.
This question is from a degree course and is about injecting a trace of dye.
I have discretised the convective component using simple upwind and the diffusive component using central differences. I'm struggling to understand what the question is asking me.
I understand that evaluation at i=1 poses a problem in that it requires C at $\ C_0\\$. This is outside of the solution domain and would require a ghost node, but this is outside the solution domain.
What are peoples thoughts?
For the 1st initial condition i was thinking of ignoring the diffusive component and for the 2nd initial condition ignoring both the diffusive and convective terms since there is no dye left. Then i would have two equations that describe the initial conditions.