Phases and Solutions#
- Solution(infile, name=""; transport="default")
Construct a
Solutionfrom a Cantera input (YAML) file.nameselects the phase within the file (the first phase is used when empty);transportselects a transport model,"default"being the one named in the input file.gas = Solution("gri30.yaml") gas = Solution("gri30.yaml", "gri30")
- close!(gas::Solution)
Release the Cantera-side objects backing
gas. Safe to call multiple times; the finalizer calls this automatically, so explicit use is only needed for deterministic cleanup.close!(f::Func1)
Release the Cantera-side object backing
f. Idempotent; called automatically by the finalizer.close!(mp::MultiPhase)
Release the Cantera-side object backing
mp. Idempotent.close!(d::ReactionPathDiagram)
Release the Cantera-side object backing
d. Safe to call multiple times; the finalizer calls this automatically.
- thermo(gas::Solution) -> ThermoPhase
Return the
ThermoPhaseview ofgas.
- kinetics(gas::Solution) -> Kinetics
Return the
Kineticsview ofgas.
- transport(gas::Solution) -> Transport
Return the
Transportview ofgas.
- name(gas::Solution) -> String
Name of the Solution object.
name(r::Reactor)
Reactor name.
name(c::Connector)
Connector name.
- transport_model(gas::Solution) -> String
Name of the active transport model.
- CanteraObject
Abstract supertype of all Julia wrappers around Cantera CLib objects.
- ThermoPhase
Thermodynamic-phase view of a
Solution. Wraps aThermoPhaseCLib handle and holds a reference to the owningSolution.
- Kinetics
Kinetics view of a
Solution. Wraps aKineticsCLib handle and holds a reference to the owningSolution.
- Transport
Transport view of a
Solution. Wraps aTransportCLib handle and holds a reference to the owningSolution.