OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

floatScalar.H File Reference


Detailed Description

View floatScalar.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
Float precision floating point scalar type.

Source files

Definition in file floatScalar.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Defines

#define Scalar   floatScalar
#define ScalarVSMALL   floatScalarVSMALL
#define readScalar   readFloatScalar
#define transFunc(func)

Typedefs

typedef float floatScalar

Functions

floatScalar mag (const floatScalar s)
floatScalar hypot (const floatScalar x, const floatScalar y)
floatScalar atan2 (const floatScalar y, const floatScalar x)
floatScalar jn (const int n, const floatScalar s)
floatScalar yn (const int n, const floatScalar s)

Variables

static const floatScalar floatScalarGREAT = 1.0e+6
static const floatScalar floatScalarVGREAT = 1.0e+37
static const floatScalar floatScalarSMALL = 1.0e-6
static const floatScalar floatScalarVSMALL = 1.0e-37

Define Documentation

#define Scalar   floatScalar

Definition at line 68 of file floatScalar.H.

#define ScalarVSMALL   floatScalarVSMALL

Definition at line 69 of file floatScalar.H.

#define readScalar   readFloatScalar

Definition at line 70 of file floatScalar.H.

#define transFunc ( func   ) 

Value:

inline Scalar func(const Scalar s) \
{                                  \
    return ::func##f(s);           \
}

Definition at line 77 of file floatScalar.H.

Copyright © 2000-2007 OpenCFD Ltd