I came across some analogous structure of diffusion and the quantum mechanical particle (Schrödinger eq.). I have seen that there have been similar questions asked, but the (probablitily flux and the mass/particle conservation was not adressed in those).
In diffusion the particle flux $\vec{j}(\vec{r},t)$ is related to the gradient of the particle density $\vec{\nabla} n(\vec{r},t)$ and the diffusion coeffcient $D$ via Ficks first law
$$\vec{j}(\vec{r},t) = -D \nabla n(\vec{r},t) \tag{1a} $$ When this is combined with the particle conservation condition
$$ \frac{\partial n(\vec{r},t)}{\partial t} = - \nabla\cdot \vec{j}(\vec{r},t), \tag{2a}$$ one obtains the "Diffusion euqtaion" (Ficks second law)
$$ \frac{\partial n(\vec{r},t)}{\partial t} = D \nabla^2 n(\vec{r},t). \tag{3a}$$
Now I find it quite puzzling to compare this with analogous expressions from non-rel. Quantum mechanics.
The probability flux is defined by
$$ \vec{j}(\vec{r},t) = \frac{\hbar}{2m i}\left[\Psi^*\nabla\Psi - \Psi\nabla(\Psi^*)\right]\tag{1b},$$ keeping in mind that the QM particle density $$n(\vec{r},t)=|\Psi\Psi^*|\tag{4}.$$ Thus $\vec{j}$ in (1b) essentially differs from $\nabla n$ in (1a) only by the "-" sign of the second term.
In QM usually the continuity condition (= particle probability conservation):
$$ \frac{\partial n(\vec{r},t)}{\partial t} = - \nabla\cdot \vec{j}\tag{2b},$$ is obtained from (1b) and the time-dependent Schrödinger equation:
$$ i \frac{\partial \Psi(\vec{r},t)}{\partial t} = -\frac{\hbar}{2m} \nabla^2 \Psi(\vec{r},t) \tag{3b}. $$
So in both settings we have two independent equations of close structural similarity form which a third one follows. In both cases (1) defines a flux, (2) a continuity/conservation condition and (3) the time development of a density function.
I am asking myself if there is a theory of a more general structure from which cases (a) and (b) follow as specific cases. I think about something like a Poisson bracket formalism (or the mimisation of action and similar) that contains both cases as special cases. Can anyone hint me to something like that?
In particular I would be interested to understand how in such a formalism the above addressed "-"-sign in the definition of the flux can arise. I am asking this because I suspect some physical interpretation or significance of $\nabla n$ in the QM context of the flux.
I am aware of similar questions like this on PSE about the analogy of the SE and the Diffusion equation, but no one has adressed particle conservation and flux and in addition I have found no comments that would hint at a "common theory" that would unify both in the sense I am asking for.
Edit: to make the analogy better visible I attach this table $$ \begin{array}{c|c|c} (a) & (b) & \\ \hline \vec{j} = -D \nabla n & \vec{j} = \frac{\hbar}{2m i}(\Psi^*\nabla\Psi - \Psi\nabla \Psi^*) & (1) \\ \frac{\partial n}{\partial t} = - \nabla\cdot \vec{j} & \frac{\partial n}{\partial t} = - \nabla\cdot \vec{j} & (2) \\ \frac{\partial n}{\partial t} = D \nabla^2 n & i \frac{\partial \Psi}{\partial t} = -\frac{\hbar}{2m} \nabla^2 \Psi & (3) \end{array}$$ with $n=|\Psi^*\Psi|$