def __init__(self, id='axisymmetric_flow', gas=None, type=1): Domain1D.__init__(self) iph = gas.thermo_hndl() ikin = gas.kinetics_hndl() itr = gas.transport_hndl() self._hndl = _cantera.stflow_new(iph, ikin, itr, type) if id: self.setID(id) self.setPressure(gas.pressure()) self.solveEnergyEqn()
def __init__(self, id = 'axisymmetric_flow', gas = None, type = 1): Domain1D.__init__(self) iph = gas.thermo_hndl() ikin = gas.kinetics_hndl() itr = gas.transport_hndl() self._hndl = _cantera.stflow_new(iph, ikin, itr, type) if id: self.setID(id) self._p = -1.0 self.setPressure(gas.pressure()) self.solveEnergyEqn()