<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE article SYSTEM "http://www.ocean-sci.net/inc/os/copernicus.dtd">
<article language="en">
	<journal>
		<journal_title>Ocean Science</journal_title>
		<journal_url>www.ocean-sci.net</journal_url>
		<issn>1812-0784</issn>
		<eissn>1812-0792</eissn>
		<volume_number>6</volume_number>
		<issue_number>3</issue_number>
		<publication_year>2010</publication_year>
	</journal>
	<doi>10.5194/os-6-695-2010</doi>
	<article_url>http://www.ocean-sci.net/6/695/2010/</article_url>
	<abstract_html>http://www.ocean-sci.net/6/695/2010/os-6-695-2010.html</abstract_html>
	<fulltext_pdf>http://www.ocean-sci.net/6/695/2010/os-6-695-2010.pdf</fulltext_pdf>
	<start_page>695</start_page>
	<end_page>718</end_page>
	<publication_date>2010-07-16</publication_date>
	<article_title content_type="html">Numerical implementation and oceanographic application of the thermodynamic potentials of liquid water, water vapour, ice, seawater and humid air â€“ Part 2: The library routines</article_title>
	<authors>
		<author numeration="1" affiliations="1,9">
			<name>D. G. Wright</name>
		</author>
		<author numeration="2" affiliations="2">
			<name>R. Feistel</name>
			<email>rainer.feistel@io-warnemuende.de</email>
		</author>
		<author numeration="3" affiliations="3">
			<name>J. H. Reissmann</name>
		</author>
		<author numeration="4" affiliations="4">
			<name>K. Miyagawa</name>
		</author>
		<author numeration="5" affiliations="5">
			<name>D. R. Jackett</name>
		</author>
		<author numeration="6" affiliations="6">
			<name>W. Wagner</name>
		</author>
		<author numeration="7" affiliations="6">
			<name>U. Overhoff</name>
		</author>
		<author numeration="8" affiliations="6">
			<name>C. Guder</name>
		</author>
		<author numeration="9" affiliations="7">
			<name>A. Feistel</name>
		</author>
		<author numeration="10" affiliations="8">
			<name>G. M. Marion</name>
		</author>
	</authors>
	<affiliations>
		<affiliation numeration="1" content_type="html">Bedford Institute of Oceanography, Dartmouth, NS, B2Y 4A2, Canada</affiliation>
		<affiliation numeration="2" content_type="html">Leibniz-Institut fÃ¼r Ostseeforschung, SeestraÃŸe 15, 18119 WarnemÃ¼nde, Germany</affiliation>
		<affiliation numeration="3" content_type="html">Bundesamt fÃ¼r Seeschifffahrt und Hydrographie, Bernhard-Nocht-StraÃŸe 78, 20359 Hamburg, Germany</affiliation>
		<affiliation numeration="4" content_type="html">4-12-11-628, Nishiogu, Arakawa-ku, Tokyo, 116-0011, Japan</affiliation>
		<affiliation numeration="5" content_type="html">CSIRO Marine and Atmospheric Research, P.O. Box 1538, Hobart, TAS 7001, Australia</affiliation>
		<affiliation numeration="6" content_type="html">Ruhr-UniversitÃ¤t Bochum, Lehrstuhl fÃ¼r Thermodynamik, 44780 Bochum, Germany</affiliation>
		<affiliation numeration="7" content_type="html">Technische UniversitÃ¤t Berlin, Einsteinufer 25, 10587 Berlin, Germany</affiliation>
		<affiliation numeration="8" content_type="html">Desert Research Institute, Reno, NV, USA</affiliation>
		<affiliation numeration="9" content_type="html">Dan Wright passed away on 8 July 2010</affiliation>
	</affiliations>
	<abstract content_type="html">The SCOR/IAPSO&lt;sup&gt;1&lt;/sup&gt;
Working Group 127 on Thermodynamics and Equation of State of Seawater has
prepared recommendations for new methods and algorithms for numerical
estimation of the the thermophysical properties of seawater. As an outcome
of this work, a new International Thermodynamic Equation of Seawater
(TEOSâ€“10) was endorsed by IOC/UNESCO&lt;sup&gt;2&lt;/sup&gt; in June 2009 as the official
replacement and extension of the 1980 International Equation of State,
EOS-80. As part of this new standard a source code package has been prepared
that is now made freely available to users via the World Wide Web. This
package includes two libraries referred to as the SIA (Sea-Ice-Air)
library and the GSW (Gibbs SeaWater) library. Information on the GSW library
may be found on the TEOS-10 web site (&lt;a href=&quot;http://www.TEOS-10.org&quot; target=&quot;_blank&quot;&gt;http://www.TEOS-10.org&lt;/a&gt;).
This publication provides an introduction to the SIA library which contains
routines to calculate various thermodynamic properties as discussed in the
companion paper. The SIA library is very comprehensive, including routines
to deal with fluid water, ice, seawater and humid air as well as equilibrium
states involving various combinations of these, with equivalent code
developed in different languages. The code is hierachically structured in
modules that support (i) almost unlimited extension with respect to
additional properties or relations, (ii) an extraction of self-contained
sub-libraries, (iii) separate updating of the empirical thermodynamic
potentials, and (iv) code verification on different platforms and between
different languages. Error trapping is implemented to identify when one or
more of the primary routines are accessed significantly beyond their
established range of validity. The initial version of the SIA library is
available in Visual Basic and FORTRAN as a supplement to this
publication and updates will be maintained on the TEOS-10 web site.
&lt;br&gt;&lt;br&gt;
&lt;sup&gt;1&lt;/sup&gt;SCOR/IAPSO: Scientific Committee on Oceanic
Research/International Association for the Physical Sciences of the Oceans&lt;br&gt;
&lt;sup&gt;2&lt;/sup&gt;IOC/UNESCO:
Intergovernmental Oceanographic Commission/United Nations Educational,
Scientific and Cultural Organization</abstract>
	<references>
		<reference numeration="1" content_type="text"> Dauphinee, T. M.: Introduction to the special issue on the Practical salinity Scale 1978, IEEE J. Oceanic Eng., OE-5, 1â€“2, 1980. </reference>
		<reference numeration="2" content_type="text"> Feistel, R.: A new extended Gibbs thermodynamic potential of seawater, Progr. Oceanogr., 58, 43â€“115, 2003. </reference>
		<reference numeration="3" content_type="text"> Feistel, R.: Numerical implementation and oceanographic application of the Gibbs thermodynamic potential of seawater, Ocean Sci., 1, 9â€“16, doi:10.5194/os-1-9-2005, 2005. </reference>
		<reference numeration="4" content_type="text"> Feistel, R.: A Gibbs Function for Seawater Thermodynamics for âˆ’6~to 80 Â°C and Salinity up to 120 g/kg, Deep-Sea Res. Pt I, 55, 1639â€“1671, 2008. </reference>
		<reference numeration="5" content_type="text"> Feistel, R.: Extended Equation of State for Seawater at Elevated Temperature and Salinity, Desalination, 250, 14â€“18, 2010. </reference>
		<reference numeration="6" content_type="text"> Feistel, R. and Wagner, W.: High-pressure thermodynamic Gibbs functions of ice and sea ice, J. Mar. Res., 63, 95â€“139, 2005. </reference>
		<reference numeration="7" content_type="text"> Feistel, R. and Wagner, W.: A new equation of state for H&lt;sub&gt;2&lt;/sub&gt;O ice Ih, J. Phys. Chem. Ref. Data, 35, 1021â€“1047, 2006. </reference>
		<reference numeration="8" content_type="text"> Feistel, R. and Wagner, W.: Sublimation pressure and sublimation enthalpy of H&lt;sub&gt;2&lt;/sub&gt;O ice Ih between 0~and 273.16 K, Geochim. Cosmochim. Ac., 71, 36â€“45, 2007. </reference>
		<reference numeration="9" content_type="text"> Feistel, R., Wagner, W., Tchijov, V., and Guder, C.: Numerical implementation and oceanographic application of the Gibbs potential of ice, Ocean Sci., 1, 29â€“38, doi:10.5194/os-1-29-2005, 2005. </reference>
		<reference numeration="10" content_type="text"> Feistel, R., Weinreben, S., Wolf, H., Seitz, S., Spitzer, P., Adel, B., Nausch, G., Schneider, B., and Wright, D. G.: Density and Absolute Salinity of the Baltic Sea 2006-2009, Ocean Sci., 6, 3â€“24, doi:10.5194/os-6-3-2010, 2010a. </reference>
		<reference numeration="11" content_type="text"> Feistel, R., Wright, D. G., Jackett, D. R., Miyagawa, K., Reissmann, J. H., Wagner, W., Overhoff, U., Guder, C., Feistel, A., and Marion, G. M.: Numerical implementation and oceanographic application of the thermodynamic potentials of liquid water, water vapour, ice, seawater and humid air - Part~1: Background and equations, Ocean Sci., 6, 633â€“677, doi:10.5194/os-6-633-2010, 2010b. </reference>
		<reference numeration="12" content_type="text"> Feistel, R., Wright, D. G., Kretzschmar, H.-J., Hagen, E., Herrmann, S., and Span, R.: Thermodynamic properties of sea air, Ocean Sci., 6, 91â€“141, doi:10.5194/os-6-91-2010, 2010c. </reference>
		<reference numeration="13" content_type="text"> Feistel, R., Wright, D. G., Miyagawa, K., Harvey, A. H., Hruby, J., Jackett, D. R., McDougall, T. J., and Wagner, W.: Mutually consistent thermodynamic potentials for fluid water, ice and seawater: a new standard for oceanography, Ocean Sci., 4, 275â€“291, doi:10.5194/os-4-275-2008, 2008. </reference>
		<reference numeration="14" content_type="text"> Harvey, A. H. and Huang, P. H.: First-Principles Calculation of the Air-Water Second Virial Coefficient, Int. J. Thermophys., 28, 556â€“565, 2007. </reference>
		<reference numeration="15" content_type="text"> Hyland, R. W. and Wexler, A.: Formulations for the thermodynamic properties of dry air from 173.15 K to 473.15 K, and of saturated moist air from 173.15 K to 372.15 K, at pressures up to 5 MPa, ASHRAE Transact., 89, 520â€“535, 1983. </reference>
		<reference numeration="16" content_type="text"> IAPWS: Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam, The International Association for the Properties of Water and Steam, August~2007, available at: http://www.iapws.org, last access: 15~July~2010, Lucerne, Switzerland, 2007. </reference>
		<reference numeration="17" content_type="text"> IAPWS: Release on the IAPWS Formulation 2008 for the Thermodynamic Properties of Seawater, The International Association for the Properties of Water and Steam, September~2008, available at: http://www.iapws.org, last access: 15~July~2010, Berlin, Germany, 2008a. </reference>
		<reference numeration="18" content_type="text"> IAPWS: Revised Release on the Pressure along the Melting and Sublimation Curves of Ordinary Water Substance, The International Association for the Properties of Water and Steam, September~2008, available at: http://www.iapws.org, last access: 15~July~2010, Berlin, Germany, 2008b. </reference>
		<reference numeration="19" content_type="text"> IAPWS: Revised Release on the IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use, The International Association for the Properties of Water and Steam, September~2009, available at: http://www.iapws.org, last access: 15~July~2010, Doorwerth, The Netherlands, 2009a. </reference>
		<reference numeration="20" content_type="text"> IAPWS: Revised Release on the Equation of State 2006 for H&lt;sub&gt;2&lt;/sub&gt;O Ice~Ih, The International Association for the Properties of Water and Steam, September~2009, available at: http://www.iapws.org, last access: 15~July~2010, Doorwerth, The Netherlands, 2009b. </reference>
		<reference numeration="21" content_type="text"> IAPWS: Supplementary Release on a Computationally Efficient Thermodynamic Formulation for Liquid Water for Oceanographic Use, The International Association for the Properties of Water and Steam, September~2009, available at: http://www.iapws.org, last access: 15~July~2010, Doorwerth, The Netherlands, 2009c. </reference>
		<reference numeration="22" content_type="text"> IAPWS: Guideline on an Equation of State for Humid Air in Contact with Seawater and Ice, Consistent with the IAPWS Formulation 2008 for the Thermodynamic Properties of Seawater, The International Association for the Properties of Water and Steam, Niagara Falls, Canada, 18â€“23~July 2010, to be adopted, 2010. </reference>
		<reference numeration="23" content_type="text"> IOC, SCOR and IAPSO: The international thermodynamic equation of seawater - 2010: Calculation and use of thermodynamic properties. Intergovernmental Oceanographic Commission, available from http://www.TEOS-10.org, last access: 15~July~2010, Manuals and Guides No 56, UNESCO (English), Paris, 2010. </reference>
		<reference numeration="24" content_type="text"> Jackett, D. R., McDougall, T. J., Feistel, R., Wright, D. G., and Griffies, S. M.: Algorithms for density, potential temperature, conservative temperature and freezing temperature of seawater, J. Atmos. Ocean. Tech., 23, 1709â€“1728, 2006. </reference>
		<reference numeration="25" content_type="text"> Lemmon, E. W., Jacobsen, R. T., Penoncello, S. G., and Friend, D. G.: Thermodynamic Properties of Air and Mixtures of Nitrogen, Argon and Oxygen From 60~to 2000 K at Pressures to 2000 MPa, J. Phys. Chem. Ref. Data, 29, 331â€“362, 2000. </reference>
		<reference numeration="26" content_type="text"> Lewis, E. L.: The Practical Salinity Scale and its antecedents, IEEE J. Oceanic Eng., OE-5, 3â€“8, 1980. </reference>
		<reference numeration="27" content_type="text"> Marion, G. M., Millero, F. J., and Feistel, R.: Precipitation of solid phase calcium carbonates and their effect on application of seawater $S_A–T–P$ models, Ocean Sci., 5, 285â€“291, doi:10.5194/os-5-285-2009, 2009. </reference>
		<reference numeration="28" content_type="text"> McDougall, T. J., Jackett, D. R., and Millero, F. J.: An algorithm for estimating Absolute Salinity in the global ocean, Ocean Sci. Discuss., 6, 215â€“242, doi:10.5194/osd-6-215-2009, 2009. </reference>
		<reference numeration="29" content_type="text"> Millero, F. J. and Huang, F.: The density of seawater as a function of salinity (5~to 70 g kg&lt;sup&gt;âˆ’1&lt;/sup&gt;) and temperature (273.15~to 363.15 K), Ocean Sci., 5, 91â€“100, doi:10.5194/os-5-91-2009, 2009. </reference>
		<reference numeration="30" content_type="text"> Millero, F. J., Feistel, R., Wright, D. G., and McDougall, T. J.: The composition of Standard Seawater and the definition of the Reference-Composition Salinity Scale, Deep-Sea Res. Pt I, 55, 50â€“72, 2008. </reference>
		<reference numeration="31" content_type="text"> Poisson, A. and Gadhoumi, M. H.: An extension of the Practical Salinity Scale 1978 and the Equation of State 1980 to high salinities, Deep-Sea Res. Pt I, 40, 1689â€“1698, 1993. </reference>
		<reference numeration="32" content_type="text"> Safarov, J., Millero, F., Feistel, R., Heintz, A., and Hassel, E.: Thermodynamic properties of standard seawater: extensions to high temperatures and pressures, Ocean Sci., 5, 235â€“246, doi:10.5194/os-5-235-2009, 2009. </reference>
		<reference numeration="33" content_type="text"> Saunders, P. M.: Practical Conversion of Pressure to Depth, J. Phys. Oceanogr., 11, 573â€“574, 1981. </reference>
		<reference numeration="34" content_type="text"> UNESCO Technical Papers in Marine Science, #37:&quot;Background papers and supporting data on the practical salinity scale, 1978&quot;, UNESCO Division of Marine Science, Paris, 144~pp., 1981. </reference>
		<reference numeration="35" content_type="text"> Wagner, W. and PruÃŸ, A.: The IAPWS formulation 1995 for the thermodynamic properties of ordinary water substance for general and scientific use, J. Phys. Chem. Ref. Data, 31, 387â€“535, 2002. </reference>
		<reference numeration="36" content_type="text"> Wright, D. G., Pawlowicz, R., McDougall, T. J., Feistel, R., and Marion, G. M.: Absolute Salinity, &quot;Density Salinity&quot; and the Reference Composition Salinity Scale: Present and Future Use in the Seawater Standard TEOS-10, Ocean Sci., in press, 2010. </reference>
	</references>
</article>

