Replies: 1 comment 5 replies
-
By default, import numpy as np
def calc_throat_diffusivity(target,
pore_diffusivity="pore.diffusivity",
pore_volume="pore.volume"):
network = target.network
conns = network.conns
D12 = target[pore_diffusivity][conns]
V12 = target[pore_volume][conns]
Dt = np.average(D12, axis=1, weights=V12)
return Dt
phase.add_model("throat.diffusivity", model=calc_throat_diffusivity)
phase.regenerate_models() |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
How openpnm calculates diffusion coefficient of throat when different diffusion coefficients are described in its two-neighbour pores. Let's suppose, we have two neighbour pores and their diffusion coefficients are very different. But, we need only one diffusion coefficient to calculate conductance of throat that connects these two pores. So, which diffusion coef. becomes dominant? In other words, what is the correlation to calculate throat diffusivity coefficient? Because, as far as I understand, we are not able to define a specific diffusion coefficient for throats. Openpnm draws a coefficient from pores.
Best,
Beta Was this translation helpful? Give feedback.
All reactions