Understanding the usage of ivp_solve in the transient reactive transport module #2522
-
Hello, Profs. scipy's ivp_solve module was applied in the dev version of PNM. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry for the late reply. The A matrix represents the discretization. For example, for diffusion, that the I hope that's a bit more clear. Please let me know if that answers your question. |
Beta Was this translation helpful? Give feedback.
Sorry for the late reply.
The A matrix represents the discretization. For example, for diffusion, that the$i$ -th row of $Ax-b$ is the discretized mass balance for pore $i$ . Now, since the balance equations we use in OpenPNM are not per volume (ex. the unit of the mass balance in OpenPNM is kg/s or mol/s, instead of kg/m3/s), the transient term is defined as
$$dm/dt = V \cdot dc/dt$$
So, to get the concentration over time, we need to divide the RHS by volume, hence
(A.dot(y)-b)/V
.I hope that's a bit more clear. Please let me know if that answers your question.