27#ifndef DIMENSIONLESS_NUMBERS_HH
28#define DIMENSIONLESS_NUMBERS_HH
33#include <dune/common/exceptions.hh>
62template <
class Scalar>
88 const Scalar charcteristicLength,
89 const Scalar kinematicViscosity)
91 return darcyMagVelocity * charcteristicLength / kinematicViscosity ;
118 const Scalar heatCapacity,
119 const Scalar thermalConductivity)
121 return dynamicViscosity * heatCapacity / thermalConductivity;
183 Scalar denominator = 1+ 2.443 * reToMin01 * (prTo23 -1.) ;
185 Scalar nusseltTurbular = numerator / denominator;
187 Scalar nusseltSingleSphere = 2 + sqrt( pow(nusseltLaminar,2.) + pow(nusseltTurbular,2.));
189 Scalar funckyFactor = 1 + 1.5 * (1.-
porosity);
190 Scalar nusseltNumber = funckyFactor * nusseltSingleSphere ;
192 return nusseltNumber;
196 DUNE_THROW(Dune::NotImplemented,
"wrong index");
223 const Scalar massDensity,
224 const Scalar diffusionCoefficient)
226 return dynamicViscosity / (massDensity * diffusionCoefficient);
272 DUNE_THROW(Dune::NotImplemented,
"wrong index");
293 const Scalar & phaseDensity ,
294 const Scalar & heatCapacity)
296 return thermalConductivity / (phaseDensity * heatCapacity);
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
NusseltFormulation
A container for possible values of the property for selecting which nusselt parametrization to choose...
Definition: dimensionlessnumbers.hh:42
SherwoodFormulation
A container for possible values of the property for selecting which sherwood parametrization to choos...
Definition: dimensionlessnumbers.hh:51
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Collection of functions which calculate dimensionless numbers. Each number has it's own function....
Definition: dimensionlessnumbers.hh:64
static Scalar nusseltNumberForced(const Scalar reynoldsNumber, const Scalar prandtlNumber, const Scalar porosity, NusseltFormulation formulation)
Calculate the Nusselt Number [-] (Nu).
Definition: dimensionlessnumbers.hh:150
static Scalar reynoldsNumber(const Scalar darcyMagVelocity, const Scalar charcteristicLength, const Scalar kinematicViscosity)
Calculate the Reynolds Number [-] (Re).
Definition: dimensionlessnumbers.hh:87
static Scalar prandtlNumber(const Scalar dynamicViscosity, const Scalar heatCapacity, const Scalar thermalConductivity)
Calculate the Prandtl Number [-] (Pr).
Definition: dimensionlessnumbers.hh:117
static Scalar schmidtNumber(const Scalar dynamicViscosity, const Scalar massDensity, const Scalar diffusionCoefficient)
Calculate the Schmidt Number [-] (Sc).
Definition: dimensionlessnumbers.hh:222
static Scalar thermalDiffusivity(const Scalar &thermalConductivity, const Scalar &phaseDensity, const Scalar &heatCapacity)
Calculate the thermal diffusivity alpha [m^2/s].
Definition: dimensionlessnumbers.hh:292
static Scalar sherwoodNumber(const Scalar reynoldsNumber, const Scalar schmidtNumber, SherwoodFormulation formulation)
Calculate the Sherwood Number [-] (Sh).
Definition: dimensionlessnumbers.hh:258