Goby3  3.1.5a
2024.05.23
swstate.h File Reference
#include <cmath>
#include <boost/units/quantity.hpp>
#include <boost/units/systems/si.hpp>
#include <boost/units/systems/si/prefixes.hpp>
#include <boost/units/systems/temperature/celsius.hpp>
#include "units.h"

Go to the source code of this file.

Namespaces

 goby
 The global namespace for the Goby project.
 
 goby::util
 
 goby::util::seawater
 

Functions

template<typename DimensionlessUnit = boost::units::si::dimensionless, typename TemperatureUnit = boost::units::celsius::temperature, typename PressureUnit = decltype(boost::units::si::deci* bar)>
boost::units::quantity< boost::units::si::mass_density > goby::util::seawater::density_anomaly (boost::units::quantity< DimensionlessUnit > salinity, boost::units::quantity< boost::units::absolute< TemperatureUnit > > temperature, boost::units::quantity< PressureUnit > pressure)
 
template<typename TemperatureUnit = boost::units::celsius::temperature, typename PressureUnit = decltype(boost::units::si::deci* bar)>
boost::units::quantity< boost::units::si::mass_density > goby::util::seawater::density_anomaly (double salinity, boost::units::quantity< boost::units::absolute< TemperatureUnit > > temperature, boost::units::quantity< PressureUnit > pressure)