fuellib.simulate.distillation.greenfield.D86Result

class fuellib.simulate.distillation.greenfield.D86Result(time, volume_recovered, T_vapor, T_liquid, T_condenser, heat_input, liquid_mole_fractions)

Bases: object

Time histories from a D86 simulation.

Attributes

time

Elapsed time since the heater was switched on.

volume_recovered

Volume fraction of the charge recovered as condensate at room temperature.

T_vapor

D86 (thermometer) temperature T3.

T_liquid

Temperature T1 of the liquid in the flask.

T_condenser

Temperature T2 of the partial-condensation stage.

heat_input

Heating rate Q1 supplied to the flask.

liquid_mole_fractions

Mole fractions of each compound in the flask (shape (time, compounds)).

Methods

plot

Plot the D86 curve (D86 temperature vs. volume percent recovered).

temperature_at

Interpolate the D86 temperature at the given recovered volume fractions.

Parameters:
  • time (Quantity[ndarray[tuple[int]]])

  • volume_recovered (Quantity[ndarray[tuple[int]]])

  • T_vapor (Quantity[ndarray[tuple[int]]])

  • T_liquid (Quantity[ndarray[tuple[int]]])

  • T_condenser (Quantity[ndarray[tuple[int]]])

  • heat_input (Quantity[ndarray[tuple[int]]])

  • liquid_mole_fractions (Quantity[ndarray[tuple[int, int]]])

T_condenser: Quantity[ndarray[tuple[int]]]

Temperature T2 of the partial-condensation stage.

T_liquid: Quantity[ndarray[tuple[int]]]

Temperature T1 of the liquid in the flask.

T_vapor: Quantity[ndarray[tuple[int]]]

D86 (thermometer) temperature T3.

heat_input: Quantity[ndarray[tuple[int]]]

Heating rate Q1 supplied to the flask.

liquid_mole_fractions: Quantity[ndarray[tuple[int, int]]]

Mole fractions of each compound in the flask (shape (time, compounds)).

plot(ax=None, *, label=None, temperature_units='K', data=None, color=None, linestyle='-', marker=None, data_label=None, default_ymin=True)

Plot the D86 curve (D86 temperature vs. volume percent recovered).

Only the distillation period (recovered volume > 0) is plotted. Pass the returned axes to further calls to overlay several curves; each new curve takes the next color of fl_blue_4 and the temperature limits cover all curves. See fuellib.utils.plotting.plot_d86().

Parameters:
  • ax (Axes | None) – Axes to plot on. Defaults to the axes of a new figure.

  • label (str | None) – Legend entry of the curve. The legend is shown if any curve on the axes has a label. Defaults to None.

  • temperature_units (str) – Units of the temperature axis (e.g. "degC"). Defaults to "K".

  • data (tuple[Quantity[ndarray[tuple[int]]], Quantity[ndarray[tuple[int]]]] | None) – Measured recovered volume fractions and D86 temperatures, plotted as symbols in the color of the curve. Defaults to None.

  • color (str | None) – Color of the curve and the data symbols. Defaults to the next color of fl_blue_4.

  • linestyle (str) – Line style of the curve (e.g. "--"). Defaults to "-".

  • marker (str | None) – Marker style of the measured data. Defaults to the next style of the cycle.

  • data_label (str | None) – Legend entry of the measured data. Defaults to "Data: {label}".

  • default_ymin (bool) – Whether the lower temperature limit defaults to the standard temperature. If False, it is the tick below the data. Defaults to True.

Returns:

Axes containing the plot.

Return type:

Axes

temperature_at(volume_fraction: float) → Quantity[float]
temperature_at(volume_fraction: ndarray[tuple[int]]) → Quantity[ndarray[tuple[int]]]

Interpolate the D86 temperature at the given recovered volume fractions.

Parameters:

volume_fraction (float | ndarray[tuple[int]]) – Recovered volume fraction(s) between 0 and 1.

Returns:

D86 temperature in K at each recovered volume fraction.

Return type:

Quantity[float] | Quantity[ndarray[tuple[int]]]

time: Quantity[ndarray[tuple[int]]]

Elapsed time since the heater was switched on.

volume_recovered: Quantity[ndarray[tuple[int]]]

Volume fraction of the charge recovered as condensate at room temperature.