00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef scalarFieldField_H
00037 #define scalarFieldField_H
00038
00039 #include "FieldField.H"
00040 #include "scalar.H"
00041
00042 #define TEMPLATE template<template<class> class Field>
00043 #include "FieldFieldFunctionsM.H"
00044
00045
00046
00047 namespace Foam
00048 {
00049
00050
00051
00052 template<template<class> class Field>
00053 void stabilise
00054 (
00055 FieldField<Field, scalar>& Res,
00056 const FieldField<Field, scalar>& sf,
00057 const scalar s
00058 );
00059
00060 template<template<class> class Field>
00061 tmp<FieldField<Field, scalar> > stabilise
00062 (
00063 const FieldField<Field, scalar>&,
00064 const scalar s
00065 );
00066
00067 template<template<class> class Field>
00068 tmp<FieldField<Field, scalar> > stabilise
00069 (
00070 const tmp<FieldField<Field, scalar> >&,
00071 const scalar s
00072 );
00073
00074
00075
00076
00077 BINARY_TYPE_OPERATOR(scalar, scalar, scalar, +, add)
00078 BINARY_TYPE_OPERATOR(scalar, scalar, scalar, -, subtract)
00079
00080 BINARY_OPERATOR(scalar, scalar, scalar, *, multiply)
00081 BINARY_OPERATOR(scalar, scalar, scalar, /, divide)
00082
00083 BINARY_TYPE_OPERATOR_SF(scalar, scalar, scalar, /, divide)
00084
00085 BINARY_FUNCTION(scalar, scalar, scalar, pow)
00086 BINARY_TYPE_FUNCTION(scalar, scalar, scalar, pow)
00087
00088 BINARY_FUNCTION(scalar, scalar, scalar, atan2)
00089 BINARY_TYPE_FUNCTION(scalar, scalar, scalar, atan2)
00090
00091
00092
00093
00094 UNARY_FUNCTION(scalar, scalar, pow3)
00095 UNARY_FUNCTION(scalar, scalar, pow4)
00096 UNARY_FUNCTION(scalar, scalar, sqrt)
00097 UNARY_FUNCTION(scalar, scalar, sign)
00098 UNARY_FUNCTION(scalar, scalar, pos)
00099 UNARY_FUNCTION(scalar, scalar, neg)
00100 UNARY_FUNCTION(scalar, scalar, exp)
00101 UNARY_FUNCTION(scalar, scalar, log)
00102 UNARY_FUNCTION(scalar, scalar, log10)
00103 UNARY_FUNCTION(scalar, scalar, sin)
00104 UNARY_FUNCTION(scalar, scalar, cos)
00105 UNARY_FUNCTION(scalar, scalar, tan)
00106 UNARY_FUNCTION(scalar, scalar, asin)
00107 UNARY_FUNCTION(scalar, scalar, acos)
00108 UNARY_FUNCTION(scalar, scalar, atan)
00109 UNARY_FUNCTION(scalar, scalar, sinh)
00110 UNARY_FUNCTION(scalar, scalar, cosh)
00111 UNARY_FUNCTION(scalar, scalar, tanh)
00112 UNARY_FUNCTION(scalar, scalar, asinh)
00113 UNARY_FUNCTION(scalar, scalar, acosh)
00114 UNARY_FUNCTION(scalar, scalar, atanh)
00115 UNARY_FUNCTION(scalar, scalar, erf)
00116 UNARY_FUNCTION(scalar, scalar, erfc)
00117 UNARY_FUNCTION(scalar, scalar, lgamma)
00118 UNARY_FUNCTION(scalar, scalar, j0)
00119 UNARY_FUNCTION(scalar, scalar, j1)
00120 UNARY_FUNCTION(scalar, scalar, y0)
00121 UNARY_FUNCTION(scalar, scalar, y1)
00122
00123
00124 #define BesselFunc(func) \
00125 void func \
00126 ( \
00127 FieldField<Field, scalar>& Res, \
00128 const int n, \
00129 const FieldField<Field, scalar>& sf \
00130 ); \
00131 tmp<scalarField> func(const int n, const FieldField<Field, scalar>&); \
00132 tmp<scalarField> func(const int n, const tmp<FieldField<Field, scalar> >&);
00133
00134 BesselFunc(jn)
00135 BesselFunc(yn)
00136
00137 #undef BesselFunc
00138
00139
00140
00141
00142 }
00143
00144
00145
00146 #include "undefFieldFunctionsM.H"
00147
00148 #ifdef NoRepository
00149 # include "scalarFieldField.C"
00150 #endif
00151
00152
00153
00154 #endif
00155
00156
Copyright © 2000-2007 OpenCFD Ltd