netxsimdg
Loading...
Searching...
No Matches
LinearFreezing.hpp
Go to the documentation of this file.
1
8#ifndef SRC_INCLUDE_LINEARFREEZING_HPP
9#define SRC_INCLUDE_LINEARFREEZING_HPP
10
11#include "IFreezingPoint.hpp"
12#include "include/constants.hpp"
13
14namespace Nextsim {
15
18public:
19 // ~LinearFreezing() = default;
20
30 inline double operator()(double sss) const override
31 {
32 // μ is positive, so a negative sign is needed so that the freezing point is below zero.
33 return -Water::mu * sss;
34 }
35};
36}
37
38#endif /* SRC_INCLUDE_LINEARFREEZING_HPP */
The interface class for calculation of the freezing point of seawater.
The implementation class of the linear model of seawater freezing point.
double operator()(double sss) const override
Calculates the freezing point of seawater.
const double mu
Proportionality constant between salinity in psu and freezing point depression [K psu⁻¹].