fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / OpenFOAM / fields / DimensionedFields / DimensionedScalarField / DimensionedScalarField.H
blobd8102e9fdbc9f200d5380425aae49af43f878683
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software; you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 InClass
26     Foam::DimensionedScalarField
28 Description
29     Scalar specific part of the implementation of DimensionedField.
31 SourceFiles
32     DimensionedScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef DimensionedScalarField_H
37 #define DimensionedScalarField_H
39 #include "DimensionedField.H"
40 #include "scalar.H"
42 #define TEMPLATE template<class GeoMesh>
43 #include "DimensionedFieldFunctionsM.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 namespace Foam
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 template<class GeoMesh>
53 tmp<DimensionedField<scalar, GeoMesh> > stabilise
55     const DimensionedField<scalar, GeoMesh>&,
56     const dimensioned<scalar>&
59 template<class GeoMesh>
60 tmp<DimensionedField<scalar, GeoMesh> > stabilise
62     const tmp<DimensionedField<scalar, GeoMesh> >&,
63     const dimensioned<scalar>&
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 BINARY_TYPE_OPERATOR(scalar, scalar, scalar, +, '+', add)
70 BINARY_TYPE_OPERATOR(scalar, scalar, scalar, -, '-', subtract)
72 BINARY_OPERATOR(scalar, scalar, scalar, *, '*', multiply)
73 BINARY_OPERATOR(scalar, scalar, scalar, /, '|', divide)
75 BINARY_TYPE_OPERATOR_SF(scalar, scalar, scalar, /, '|', divide)
77 BINARY_FUNCTION(scalar, scalar, scalar, pow)
78 BINARY_TYPE_FUNCTION(scalar, scalar, scalar, pow)
81 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83 UNARY_FUNCTION(scalar, scalar, pow3, pow3)
84 UNARY_FUNCTION(scalar, scalar, pow4, pow4)
85 UNARY_FUNCTION(scalar, scalar, pow5, pow5)
86 UNARY_FUNCTION(scalar, scalar, pow6, pow6)
87 UNARY_FUNCTION(scalar, scalar, sqrt, sqrt)
88 UNARY_FUNCTION(scalar, scalar, sign, sign)
89 UNARY_FUNCTION(scalar, scalar, pos, pos)
90 UNARY_FUNCTION(scalar, scalar, neg, neg)
92 UNARY_FUNCTION(scalar, scalar, exp, trans)
93 UNARY_FUNCTION(scalar, scalar, log, trans)
94 UNARY_FUNCTION(scalar, scalar, log10, trans)
95 UNARY_FUNCTION(scalar, scalar, sin, trans)
96 UNARY_FUNCTION(scalar, scalar, cos, trans)
97 UNARY_FUNCTION(scalar, scalar, tan, trans)
98 UNARY_FUNCTION(scalar, scalar, asin, trans)
99 UNARY_FUNCTION(scalar, scalar, acos, trans)
100 UNARY_FUNCTION(scalar, scalar, atan, trans)
101 UNARY_FUNCTION(scalar, scalar, sinh, trans)
102 UNARY_FUNCTION(scalar, scalar, cosh, trans)
103 UNARY_FUNCTION(scalar, scalar, tanh, trans)
104 UNARY_FUNCTION(scalar, scalar, asinh, trans)
105 UNARY_FUNCTION(scalar, scalar, acosh, trans)
106 UNARY_FUNCTION(scalar, scalar, atanh, trans)
107 UNARY_FUNCTION(scalar, scalar, erf, trans)
108 UNARY_FUNCTION(scalar, scalar, erfc, trans)
109 UNARY_FUNCTION(scalar, scalar, lgamma, trans)
110 UNARY_FUNCTION(scalar, scalar, j0, trans)
111 UNARY_FUNCTION(scalar, scalar, j1, trans)
112 UNARY_FUNCTION(scalar, scalar, y0, trans)
113 UNARY_FUNCTION(scalar, scalar, y1, trans)
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 #define BesselFunc(func)                                                       \
119                                                                                \
120 template<class GeoMesh>                                                        \
121 tmp<DimensionedField<scalar, GeoMesh> > func                                   \
122 (                                                                              \
123     const int n,                                                               \
124     const DimensionedField<scalar, GeoMesh>&                                   \
125 );                                                                             \
126                                                                                \
127 template<class GeoMesh>                                                        \
128 tmp<DimensionedField<scalar, GeoMesh> > func                                   \
129 (                                                                              \
130     const int n,                                                               \
131     const tmp<DimensionedField<scalar, GeoMesh> >&                             \
134 BesselFunc(jn)
135 BesselFunc(yn)
137 #undef BesselFunc
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 } // End namespace Foam
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 #include "undefFieldFunctionsM.H"
148 #ifdef NoRepository
149 #   include "DimensionedScalarField.C"
150 #endif
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 #endif
156 // ************************************************************************* //