Hi zhubq,
Diffusion as implemented in MICRESS can be described for a single component like you did, your formulation can be obtained from the standard formulation
using the product rule of differentiation and assuming a constant value of

.
For discretisation, the fundamental question is how to obtain

and

because they are defined between the grid points like

. Normal averaging between the left and right grid cell like
+
would lead to the problem that, if e.g. in an interface one of the phases had no solubility at all for the component under consideration, there would be still a flux into this stoichiometric phase, even if

for the other phase is zero. Therefore, we instead apply the modified averaging scheme
+
which avoids such problems
By this way, it also doesn't matter that we do not know

, if in one grid point

is zero.