------------+-----------------------+-----------------------+----------------
i-1 i i+1 i+2
<------ fm(i+1)
fp(i+1) ----->
Hopefully that showed up in the email correctly. If that's the right
diagram, there's no reason to expect those fluxes to be the same. The
values of ql(i+1) and qr(i+1) should be the same but that's an
algorithmic result, not due to conservation.
I think I may be missing what exactly it is what you are trying to ask
so hopefully the diagram can help us.
Kyle
> --
> You received this message because you are subscribed to the Google Groups "claw-users" group.
> To post to this group, send email to claw-...@googlegroups.com.
> To unsubscribe from this group, send email to claw-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/claw-users?hl=en.
>
In Clawpack the values calculated from the Riemann solver are apdq and
amdq, the fluctuations coming from grid cell boundaries which resemble
your fp and fm but are something slightly different. The evaluations
of the flux function itself in the states to the left and right of a
grid cell boundary is also expected to be different and is why we
solve the Riemann problem. The numerical flux F^n_{1-1/2} it looks
like you are talking about can be calculated via
F^n_{i-1/2} = f(q_i) - apdq_{i-1/2} = f(q_{i-1}) - amdq_{i-1/2}
where f(q_i) is the flux function evaluated with state q_i and apdq
and amdq are the fluctuations moving from the grid cell boundary
located at i-1/2. In the case of conservation laws and a conservative
numerical method the value of F^n_{i-1/2} is unique for each grid cell
boundary.
Kyle