Hi Sandeep,
I have to admit that I don’t know exactly what you’re after, here, but have the following thoughts:
1. The ‘gri30’ mechanisms are ideal gas model implementations. They explicitly assume a gas phase with zero electrical conductivity.
2. Broader picture, I would think that most gas-phase flows will assume the same, unless you are dealing with plasmas or ionized flows (I wade quickly out of my depth on those topics, though). Are you thinking of a condensed phase (liquid or
solid)? Even in this case, though, I do not know of a Cantera thermophase class which calculates electrical conductivity based on state properties.
3. If you wanted to calculate the charge density (Coulombs per m3), which is I think what you mean by “electric density,” then there may be a pathway for you.
In Python, the calculation would look something like this:
import cantera as ct
import numpy as np
gas = ct.Solution(‘gri30.cti’, ‘mix’) #This can be any phase you wish.
#Calculate number of electrons for each species:
nE = np.zeros(gas.n_species)
for i in range(gas.n_species):
nE[i] = gas.n_atoms(i,’E’)
<… set to some relevant state >
<… now calculate the charge density for that state:>
charge_density = -ct.faraday*np.dot(nE,gas.concentrations)
This will give you the charge density in Coulombs per m3. Note it will only work if ‘E’ is listed as one of the elements of your phase. So it would actually not work for gri30, in this case. But if ‘E’ is not included as one of the elements,
than it will by definition be charge neutral.
Best,
Steven
——————————————————————————————————
Steven DeCaluwe, PhD
Assistant Professor of Mechanical Engineering
Colorado School of Mines
Brown Building W410B
Golden, CO 80401