| |
- Transport
class Transport |
|
Transport properties.
This class provides the Python interface to the family of
transport manager classes in the Cantera C++ kernel. A transport
manager has one job: to compute transport properties of a phase of
matter assigned to it. The phase is represented by an object
belonging to a class derived from ThermoPhase.
In the C++ kernel, a transport manager implements a single
transport model, and is an instance of a subclass of the base
class 'Transport'. The structure in Python is a little
different. A single class 'Transport' represents any kernel-level
transport manager. In addition, multiple kernel-kevel transport
managers may be installed in one Python transport manager,
although only one is active at any one time. This feature allows
switching between transport models. |
|
Methods defined here:
- __del__(self)
- Delete all installed transport models.
- __init__(self, xml_phase=None, phase=None, model='', loglevel=0)
- Create a transport property manager.
xml_phase --- XML phase element
phase --- ThermoPhase instance representing the phase that the
transport properties are for
model --- string specifying transport model. If omitted or
set to 'Default', the model will be read from the
input file.
loglevel --- controls the amount of diagnostic output
- addTransportModel(self, model, loglevel=1)
- Add a new transport model. Note that if 'model' is the
name of an already-installed transport model, the new
transport manager will take the place of the old one, which
will no longer be accessible. This method does not change the
active model.
- binaryDiffCoeffs(self)
- Two-dimensional array of species binary diffusion coefficients.
- desc(self)
- A short description of the active model.
- diffusionCoeffs(self)
- Species diffusion coefficients. (m^2/s).
- mixDiffCoeffs(self)
- Mixture-averaged diffusion coefficients.
- molarFluxes(self, state1, state2, delta)
- multiDiffCoeffs(self)
- Two-dimensional array of species multicomponent diffusion
coefficients. Not implemented in all transport managers.
- setParameters(self, type, k, params)
- Set model-specific parameters.
- switchTransportModel(self, model)
- Switch to a different transport model.
- thermalConductivity(self)
- Thermal conductivity. [W/m/K].
- thermalDiffCoeffs(self)
- Return a one-dimensional array of the species thermal diffusion
coefficients. Not implemented in all transport models.
- transport_hndl(self)
- For internal use.
- transport_id(self)
- For internal use.
- viscosity(self)
- Viscosity [Pa-s].
| |