[Cython/1D] Use 'Mix' transport if no transport model is provided

This commit is contained in:
Ray Speth 2014-01-24 20:40:32 +00:00
parent c34877a96f
commit 3c703eb4ed

View file

@ -324,6 +324,8 @@ cdef class _FlowBase(Domain1D):
def __init__(self, _SolutionBase thermo, *args, **kwargs):
self.domain = <CxxDomain1D*>(self.flow)
super().__init__(*args, **kwargs)
if not thermo.transport_model:
thermo.transport_model = 'Mix'
self.gas = thermo
self.flow.setKinetics(deref(self.gas.kinetics))
self.flow.setTransport(deref(self.gas.transport))