EngineeringFluids 0.1.4

dotnet add package EngineeringFluids --version 0.1.4
                    
NuGet\Install-Package EngineeringFluids -Version 0.1.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EngineeringFluids" Version="0.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EngineeringFluids" Version="0.1.4" />
                    
Directory.Packages.props
<PackageReference Include="EngineeringFluids" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EngineeringFluids --version 0.1.4
                    
#r "nuget: EngineeringFluids, 0.1.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EngineeringFluids@0.1.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EngineeringFluids&version=0.1.4
                    
Install as a Cake Addin
#tool nuget:?package=EngineeringFluids&version=0.1.4
                    
Install as a Cake Tool

EngineeringFluids

Fast, unit-typed thermodynamic and transport properties for engineering fluids in .NET.

Built on EngineeringUnits.Fast: every input and output is a typed quantity (Pressure, Temperature, Enthalpy, ...), so there are no unit mix-ups and no conversions by hand.

Currently supports Ammonia (R717) using the Gao et al. (2020) Helmholtz equation of state, with results that match CoolProp / SharpFluids.

Install

dotnet add package EngineeringFluids

Quick start

using EngineeringFluids.Fluids;
using EngineeringUnits.Fast;

var nh3 = new Ammonia();

// Single-phase state from pressure and temperature
nh3.UpdatePT(Pressure.FromBar(10), Temperature.FromDegreeCelsius(50));

Console.WriteLine(nh3.Density.KilogramPerCubicMeter);
Console.WriteLine(nh3.Enthalpy.JoulePerKilogram);
Console.WriteLine(nh3.Cp.JoulePerKilogramKelvin);
Console.WriteLine(nh3.DynamicViscosity.PascalSecond);
Console.WriteLine(nh3.Phase);

// Two-phase state from pressure and vapor quality (0 = saturated liquid, 1 = saturated vapor)
nh3.UpdatePX(Pressure.FromBar(5), 0.3);

Console.WriteLine(nh3.Temperature.DegreeCelsius);   // saturation temperature
Console.WriteLine(nh3.Quality);

State updates

Method Inputs
UpdatePT pressure, temperature (optionally a phase hint)
UpdatePH / UpdatePHExact pressure, enthalpy
UpdatePS / UpdatePSExact pressure, entropy
UpdatePX / UpdatePXExact pressure, vapor quality
UpdateTX / UpdateTXExact temperature, vapor quality
UpdateTS temperature, entropy
UpdateHS enthalpy, entropy
UpdateDT density, temperature
UpdateDP density, pressure
UpdateDH / UpdateDS density, enthalpy / entropy

The plain methods read the saturation dome from fast ancillary fits. The Exact variants solve the phase equilibrium against the equation of state instead: a bit slower, but they agree with CoolProp to about 1e-10 and work all the way up to the critical point. Use Exact when you need CoolProp-identical results.

Properties

Pressure, temperature, density, enthalpy, entropy, internal energy, Cp, Cv, speed of sound, viscosity, thermal conductivity, Prandtl number, surface tension, fugacity, compressibility, phase, quality, saturation temperature/pressure, critical and triple-point data, and validity limits.

All properties of a state are computed from a single cached equation-of-state evaluation, so reading many properties costs about the same as reading one. Once a state is set, it can be read from multiple threads at the same time.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EngineeringFluids:

Package Downloads
SharpFluids

Get Fluid properties using this lightweight CoolProp Wrapper

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.4 0 9/30/2026
0.1.3 24 9/30/2026