genericFvPatchField.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 genericFvPatchField_H
00037 #define genericFvPatchField_H
00038
00039 #include "calculatedFvPatchField.H"
00040 #include "HashPtrTable.H"
00041
00042
00043
00044 namespace Foam
00045 {
00046
00047
00048
00049
00050
00051 template<class Type>
00052 class genericFvPatchField
00053 :
00054 public calculatedFvPatchField<Type>
00055 {
00056
00057
00058 word actualTypeName_;
00059 dictionary dict_;
00060
00061 HashPtrTable<scalarField> scalarFields_;
00062 HashPtrTable<vectorField> vectorFields_;
00063 HashPtrTable<sphericalTensorField> sphericalTensorFields_;
00064 HashPtrTable<symmTensorField> symmTensorFields_;
00065 HashPtrTable<tensorField> tensorFields_;
00066
00067
00068 public:
00069
00070
00071 TypeName("generic");
00072
00073
00074
00075
00076
00077 genericFvPatchField
00078 (
00079 const fvPatch&,
00080 const DimensionedField<Type, volMesh>&
00081 );
00082
00083
00084 genericFvPatchField
00085 (
00086 const fvPatch&,
00087 const DimensionedField<Type, volMesh>&,
00088 const dictionary&
00089 );
00090
00091
00092 genericFvPatchField
00093 (
00094 const genericFvPatchField<Type>&,
00095 const fvPatch&,
00096 const DimensionedField<Type, volMesh>&,
00097 const fvPatchFieldMapper&
00098 );
00099
00100
00101 genericFvPatchField
00102 (
00103 const genericFvPatchField<Type>&
00104 );
00105
00106
00107 virtual tmp<fvPatchField<Type> > clone() const
00108 {
00109 return tmp<fvPatchField<Type> >
00110 (
00111 new genericFvPatchField<Type>(*this)
00112 );
00113 }
00114
00115
00116 genericFvPatchField
00117 (
00118 const genericFvPatchField<Type>&,
00119 const DimensionedField<Type, volMesh>&
00120 );
00121
00122
00123 virtual tmp<fvPatchField<Type> > clone
00124 (
00125 const DimensionedField<Type, volMesh>& iF
00126 ) const
00127 {
00128 return tmp<fvPatchField<Type> >
00129 (
00130 new genericFvPatchField<Type>(*this, iF)
00131 );
00132 }
00133
00134
00135
00136
00137
00138
00139
00140 virtual void autoMap
00141 (
00142 const fvPatchFieldMapper&
00143 );
00144
00145
00146 virtual void rmap
00147 (
00148 const fvPatchField<Type>&,
00149 const labelList&
00150 );
00151
00152
00153
00154
00155
00156
00157 virtual tmp<Field<Type> > valueInternalCoeffs
00158 (
00159 const tmp<scalarField>&
00160 ) const;
00161
00162
00163
00164 virtual tmp<Field<Type> > valueBoundaryCoeffs
00165 (
00166 const tmp<scalarField>&
00167 ) const;
00168
00169
00170
00171 tmp<Field<Type> > gradientInternalCoeffs() const;
00172
00173
00174
00175 tmp<Field<Type> > gradientBoundaryCoeffs() const;
00176
00177
00178
00179 virtual void write(Ostream&) const;
00180 };
00181
00182
00183
00184
00185 }
00186
00187
00188
00189 #ifdef NoRepository
00190 # include "genericFvPatchField.C"
00191 #endif
00192
00193
00194
00195 #endif
00196
00197
Copyright © 2000-2009 OpenCFD Ltd