Equations of state
MultiComponentFlash.GenericCubicEOSMultiComponentFlash.GenericCubicEOSMultiComponentFlash.PengRobinsonMultiComponentFlash.RedlichKwongMultiComponentFlash.SoaveRedlichKwongMultiComponentFlash.ZudkevitchJoffeMultiComponentFlash.component_fugacityMultiComponentFlash.force_coefficientsMultiComponentFlash.force_coefficients!MultiComponentFlash.force_scalarsMultiComponentFlash.mixture_fugacitiesMultiComponentFlash.number_of_components
Types
MultiComponentFlash.GenericCubicEOS — TypeGenericCubicEOS is an implementation of generalized cubic equations of state.
Many popular cubic equations can be written in a single form with a few changes in definitions for the terms (they are, after all, all cubic in form). References:
MultiComponentFlash.GenericCubicEOS — TypeGenericCubicEOS(mixture, [type = PengRobinson()])Instantiate a generic cubic equation-of-state for a MultiComponentMixture and a specified EOS.
Currently supported choices for type:
1. `PengRobinson` (default)
2. `ZudkevitchJoffe`
3. `RedlichKwong`
4. `SoaveRedlichKwong`MultiComponentFlash.PengRobinson — TypeSpecializes the GenericCubicEOS to the Peng-Robinson cubic equation of state.
MultiComponentFlash.RedlichKwong — TypeSpecializes the GenericCubicEOS to the Redlich-Kwong cubic equation of state.
MultiComponentFlash.SoaveRedlichKwong — TypeSpecializes the GenericCubicEOS to the Soave-Redlich-Kwong cubic equation of state.
MultiComponentFlash.ZudkevitchJoffe — TypeSpecializes the GenericCubicEOS to the Zudkevitch-Joffe cubic equation of state.
The Zudkevitch-Joffe equations of state allows for per-component functions of temperature that modify the weight_ai and weight_bi functions. These additional fitting parameters allows for more flexibility when matching complex mixtures.
Functions
MultiComponentFlash.component_fugacity — Methodcomponent_fugacity(eos, cond, i, Z, forces, scalars)Get fugacity of component i in a phase with compressibility Z and EOS constants scalars.
MultiComponentFlash.force_coefficients! — Methodforce_coefficients!(coeff, eos, cond)In-place update of force coefficients.
See also force_coefficients
MultiComponentFlash.force_coefficients — Methodforce_coefficients(eos, cond)Get coefficients for forces for a specific EOS (component interactions). For most cubics, these are a set of attractive (linear and quadratic) forces and a set of linear repulsive forces.
Note that the current implementation of flash assumes that these are independent of the compositions themselves.
See also force_coefficients!
MultiComponentFlash.force_scalars — Methodforce_scalars(eos, cond, forces)Compute EOS specific scalars for the current conditions based on the forces.
MultiComponentFlash.mixture_fugacities — MethodAllocating version of mixture_fugacities!
MultiComponentFlash.number_of_components — Methodnumber_of_components(eos)Return number of components for the underlying mixture of the EOS.