Skip to content

AleRampa/INIST

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INIST

This module aims to provide the access to the properties of certain species in low ranges of temperature that NASA polynomials can not reach (these polynomials could be acceded with HGS). The original script was developed and is maintained by M. Soria, L. Frezza and C. Fuster. The database is downloaded from the NIST

There is no more documentation in this module that the comments on the functions, but you can check the master thesis developed with the Matlab code for more info. Request it to author of this package or download it from UPCcommons when the institution publishes it.


INIST Function

The function provides the access a multiples properties depending on the inputs. All the properties returned are per kilo (kg).

help(INIST)
INIST - From Matlab INIST ((c) Manel Soria, Caleb Fuster, Lorenzo Frezza)
Interpolation of Nonideal Idiosyncratic Splendiferous Tables
(c) Caleb Fuster
Data downloaded from NIST web page
2021

The return of this function is a dictionary with the required property
("t_ps" and "t_ph" can return Quality further than T if it is saturated ).

Units: T(K), p(bar), h and u: kJ/kg, v: m^3/kg, rho: kg/m^3 s: kJ/kgK,
a: m/s, cv and cp: kJ/kgK, JT: bar/K, mu: Pa.s, k: W/mK, MM: kg/mol
SF: N.m
1st argument: substance name
              'Database' to return the list of database elements
2nd and remaining arguments:
 critical temperature     'tcrit'
 critical pressure        'pcrit'
 critical volume          'vcrit'
 molecular mass           'MM'
 saturation temperature   'tsat_p', p
 saturation pressure      'psat_t', T
 saturated liquid properties as a function of pressure
    volume          'vl_p' , p
    energy          'ul_p' , p
    enthalpy        'hl_p' , p
    entropy         'sl_p' , p
    specific heat coeff at constant volume:
                    'cvl_p', p
    specific heat coeff at constant pressure:
                    'cpl_p', p
    sound speed     'al_p' , p
    viscosity       'mul_p', p
    density         'rl_p' , p
    conductivity    'kl_p' , p
 saturated vapour properties as a function of pressure
    volume          'vv_p' , p
    energy          'uv_p' , p
    enthalpy        'hv_p' , p
    entropy         'sv_p' , p
    specific heat coeff at constant volume:
                    'cvv_p', p
    specific heat coeff at constant pressure:
                    'cpv_p', p
    sound speed     'av_p' , p
    viscosity       'muv_p', p
    density         'rv_p' , p
    conductivity    'kv_p' , p
 saturated liquid properties as a function of temperature
    volume          'vl_t' , t
    energy          'ul_t' , t
    enthalpy        'hl_t' , t
    entropy         'sl_t' , t
    specific heat coeff at constant volume:
                    'cvl_t', t
    specific heat coeff at constant pressure:
                    'cpl_t', t
    sound speed     'al_t' , t
    viscosity       'mul_t', t
    density         'rl_t' , t
    conductivity    'kl_t' , t
 saturated vapour properties as a function of temperature
    volume          'vv_t' , t
    energy          'uv_t' , t
    enthalpy        'hv_t' , t
    entropy         'sv_t' , t
    specific heat coeff at constant volume:
                    'cvv_t', t
    specific heat coeff at constant pressure:
                    'cpv_t', t
    sound speed     'av_t' , t
    viscosity       'muv_t', t
    density         'rv_t' , t
    conductivity    'kv_t' , t
 non-saturated properties as a function of pressure and temperature
    volume          'v_pt' , p , t
    energy          'u_pt' , p , t
    enthaply        'h_pt' , p , t
    entrophy        's_pt' , p , t
    specific heat coeff at constant volume:
                    'cv_pt', p , t
    specific heat coeff at constant pressure:
                    'cp_pt', p , t
    sound speed     'a_pt' , p , t
    viscosity       'mu_pt', p , t
    density         'r_pt' , p , t
    conductivity    'k_pt',  p , t
 temperature as a function of ...
    pressure and entropy 't_ps', p ,s

 special functions:
      'minp'        returns the minimum isobar available
      'maxp'        idem max isobar
      'mint'        idem minimum temperature
      'maxt'        idem maximum temperature
      'isobars'     returns a vector with the available isobars

INIST Database

The default database is conformed by the following highlighted species with their isobars between 0.001 up to 700 bars (depend on the species limits, use INIST("species", "isobars") to know the limits). (Due to size of the database becomes slow to download, we restrict it)

Species
  • O2
  • H2
  • H2O
  • R-134a (R134a in the database)
  • CO
  • CO2
  • N2
  • NH3
  • N2O
  • He
  • Hydrocarbons
    • CH4
    • CH4O
    • C2H4
    • C2H6
    • C3H4
    • C3H6
    • C3H8
    • C4H10
    • C5H12
    • C6H6 (Benzene)
    • C6H12
    • C6H14

This module contains a function (INISTdatabase) to download new data from all the previous species from the NIST page. It is not recommended downloading all the database due to it requires a couple of hours but if you require them only run the INISTdatabase without the restrictions:

If you need other species, you can adapt the previous function. Species idcas can be found in this ZIP provided by NIST. However, you can obtain it here following the next steps:

  1. Select the species
  2. Press Continue and put numbers in the range that the page request you
  3. Go to the URL and search ID=*& where asterisk is the letters and numbers that correspond to the idcas
  4. In this page, where Auxiliary Data, it can be found the reference to the enthalpy and entropy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%