Phases and Solutions#

Solution(infile, name=""; transport="default")

Construct a Solution from a Cantera input (YAML) file.

name selects the phase within the file (the first phase is used when empty); transport selects 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 ThermoPhase view of gas.

kinetics(gas::Solution) -> Kinetics

Return the Kinetics view of gas.

transport(gas::Solution) -> Transport

Return the Transport view of gas.

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 a ThermoPhase CLib handle and holds a reference to the owning Solution.

Kinetics

Kinetics view of a Solution. Wraps a Kinetics CLib handle and holds a reference to the owning Solution.

Transport

Transport view of a Solution. Wraps a Transport CLib handle and holds a reference to the owning Solution.