Skip to content

Add Nitrogen as a Phase #2535

Answered by jgostick
ruchajk2597 asked this question in Q&A
Discussion options

You must be logged in to vote

If you're doing just permeability then it's pretty simple, and you may actually be over thinking it. The permeability only needs to know the gas viscosity, so you can just create an GenericPhase object, then assign the viscosity of N2 as a constant, like:

n2 = op.phases.GenericPhase(network=pn)
n2['pore.viscosity'] = 1.8e-5  # Or whatever it is

Note that the StokesFlow algorithm in OpenPNM does not account for compressibility, so you don't even need molecular weight or anything.

In the new, upcoming version of openpnm, we have more support for different fluids, but that is not really need for what you're doing here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ruchajk2597
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
Converted from issue

This discussion was converted from issue #2534 on August 04, 2022 13:52.