Saline

Saline is an API for MSTDB-TPĀ  thermophysical property data. It allows for the integration of density, viscosity, thermal conductivity, and heat capacity into client applications through a collection of classes and methods. The interface is predominately written in C++. Additional language bindings (Fortran, Python) are supported.

Using the C++ interface, the main class that users will use is the Thermophysical Property class. Specific salt data is accessed through this class by “setCompostion” method, with which each salt endmember and their respective composition is passed to the model. The data is then pulled from the database, and each property (density, viscosity, thermal conducitvity, and heat capacity) and their respective uncertainty can be called individually for a given temperature or enthalpy for use. The data models that are employed by “Thermophysical\textunderscore properties” are implemented in a “Data\_Store” class. These two modules are separated to allow the opportunity for the client to implement alternative data implementations without extensive effort to modify Saline to adopt it. Default\_Data\_Store is what accesses MSTDB-TP, and is what is recommended for current use with Saline \cite{Henderson2021}.

Saline also supports the use of estimation to fill out voids in the data. By using the “R\_Kister\_Data\_Store”, pseudo-binary data can extrapolated using Redlich-Kister polynomials to support arbitrary salt compositions. Redlich-Kister estimation can be currently only used for density, but support is being developed for viscosity. The rest of the properties can be estimated using ideal-mixing assumption. Use this module with extreme caution.