- #106
casualguitar
- 503
- 26
Got it. I have implemented some basic FD schemes manually before so I'm not starting from zero (just close to it)Chestermiller said:The finite difference scheme I am recommending employs a finite difference grid with spacing Δx, grid cell boundaries at (x=0, Δx, 2Δx...), and grid cell centers at (x=Δx/2, 3Δx/2, 5Δx/2, ...).
Chestermiller said:The mass flux into the bed ϕ0 is known at the cell boundary x = 0, and we calculate the mass flux at all the other cell boundaries
So this bit I'm not sure about. I think these questions clear up the confusion though:Chestermiller said:On the other hand, we calculate the fluid temperatures, enthalpies, and densities at the cell centers.
1) You say we're calculating mass flux at the cell boundaries, so at ##(x=0,\ \Delta x,\ 2\Delta x...)##. But in eq.1 the flux terms are evaluated ##\phi_{x-\Delta x/2}## and ##\phi_{x+\Delta x/2}##, which are not at the cell boundaries if I'm correct. How can we know these values, if we are evaluating only mass flux at the boundaries i.e. ##\phi_{x}## and ##\phi_{2\Delta x} ## etc
2) Similarly in eq.2, I follow the algebra, however if we're evaluating enthalpy at the cell centre, then I thought the subscript would be ##x+\Delta x/2## etc rather than ##(x=0,\ \Delta x,\ 2\Delta x...)##, which are the boundaries.
So the above two questions are really the same and are just 'what does it mean to evaluate flux at the boundary, and the other properties at the cell centre?'
3) Final question on that is why not evaluate all properties at the boundary, or at the centre. I guess there is a limitation here in that we can't evaluate flux at the centre or the other properties at the boundary, but I can't see it yet. I will look for this limitation in the morning
I'm familiar with upwind schemes. I do not know what numerical dispersion associated with modelling advection is though, and did not seem to find much online about this. What is this?Chestermiller said:Are you familiar with the finite differencing concepts of upwind differencing and numerical dispersion associated with modeling advection in transport models?