Closed JorgeESantos closed 1 year ago
Hi. There are a couple of issues with your code:
gas_mixture_ce
instead of gas_mixture_ce(...)
.Air
is already a mixture so I assume it should already have a model for diffusivity, so I guess you don't need to add those models yourself.temperature
instead of Temperature
.Have you looked at this example? It explains how to compute tortuosity of a network.
Hey there. Thanks for the quick answer. Its solved. I added the diffusive size factors to the Network and then, I deleted diffusivity models and it does the trick. The temperature was a typo when I wrote it on Github. Now the code is:
air = pnm.phase.Air(network=Net, name='air')
air.add_model_collection(pnm.models.collections.physics.basic)
air['pore.temperature'] = 293.15
air['throat.temperature'] = 293.15 #24ºC = 297.15K
# set T = 20ºC
air.add_model(propname='throat.diffusive_conductance',
model=pnm.models.physics.diffusive_conductance.generic_diffusive)
print('Phase and physics set')
Thanks for the help. Should I delete the thread?
Greetings.
I'm trying to set up an Air phase in order to perform Fickian Diffusion simulation, to calculate Network tortuosity. The code I'm trying to run is:
The error raised is the following:
It seems I'm unable to define diffusity and that "gas_misture_ce" has not been able to fetch or reach air.params of Molecular Weight? With gas_mixture_fesg(), the result is the same.
Whats going on? Am I missing something? @ma-sadeghi
Regards