limitedSurfaceInterpolationScheme.H
Go to the documentation of this file.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 limitedSurfaceInterpolationScheme_H
00037 #define limitedSurfaceInterpolationScheme_H
00038
00039 #include "surfaceInterpolationScheme.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 template<class Type>
00051 class limitedSurfaceInterpolationScheme
00052 :
00053 public surfaceInterpolationScheme<Type>
00054 {
00055
00056
00057
00058 limitedSurfaceInterpolationScheme
00059 (
00060 const limitedSurfaceInterpolationScheme&
00061 );
00062
00063
00064 void operator=(const limitedSurfaceInterpolationScheme&);
00065
00066
00067 protected:
00068
00069
00070
00071 const surfaceScalarField& faceFlux_;
00072
00073
00074 public:
00075
00076
00077 TypeName("limitedSurfaceInterpolationScheme");
00078
00079
00080
00081
00082 declareRunTimeSelectionTable
00083 (
00084 tmp,
00085 limitedSurfaceInterpolationScheme,
00086 Mesh,
00087 (
00088 const fvMesh& mesh,
00089 Istream& schemeData
00090 ),
00091 (mesh, schemeData)
00092 );
00093
00094 declareRunTimeSelectionTable
00095 (
00096 tmp,
00097 limitedSurfaceInterpolationScheme,
00098 MeshFlux,
00099 (
00100 const fvMesh& mesh,
00101 const surfaceScalarField& faceFlux,
00102 Istream& schemeData
00103 ),
00104 (mesh, faceFlux, schemeData)
00105 );
00106
00107
00108
00109
00110
00111 limitedSurfaceInterpolationScheme
00112 (
00113 const fvMesh& mesh,
00114 const surfaceScalarField& faceFlux
00115 )
00116 :
00117 surfaceInterpolationScheme<Type>(mesh),
00118 faceFlux_(faceFlux)
00119 {}
00120
00121
00122
00123
00124
00125 limitedSurfaceInterpolationScheme
00126 (
00127 const fvMesh& mesh,
00128 Istream& is
00129 )
00130 :
00131 surfaceInterpolationScheme<Type>(mesh),
00132 faceFlux_
00133 (
00134 mesh.lookupObject<surfaceScalarField>
00135 (
00136 word(is)
00137 )
00138 )
00139 {}
00140
00141
00142
00143
00144
00145 static tmp<limitedSurfaceInterpolationScheme<Type> > New
00146 (
00147 const fvMesh& mesh,
00148 Istream& schemeData
00149 );
00150
00151
00152 static tmp<limitedSurfaceInterpolationScheme<Type> > New
00153 (
00154 const fvMesh& mesh,
00155 const surfaceScalarField& faceFlux,
00156 Istream& schemeData
00157 );
00158
00159
00160
00161
00162 virtual ~limitedSurfaceInterpolationScheme();
00163
00164
00165
00166
00167
00168 virtual tmp<surfaceScalarField> limiter
00169 (
00170 const GeometricField<Type, fvPatchField, volMesh>&
00171 ) const = 0;
00172
00173
00174
00175 tmp<surfaceScalarField> weights
00176 (
00177 const GeometricField<Type, fvPatchField, volMesh>&,
00178 const surfaceScalarField& CDweights,
00179 tmp<surfaceScalarField> tLimiter
00180 ) const;
00181
00182
00183 virtual tmp<surfaceScalarField> weights
00184 (
00185 const GeometricField<Type, fvPatchField, volMesh>&
00186 ) const;
00187
00188
00189 virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
00190 flux
00191 (
00192 const GeometricField<Type, fvPatchField, volMesh>&
00193 ) const;
00194 };
00195
00196
00197
00198
00199 }
00200
00201
00202
00203
00204
00205 #define makelimitedSurfaceInterpolationTypeScheme(SS, Type) \
00206 \
00207 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
00208 \
00209 surfaceInterpolationScheme<Type>::addMeshConstructorToTable<SS<Type> > \
00210 add##SS##Type##MeshConstructorToTable_; \
00211 \
00212 surfaceInterpolationScheme<Type>::addMeshFluxConstructorToTable<SS<Type> > \
00213 add##SS##Type##MeshFluxConstructorToTable_; \
00214 \
00215 limitedSurfaceInterpolationScheme<Type>::addMeshConstructorToTable<SS<Type> > \
00216 add##SS##Type##MeshConstructorToLimitedTable_; \
00217 \
00218 limitedSurfaceInterpolationScheme<Type>::addMeshFluxConstructorToTable<SS<Type> >\
00219 add##SS##Type##MeshFluxConstructorToLimitedTable_;
00220
00221 #define makelimitedSurfaceInterpolationScheme(SS) \
00222 \
00223 makelimitedSurfaceInterpolationTypeScheme(SS, scalar) \
00224 makelimitedSurfaceInterpolationTypeScheme(SS, vector) \
00225 makelimitedSurfaceInterpolationTypeScheme(SS, sphericalTensor) \
00226 makelimitedSurfaceInterpolationTypeScheme(SS, symmTensor) \
00227 makelimitedSurfaceInterpolationTypeScheme(SS, tensor)
00228
00229
00230
00231
00232 #ifdef NoRepository
00233 # include "limitedSurfaceInterpolationScheme.C"
00234 #endif
00235
00236
00237
00238 #endif
00239
00240
Copyright © 2000-2009 OpenCFD Ltd