-
Beta Was this translation helpful? Give feedback.
Answered by
guyer
Feb 8, 2024
Replies: 1 comment 18 replies
-
|
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The amount of "stuff" in a cell is the value at the cell center times the volume of the cell. You need to compare the before and after amount of substance (extensive) rather than the concentration (intensive). The preferred way to do that in FiPy (which accounts for nonuniform meshes) is
X.cellVolumeAverage
representsnote: if you do not use
.value
, then FiPy's lazy evaluation will result inXi
having the same value asXf
. You need.value
to hold the value at that time.