Skip to content

Calculating flux into one face of a network #1918

Answered by jgostick
alper-can asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @alper-can
Thanks for opening this as a Q&A rather than a bug. It's not a bug :-) The problem is that your pores overlap at the corners ('front' and 'left' share a pore). So when you computed the rate into each face you were asking for the rate of all 'front' pores, but this included the rate from the 'left' BCs as well. Hopefully my code snippet below helps.

import numpy as np
import openpnm as op
np.set_printoptions(precision=4)
np.random.seed(10)
ws = op.Workspace()
ws.settings["loglevel"] = 30

net = op.network.Cubic(shape=[30, 30, 1], spacing=3e-5)

geom = op.geometry.StickAndBall(network=net, pores=net.Ps, throats=net.Ts)
del geom.models['pore.diameter']
del geom.models['throat.d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alper-can
Comment options

Answer selected by jgostick
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