reorganized

This commit is contained in:
Dave Goodwin
2005-06-25 13:16:06 +00:00
parent cbd1fd1d43
commit d1fc24fa8e
18 changed files with 2 additions and 385 deletions

View File

@@ -0,0 +1,38 @@
"""
Dusty Gas transport model.
The Dusty Gas model is a mulicomponent transport model for gas
transport through the pores of a stationary porous medium. This
example shows how to create a transport manager that implements the
Dusty Gas model and use it to compute the multicomponent diffusion
coefficients.
"""
from Cantera import *
from Cantera.DustyGasTransport import *
# create a gas-phase object to represent the gas in the pores
g = importPhase('h2o2.cti')
# set the gas state
g.set(T = 500.0, P = OneAtm, X = "OH:1, H:2, O2:3")
# create a Dusty Gas transport manager for this phase
d = DustyGasTransport(g)
# set its parameters
d.set(porosity = 0.2, tortuosity = 4.0,
pore_radius = 1.5e-7, diameter = 1.5e-6) # lengths in meters
# print the multicomponent diffusion coefficients
#print d.multiDiffCoeffs()
# compute molar species fluxes
state1 = g.saveState()
g.set(P = 1.2*OneAtm)
state2 = g.saveState()
delta = 0.001
print d.molarFluxes(state1, state1, delta)