| Module | Source File | Description |
|---|---|---|
| ADMM_TAPENADE_INTERFACE | admm_tapenade_interface.f90 | |
| ar_interface | ar_interface.f90 | Procedure-pointer interfaces used by the deprecated global-state EOS code. |
| auxiliar_functions | auxiliar_functions.f90 | Relative-error and array-comparison helpers used in tests and consistency checks. The relative-error normalization is by the first argument, so callers should avoid a zero reference value. |
| hyperdual_mod | hyperdual.f90 | Type and overloaded operations for exact first- and second-order directional derivatives. |
| legacy_ar_models | legacy.f90 | Compatibility layer for older applications that use global EOS state and procedure pointers. |
| legacy_thermo_properties | legacy.f90 | |
| nonlinear_solvers | saturation_point.f90 | Solve small nonlinear systems using Newton steps and Armijo backtracking. |
| yaeos | yaeos.f90 | Public top-level module for EOS properties and phase-equilibrium calculations. |
| yaeos__adiff_hyperdual_ar_api | armodel_adiff_api.f90 | Base type and derivative adapter for models defined with hyperdual numbers. |
| yaeos__adiff_hyperdual_ge_api | gemodel_adiff_api.f90 | Base type and derivative adapter for GE models using hyperdual AD. |
| yaeos__autodiff | autodiff.f90 | Re-exports the hyperdual number implementation and the |
| yaeos__auxiliar | auxiliar.f90 | Small convenience procedures shared by model, solver, and phase-equilibrium code. |
| yaeos__consistency | consistency.f90 | Subroutine to evaluate the consistency of thermodynamic models. |
| yaeos__consistency_armodel | consistency_armodel.f90 | Consistency checks of Helmholtz free energy models (ArModel). |
| yaeos__consistency_gemodel | consistency_gemodel.f90 | Consistency checks of Helmholtz free energy models (GeModel). |
| yaeos__constants | constants.f90 | Precision, gas constant, unit conventions, volume-root identifiers, and
shared runtime settings used throughout |
| yaeos__critical_pure_point_solver | pure_critical_solver.f90 | Find pure-fluid critical constants for each component in an EOS model. |
| yaeos__equilibria | equilibria.f90 | Public entry points for stability, saturation, flash, critical-point, and binary three-phase calculations. |
| yaeos__equilibria_auxiliar | auxiliar.f90 | Wilson correlations for initial K-factors and pressure estimates. |
| yaeos__equilibria_binaries | binaries.f90 | Utilities for liquid-liquid-vapor lines and critical endpoints in binary systems. |
| yaeos__equilibria_boundaries_auxiliar | auxiliar.f90 | Composition interpolation and critical-region detection used by envelope solvers. |
| yaeos__equilibria_boundaries_generalized_isopleths | generalized_isoline.f90 | Continuation of multiphase equilibrium states at fixed overall composition. |
| yaeos__equilibria_boundaries_phase_envelopes_mp | phase_envelopes_pt_mp.f90 | Trace pressure-temperature boundaries for systems with multiple phases. |
| yaeos__equilibria_boundaries_phase_envelopes_mp_px | phase_envelopes_px_mp.f90 | Continue multiphase phase boundaries in pressure and feed composition at fixed temperature. |
| yaeos__equilibria_boundaries_phase_envelopes_mp_tx | phase_envelopes_tx_mp.f90 | Continue multiphase phase boundaries in temperature and feed composition at fixed pressure. |
| yaeos__equilibria_boundaries_phase_envelopes_pt | phase_envelopes_pt.f90 | Continuation routines for two-phase and multiphase boundaries in the plane. |
| yaeos__equilibria_boundaries_phase_envelopes_pt3 | phase_envelopes_pt_3ph.f90 | Continue a three-phase equilibrium boundary at fixed global composition. |
| yaeos__equilibria_boundaries_phase_envelopes_px | phase_envelopes_px.f90 | Continue a two-phase boundary at fixed temperature between limiting feeds. |
| yaeos__equilibria_boundaries_phase_envelopes_px3 | phase_envelopes_px_3ph.f90 | Continue a three-phase boundary at fixed temperature while pressure and feed composition vary. |
| yaeos__equilibria_boundaries_phase_envelopes_tx | phase_envelopes_tx.f90 | Continuation routines for phase boundaries in the plane. |
| yaeos__equilibria_boundaries_pure_saturation | pure_saturation.f90 | Calculation and interpolation of the saturation line of a pure component. pure_saturation_line traces the line from the critical point down to a specified pressure or temperature, and PurePsat stores and interpolates the result. |
| yaeos__equilibria_critical | critical.f90 | Calculation of mixture critical points with critical_point and critical lines with critical_line. The criticality conditions are solved with Newton’s method, and the critical line is traced with the same numerical continuation method used for phase envelopes. |
| yaeos__equilibria_equilibrium_state | equilibria_state.f90 | Derived types used to store the results of phase-equilibrium calculations. EquilibriumState holds a two-phase state and MPEquilibriumState holds a multiphase state. The values use the library’s default units: pressure in bar, temperature in kelvin, volume in litres per mole, and compositions as mole fractions. |
| yaeos__equilibria_flash | flash.f90 | Two-phase isothermal flash calculations at specified pressure or volume. The main entry point is flash, which uses successive substitution with a Rachford-Rice inner solve. The module also provides flash_no_beta_limits, which does not force the K-factors into the region where . |
| yaeos__equilibria_flash_second_order | flash_second_order.f90 | Two-phase flash at specified temperature and pressure by direct minimization of the reduced Gibbs energy, following the formulation of Michelsen (1982). |
| yaeos__equilibria_multiphase_flash | flash_mp.f90 | Module for multiphase flash calculations. |
| yaeos__equilibria_rachford_rice | rachford_rice.f90 | Utilities to solve the Rachford-Rice equation for the phase fraction of a two-phase flash, and to keep the K-factors within a range where a valid phase fraction exists. |
| yaeos__equilibria_saturation_points | saturations_points.f90 | Bubble, dew, and liquid-liquid saturation points at specified
temperature or pressure. The module first iterates a scalar Newton
method on with successive-substitution
updates of , and falls back to a full Newton solve in
if that does not converge.
A non-converged result is returned with |
| yaeos__equilibria_stability | stability.f90 | Phase stability related calculations. |
| yaeos__extra_fluids | fluids.f90 | Ready-to-use EOS models and compositions for examples, tests, and tutorials. |
| yaeos__m_s_sp | saturation_point.f90 | Residual equations, Jacobians, and point solvers for bubble, dew, and liquid-liquid states. |
| yaeos__math | math.f90 | This module provides all the relevant mathematical functions used in this library. Most important ones are: |
| yaeos__math_continuation | continuation.f90 | Predictor-corrector continuation of nonlinear solution curves. |
| yaeos__math_linalg | linalg.f90 | Dense linear solves, eigenproblems, and cubic-polynomial root utilities. |
| yaeos__math_nonlinearsolvers | nonlineal.f90 | Newton-type solvers for systems of nonlinear equations, including the
damped multivariate Newton method newton.
|
| yaeos__models | models.f90 | Public EOS and excess-Gibbs models available from the library. |
| yaeos__models_ar | ar_models.f90 | Abstract model interface and property calculations based on . |
| yaeos__models_ar_cubic_alphas | alphas.f90 | Component alpha-function implementations used by cubic equations of state. |
| yaeos__models_ar_cubic_cubic_mixing | cubic_mixing.f90 | Three-component combining rules for cubic equations of state. |
| yaeos__models_ar_cubic_implementations | implementations.f90 | Constructors for the cubic equations implemented in |
| yaeos__models_ar_cubic_mixing_base | base.f90 | Procedures of the core calculations of CubicEoS mixing rules. |
| yaeos__models_ar_cubic_mixing_sddlc | sddlc.f90 | Implementation of the s-DDLC mixing rule, in which the attractive parameter depends on density, temperature, and composition through local-composition segment fractions. This model extends the temperature-dependent quadratic mixing rule with segment-size data and volume-dependent local compositions. |
| yaeos__models_ar_cubic_quadratic_mixing | quadratic_mixing.f90 | Binary quadratic mixing rules for the attractive and repulsive parameters. |
| yaeos__models_ar_genericcubic | generic_cubic.f90 | Base types and the generic implementation of a cubic equation of state. The module defines the abstract AlphaFunction and CubicMixRule types, and the CubicEoS model that combines them. Specific cubic equations are provided in yaeos__models_ar_cubic_implementations. Defines the alpha-function and mixing-rule contracts, evaluates generic cubic Helmholtz expressions, and provides model configuration methods. |
| yaeos__models_ar_genericcubic_base | base.f90 | Calculation of the residual Helmholtz energy and its derivatives for a generic cubic equation of state with composition-dependent and parameters. Provides the algebraic residual Helmholtz expression and derivatives used by concrete cubic EOS implementations. |
| yaeos__models_ar_gerg2008 | gerg2008.f90 | Multifluid equation of state for natural-gas mixtures based on the reduced Helmholtz energy. The model is constructed with gerg_2008 from the component identifiers in G2008Components. The model uses the composition-dependent reducing functions and binary departure terms of the original 21-component formulation. |
| yaeos__models_ar_multifluid_parameters_gerg2008 | parameters_gerg2008.f90 | Pure-fluid and binary parameters of the GERG2008 equation of state, together with get_original_parameters, which loads them for a list of component identifiers. The loader returns pure-fluid coefficient arrays, pairwise departure parameters, and component critical constants in the requested ordering. |
| YAEOS__MODELS_AR_SAFT_PCSAFT | pc_saft.f90 | Implementation of the non-associating PC-SAFT residual Helmholtz model. |
| yaeos__models_base | base.f90 | Shared base type for all thermodynamic model families. |
| yaeos__models_cubic_mixing_rules_huron_vidal | huron_vidal.f90 | Cubic-EOS mixing rules that couple an excess-Gibbs model to the attractive mixture parameter. |
| yaeos__models_ge | ge_models.f90 | Abstract API and thermodynamic property relations for activity models. |
| yaeos__models_ge_base | base.f90 | Shared thermodynamic equations used by activity-coefficient model implementations. |
| yaeos__models_ge_gc_td | temperature_dependence.f90 | Abstract PsiFunction type and the concrete temperature-dependent
functions used by UNIFAC-like models.
|
| yaeos__models_ge_group_contribution_dortmund | dortmund.f90 | Modified UNIFAC (Dortmund) group-contribution model. Use setup_dortmund to build the model from the groups of each molecule. The constructor loads the Dortmund parameter tables and installs the Dortmund temperature dependence on the shared UNIFAC implementation. |
| yaeos__models_ge_group_contribution_dortmund_parameters | dortmund_parameters.f90 | Parameter set for the modified UNIFAC (Dortmund) model, returned by DortmundParameters. The returned parameter type contains group identifiers, subgroup sizes, and the Dortmund main-group interaction matrices. |
| yaeos__models_ge_group_contribution_groups | groups.f90 | The Groups type stores the UNIFAC subgroups of a molecule and their occurrence counts. It is used by all group-contribution models. A molecule is represented by matching subgroup-ID and count arrays. |
| yaeos__models_ge_group_contribution_model_parameters | model_parameters.f90 | Parameter arrays and consistency checks shared by UNIFAC-like models. |
| yaeos__models_ge_group_contribution_psrk | psrk.f90 | Group-contribution model used by the PSRK equation of state. Use setup_psrk to build the model from the groups of each molecule. Uses the PSRK group parameter set with the UNIFAC combinatorial and residual contributions. |
| yaeos__models_ge_group_contribution_psrk_parameters | psrk_parameters.f90 | Parameter set for the PSRK UNIFAC model, returned by PSRKParameters. The returned parameter type contains the PSRK subgroup definitions and main-group interaction matrices. |
| yaeos__models_ge_group_contribution_unifac | unifac.f90 | Classic liquid-vapor UNIFAC model implementation module. |
| yaeos__models_ge_group_contribution_unifac_parameters | unifac_parameters.f90 | UNIFAC parameters module |
| yaeos__models_ge_implementations | implementations.f90 | Convenience module that re-exports the excess Gibbs models available in
|
| yaeos__models_ge_NRTL | nrtl.f90 | Non-Random-Two-Liquid model for excess Gibbs energy. The constructor is NRTL and the model extends GeModel. It uses local compositions and temperature-dependent pair interactions to represent liquid non-ideality. |
| yaeos__models_ge_nrtlhv | nrtl_hv.f90 | Huron-Vidal-modified NRTL activity model for coupling to cubic EOS rules. |
| yaeos__models_ge_uniquac | uniquac.f90 | Universal quasi-chemical excess-Gibbs model and constructor. |
| yaeos__models_solvers | volume.f90 | Specialized numerical methods used by EOS implementations. |
| yaeos__newton_solver | newton.f90 | # Safeguarded Newton solver Solve nonlinear systems with Newton steps, LM regularization, and line search. |
| yaeos__solvers_pressure_equality | pressure_equality.f90 | Solve phase pressure equality for a two-phase state at fixed temperature and total volume. |
| yaeos__substance | substance.f90 | Derived type for pure-component data shared by thermodynamic models. |
| yaeos__tapenade_ar_api | tapenade_ar_api.f90 | Abstract interface and adapter for source-to-source differentiated EOS models. |
| yaeos__tapenade_ge_api | tapenade_ge_api.f90 | Abstract interface and adapter for source-to-source differentiated GE models. |
| yaeos__tapenade_interfaces | interfaces.f90 | Fortran interfaces to the push/pop routines used by Tapenade-generated adjoint code. |