Julia version
The Julia API can be included in your code as follow:
include("asali.jl")
species = String["H2","O2","N2"]
x = Float64[0.1,0.2,0.7]
asali.set_temperature(393.15)
asali.set_pressure(4e05)
asali.set_number_of_species(3)
asali.set_species_names(species)
asali.set_mole_fraction(x)
diff = asali.get_binary_diffusion()
cp = asali.get_species_mass_specific_heat()
The example can be run by typing:
julia database-generator.jl
julia example.jl
Available thermodynamic and transport properties
ASALI estimates different thermodynamic and transport (asali is the library object):
| Function | Estimated property | Unit dimension |
|---|---|---|
| asali.density() | Mixture density | kg/m3 |
| asali.mixture_molecular_weight() | Mixture molecular weight | g/mol |
| asali.mixture_thermal_conductivity() | Mixture thermal conductivity | W/m/K |
| asali.mixture_viscosity() | Mixture viscosity | Pa*s |
| asali.mixture_molar_cp() | Mixture specific heat | J/kmol/K |
| asali.mixture_mass_cp() | Mixture specific heat | J/kg/K |
| asali.mixture_molar_enthalpy() | Mixture enthalpy | J/kmol |
| asali.mixture_mass_enthalpy() | Mixture enthalpy | J/kg |
| asali.mixture_molar_entropy() | Mixture entropy | J/kmol/K |
| asali.mixture_mass_entropy() | Mixture entropy | J/kg/K |
| asali.mixture_diffusion() | Mixture diffusivity | m2/s |
| asali.species_thermal_conductivity() | Single specie thermal conductivity | W/m/K |
| asali.species_viscosity() | Single specie viscosity | Pa*s |
| asali.species_molar_cp() | Single specie specific heat | J/kmol/K |
| asali.species_mass_cp() | Single specie specific heat | J/kg/K |
| asali.species_molar_enthalpy() | Single specie enthalpy | J/kmol |
| asali.species_mass_enthalpy() | Single specie enthalpy | J/kg |
| asali.species_molar_entropy() | Single specie entropy | J/kmol/K |
| asali.species_mass_entropy() | Single specie entropy | J/kg/K |
| asali.arithmetic_mean_gas_velocity() | Single gas velocity | m/s |
| asali.mean_free_path() | Single mean free path | m |
| asali.binary_diffusion() | Single binary diffusion | m2/s |