Calculation of water vapor thermophysical parameters-IAPWS97.js

Calculation of water vapor thermophysical parameters-IAPWS97.js

A js library for calculating the properties of water vapor, which can determine other parameters based on pressure and temperature, such as entropy, enthalpy, thermal conductivity, specific heat, surface tension coefficient, etc.:

A javascript implementation of the IAPWS formulation of the thermodynamic properties of water.

Talk is cheap, show me the code!

<!DOCTYPE html>
    <meta charset="utf-8">
    <title>PV Test</title>
    <script type="text/javascript" src="js/neutriumJS.thermo.IAPWS97.min.js"></script>  
    <script type="text/javascript">
let result = NeutriumJS.thermo.IAPWS97.PT.solve(3, 300);

result = NeutriumJS.thermo.IAPWS97.PT.r4_T_Psat(273.15+100);

result = NeutriumJS.thermo.IAPWS97.PT.r4_P_Tsat(0.1);

      <a href="">click me!</a>

Several small programs related to "Heat Transfer" are summarized as follows, and you can click to experience them on WeChat:

  1. Automatic mesh generation of finite element triangle element
  2. The first experience of Delaunay triangulation (theoretical poke this)
  3. Contour contour drawing (theoretical poke this)
  4. Finite Element Analysis of 2D Unsteady Temperature Field
  5. 1D steady-state heat conduction temperature field solution (source code stamp here)
  6. 1D non-steady-state heat conduction temperature field solver (source code stamp here)
  7. 2D steady-state heat conduction temperature field solution (source code stamp here)
  8. Planck blackbody monochromatic radiation

The demonstration animation of the related small program of "Heat Transfer" is as follows (the unsteady heat conduction calculation in Figure 1D below diverges, recalculate after reducing the time step, and the result converges!):

The monochromatic radiation power of a black body is shown in the figure below. It can be seen that the higher the temperature, the greater the radiation power of the same frequency:

Several small programs in "(Computational) Fluid Mechanics" can be clicked and experienced in WeChat:

  1. Blasius partial differential equation to solve the velocity boundary layer ( theory here )
  2. The potential flow of the ideal fluid in the pipeline ( source code poke this )
  3. Vorticity-flow function method to solve the top drive square cavity flow ( source code click here )
  4. SIMPLE algorithm to solve the top drive square cavity flow ( source code stamp here )
  5. Demonstration of calculation by Lattice Boltzmann Method ( reference source code )

The demonstration animations of several small programs related to "(Computational) Fluid Mechanics" are as follows:

Demonstration of the "Kaman Vortex Street" of the flow around a cylinder calculated by LBM (=Lattice Boltzmann Method) (due to the small number of grids and low resolution, the cylinder is almost square):

By the way, the simulation of PID controller in "(thermal process) automatic control" can click here to experience: PID control demonstration applet, (for PID control related videos see: basic/setting/important supplement ). The animation is as follows:

(End of text!)

Reference: Water vapor thermophysical parameter calculation-IAPWS97.js-Cloud + Community-Tencent Cloud