netxsimdg
Loading...
Searching...
No Matches
constants.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PhysicalConstants
 General physical constants of the Earth and universe.
 
namespace  Ice
 Properties of water ice around 0˚C and 101.3 kPa.
 
namespace  Air
 Properties of dry air around 0˚C and 101.3 kPa.
 
namespace  Vapour
 Properties of water vapour.
 
namespace  Water
 Properties of liquid water.
 

Functions

double Nextsim::kelvin (double celsius)
 Convert a temperature from ˚C to K.
 
double Nextsim::celsius (double kelvin)
 Convert a temperature from K to ˚C.
 
double Nextsim::degrees (double radians)
 Convert an angle from radians to degrees.
 
double Nextsim::radians (double degrees)
 Convert an angle from degrees to radians.
 
double Nextsim::mbar (double pascals)
 Convert a pressure from Pa to mbar.
 
double Nextsim::pascals (double mbar)
 Convert a pressure from mbar to Pa.
 

Variables

const double PhysicalConstants::g = 9.8321849378
 
const double PhysicalConstants::sigma = 5.670374419e-8
 Stefan-Boltzmann constant. [W m⁻² K⁻⁴].
 
const double PhysicalConstants::vonKarman = 0.4
 Von Karman constant. [1].
 
const double PhysicalConstants::omega = 7.2921158e-5
 Rotation rate of the Earth [rad s⁻¹].
 
const double PhysicalConstants::Tt = 273.16
 Triple point temperature of pure water [K].
 
const double PhysicalConstants::tau = 6.28318530717958647652
 Ratio of circumference to radius.
 
const double Ice::cp = 2100.
 Specific heat capacity at constant pressure of water ice [J kg⁻¹ K⁻¹].
 
const double Ice::epsilon = 0.996
 Thermal emissivity of smooth ice [0..1].
 
const double Ice::kappa = 2.0334
 Heat conductivity of ice [W m⁻¹ K⁻¹].
 
const double Ice::Lf = 333.55e3
 Latent heat of fusion of ice/water [J kg⁻¹].
 
const double Ice::rho = 917
 
const double Ice::rhoSnow = 330.
 
const double Ice::s = 5
 Salinity of sea ice. [g kg⁻¹].
 
const double Ice::Tm = 273.15
 Melting point of pure ice [K].
 
const double Air::cp = 1004.64
 Specific heat capacity at constant pressure of dry air [J kg⁻¹ K⁻¹].
 
const double Air::Ra = 287.058
 Specific gas constant for dry air [J kg⁻¹ K⁻¹].
 
const double Air::rho = 1.2754
 Density of dry air at IUPAC STP [kg m⁻³].
 
const double Vapour::cp = 1860.
 Specific heat capacity at constant pressure of water vapour [J kg⁻¹ K⁻¹].
 
const double Vapour::Lv0 = 2500.79e3
 Latent heat of vaporization at 0˚C [J kg⁻¹].
 
const double Vapour::Ra = 461.5
 Specific gas constant for water vapour [J kg⁻¹ K⁻¹].
 
const double Water::cp = 4186.84
 Specific heat capacity at constant pressure of water [J kg⁻¹ K⁻¹].
 
const double Water::Lf = Ice::Lf
 Latent heat of fusion of water/ice [J kg⁻¹].
 
const double Water::Lv0 = Vapour::Lv0
 Latent heat of vaporization at 0˚C [J kg⁻¹].
 
const double Water::mu = 0.055
 Proportionality constant between salinity in psu and freezing point depression [K psu⁻¹].
 
const double Water::rho = 1000
 Density of fresh water at 4˚C. [kg m⁻³].
 
const double Water::rhoOcean = 1025
 Typical density of ocean water. [kg m⁻³].
 
const double Water::Tf = Ice::Tm
 Freezing point of pure water. [K].
 
const double Water::TfOcean = -1.8
 Freezing point of typical ocean water. [˚C].
 

Detailed Description

Date
Sep 14, 2021
Author
Tim Spain

Definition in file constants.hpp.

Function Documentation

◆ celsius()

double Nextsim::celsius ( double kelvin)
inline

Convert a temperature from K to ˚C.

Definition at line 131 of file constants.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ degrees()

double Nextsim::degrees ( double radians)
inline

Convert an angle from radians to degrees.

Definition at line 134 of file constants.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kelvin()

double Nextsim::kelvin ( double celsius)
inline

Convert a temperature from ˚C to K.

Definition at line 128 of file constants.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbar()

double Nextsim::mbar ( double pascals)
inline

Convert a pressure from Pa to mbar.

Definition at line 140 of file constants.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pascals()

double Nextsim::pascals ( double mbar)
inline

Convert a pressure from mbar to Pa.

Definition at line 143 of file constants.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ radians()

double Nextsim::radians ( double degrees)
inline

Convert an angle from degrees to radians.

Definition at line 137 of file constants.hpp.

Here is the call graph for this function:
Here is the caller graph for this function: