fuellib.simulate.distillation.greenfield.distill

fuellib.simulate.distillation.greenfield.distill(fuel, Yi=None, *, apparatus=None, ideal_solution=False, ideal_vapor=False, air_cstr=True, max_time_step=Quantity(2.0, 'second'), residue_fraction=0.01)

Simulate the ASTM D86 distillation curve with the Greenfield et al. model.

The model and the numerical method are documented in docs/distillation.rst.

Parameters:
  • fuel (Fuel) – Fuel object.

  • Yi (Quantity[ndarray[tuple[int]]] | None) – Mass fractions of each compound in the charge. Defaults to fuel.y0 (initial mass fractions).

  • apparatus (D86Apparatus | None) – Apparatus and procedure parameters. Defaults to D86Apparatus().

  • ideal_solution (bool) – Whether to neglect liquid-phase nonideality (gamma_i = 1). Defaults to False.

  • ideal_vapor (bool) – Whether to neglect vapor-phase nonideality (phi_i = 1). Defaults to False.

  • air_cstr (bool) – Whether to include the air-filled CSTR, Greenfield et al. (1998) eq. (12)-(14). If False, the D86 temperature is the stage-2 temperature (the “partial model”). Defaults to True.

  • max_time_step (Quantity[float]) – Largest time step of the integration. Defaults to 2 s.

  • residue_fraction (float) – Fraction of the initial moles left in the flask at which the simulation stops. Defaults to 0.01.

Returns:

Time histories of the simulated D86 test.

Raises:
  • ValueError – If the fuel boils below room temperature.

  • RuntimeError – If the simulation fails to reach the end condition.

Return type:

D86Result