Matlab and Octave version

The Matlab and Octave API can be inlcuded in your code as follow:

%Class generation
p = Asali('database.mat');

%Set up composition/pressure and temperature
p.Pressure     = 4e05;
p.Temperature  = 393.15;
p.Names        = {'H2' 'O2' 'N2'};
p.MoleFraction = [0.1 0.2 0.7];

%Properties evaluation
cp = p.SpeciesMassSpecificHeat;

To create the file database.mat run the file database-generator.m

Available thermodynamic and transport properties

ASALI estimates different thermodynamic and transport properties (p is the Asali object):

Function Estimated property Return type Unit dimension
p.Density Mixture density float kg/m3
p.MixtureMolecularWeight Mixture molecular weight float g/mol
p.MixtureThermalConductivity Mixture thermal conductivity float W/m/K
p.MixtureViscosity Mixture viscosity float Pa*s
p.MixtureMolarSpecificHeat Mixture specific heat float J/kmol/K
p.MixtureMassSpecificHeat Mixture specific heat float J/kg/K
p.MixtureMolarEnthalpy Mixture enthalpy float J/kmol
p.MixtureMassEnthalpy Mixture enthalpy float J/kg
p.MixtureMolarEntropy Mixture entropy float J/kmol/K
p.MixtureMassEntropy Mixture entropy float J/kg/K
p.MixtureDiffusion Mixture diffusivity float m2/s
p.SpecieThermalConductivity Single specie thermal conductivity 1D array W/m/K
p.SpecieViscosity Single specie viscosity 1D array Pa*s
p.SpeciesMolarSpecificHeat Single specie specific heat 1D array J/kmol/K
p.SpeciesMassSpecificHeat Single specie specific heat 1D array J/kg/K
p.SpecieMolarEnthalpy Single specie enthalpy 1D array J/kmol
p.SpecieMassEnthalpy Single specie enthalpy 1D array J/kmol
p.SpecieMolarEntropy Single specie entropy 1D array J/kmol/K
p.SpecieMassEntropy Single specie entropy 1D array J/kg/K
p.MeanGasVelocity Single gas velocity 1D array m/s
p.MeanFreePath Single mean free path 1D array m
p.BinaryDiffusion Single binary diffusion 2D array m2/s