-
I have been trying to implement a porous media dusty gas model (similar to Stefan-Maxwell diffusion) in fipy, and I am curious to know if there is a good way to implement the flux term. The mass conservation equation is as follows: For two components, the matrix-vector form is: where I am thinking of taking the analytic inverse of the left-hand side "A" matrix, multiplying through, and casting the result into four different |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I hoped there might be something clever to do with taking the divergence of the second equation and then substituting the first equation, but I think your approach is correct. I'm don't think FiPy offers anything to make it easier. |
Beta Was this translation helpful? Give feedback.
I hoped there might be something clever to do with taking the divergence of the second equation and then substituting the first equation, but I think your approach is correct. I'm don't think FiPy offers anything to make it easier.