COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Consts.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #ifndef cf3_Math_Consts_hpp
8 #define cf3_Math_Consts_hpp
9 
10 #include <limits> // for std::numeric_limits
11 
12 #include "common/CF.hpp"
13 
14 #include "math/LibMath.hpp"
15 
16 namespace cf3 {
17 namespace math {
18 
20 
25 namespace Consts
26 {
28  inline Real int_max() { return std::numeric_limits<int>::max(); }
30  inline Real int_min() { return std::numeric_limits<int>::min(); }
36  inline Real real_max() { return std::numeric_limits<Real>::max(); }
38  inline Real real_min() { return std::numeric_limits<Real>::min(); }
40  inline Real real_nan() { return std::numeric_limits<Real>::signaling_NaN(); }
44  inline Real eps() { return std::numeric_limits<Real>::epsilon(); }
46  inline Real inf() { return std::numeric_limits<Real>::infinity(); }
48  inline Real pi() { return M_PI; }
49 }
50 
52 
53 } // math
54 } // cf3
55 
56 #endif // cf3_Math_Consts_hpp
Real real_nan()
Definition of the minimum number representable with the chosen precision.
Definition: Consts.hpp:40
Real max(const Real a, const Real b)
Maximum between two scalars.
Definition: Terminals.hpp:228
Real int_min()
Definition of the minimum number representable with the chosen precision.
Definition: Consts.hpp:30
Real pi()
Definition of the Pi constant.
Definition: Consts.hpp:48
Real int_max()
Returns the maximum number representable with the chosen precision.
Definition: Consts.hpp:28
Real min(const Real a, const Real b)
Minimum between two scalars.
Definition: Terminals.hpp:234
Uint uint_min()
Definition of the minimum number representable with the chosen precision.
Definition: Consts.hpp:34
Top-level namespace for coolfluid.
Definition: Action.cpp:18
Real real_max()
Returns the maximum number representable with the chosen precision.
Definition: Consts.hpp:36
Uint uint_max()
Returns the maximum number representable with the chosen precision.
Definition: Consts.hpp:32
Real inf()
Definition of Infinity.
Definition: Consts.hpp:46
Real real_min()
Definition of the minimum number representable with the chosen precision.
Definition: Consts.hpp:38
unsigned int Uint
typedef for unsigned int
Definition: CF.hpp:90
coolfluid3 header, included almost everywhere
Send comments to:
COOLFluiD Web Admin