Computes the index of refraction using the 1997 release of the IAPWS available on http://www.iapws.org
The density can be obtained from pressure and temperature using XSteam, IAPWS_IF97 or similar solutions available on the Matlab File Exchange. An example is included, which requires IAPWS_IF97 (not included).
Martin Klein Schaarsberg (2021). Water and Steam Refractive Index (https://www.mathworks.com/matlabcentral/fileexchange/46179-water-and-steam-refractive-index), MATLAB Central File Exchange. Retrieved .
Inspired by: X Steam, Thermodynamic properties of water and steam., Air Refractive Index, IAPWS_IF97
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.