Skip to content

Understanding the usage of ivp_solve in the transient reactive transport module #2522

Answered by ma-sadeghi
oscarhx asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oscarhx
Comment options

Answer selected by ma-sadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants