TRACE User Guide  TRACE Version 9.8.1
Real gas simulations

Flow calculations of fluids, which cannot be modeled as a calorically or thermally perfect gas in the considered pressure and temperature range, should use the real gas feature of TRACE. The state variables are evaluated using the equation of state stored in the REFPROP database [35]. Here, more than 145 pure substances can be accessed. To reduce the calculation time for the state variables, an option to use look up tables is available. The used approximate Riemann solver GIRoe [69] is applicable to any equation of state and in addition robust against large gradients in the flow field. The setup of a real gas simulation is similar to an ideal gas simulation. The only additional step required is the fluid setup and the creation of the look-up tables. For this purpose, a POST task is available, which writes the required information into the CGNS file.

POST --writeTableToCGNS -cgf <CGNS file> -fsp <species name> -dim <table dimension> -minT <minimal temperature> -maxT <maximal temperature> -minP <minimal pressure> -maxP <maximal pressure> -LuT <0|1> -rLuT <0|1>

As species name the name of the file in the contrib/refprop/FLUIDS/ folder for the selected fluid is to be used. The flag LuT activates the use of the look-up table for all thermodynamic quantities, the flag rLuT activates the use of the look-up table for all quantities to be determined iteratively.

Note
The look up table should cover the widest possible temperature and pressure range of the simulation, otherwise a increase of computing time is to be expected. The dimension of the look-up table should not be too large due to performance issues. A value of 500 is recommended. The reference state of the simulation should be defined by the state variables of the inlet boundary condition.

Best practice if problems occur in the simulation

  • Set LuT- and rLut-Flags to 0 in the POST command
  • Change the average type for in-, outlet and interfaces to Mass in GMC