Thermodynamic models and tools. H2O, H2, CO2, air, and more

Tool for effective, high-precision thermodynamic calculations. Available species are H2, paraH2, orthoH2, N2, O2, Ar, H2O, and CO2.
855 Downloads
Updated 12 May 2023

thermodynamics

This repository contains Matlab implementations of high-accuracy thermodynamic models from the litterature, together with the 'thermo' class for calculating thermodynamic variables. Currenty, available species are H2, paraH2, orthoH2, N2, O2, Ar, H2O, and CO2, together with Air treated as a single pseudo species.

Main files:

thermo.m: Thermodynamic object that contains methods and properties that enable the calculation of thermodynamic variables and processes.

helmholtz.m: Helmholtz molar free energy and partial derivatives. Used by thermo.Tvcalc

parametersXX.m: Parameters for spescies XX. Used by thermo and helmholtz.

A number of supplementary funcrions and examples are also included.

With the exception of Air and orthoH2, the models and parameters are the same as used by NIST for calculating Thermophysical Properties of Fluid Systems https://webbook.nist.gov/chemistry/fluid/

Use the Matlab help command for details (e.g. help thermo)

Documentation:

  • User guide for Matlab class thermo.pdf

  • Properties from Helmholtz.pdf

  • Shock tube model for real gases.pdf

Version: 2.3.0

View H2 and CO2 thermodynamics on File Exchange

Cite As

Are Mjaavatten (2024). Thermodynamic models and tools. H2O, H2, CO2, air, and more (https://github.com/are-mj/thermodynamics/releases/tag/v2.3), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
2.3.0.0

See release notes for this release on GitHub: https://github.com/are-mj/thermodynamics/releases/tag/v2.3

2.2.0.0

See release notes for this release on GitHub: https://github.com/are-mj/thermodynamics/releases/tag/v2.2

2.1

See release notes for this release on GitHub: https://github.com/are-mj/thermodynamics/releases/tag/v2.1

2.0

Added H2O to the list of substances. Simplified model structure. Note that the input and output list of some functions have been modified

1.1.2

Added missing newton.m. Minor code cleanup.

1.1.1

Added brief user guide

1.1.0

Bug fixes and minor improvements. H2twophase_region and CO2twophase no longer require the mapping toolbox.

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.