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 #ifndef timeVaryingUniformFixedValueFvPatchField_H
00036 #define timeVaryingUniformFixedValueFvPatchField_H
00037
00038 #include "fixedValueFvPatchFields.H"
00039
00040
00041
00042 namespace Foam
00043 {
00044
00045 class graph;
00046
00047
00048
00049
00050
00051 template<class Type>
00052 class timeVaryingUniformFixedValueFvPatchField
00053 :
00054 public fixedValueFvPatchField<Type>
00055 {
00056
00057
00058 fileName timeDataFileName_;
00059 autoPtr<graph> timeDataPtr_;
00060
00061 void checkTable();
00062
00063
00064 public:
00065
00066
00067 TypeName("timeVaryingUniformFixedValue");
00068
00069
00070
00071
00072
00073 timeVaryingUniformFixedValueFvPatchField
00074 (
00075 const fvPatch&,
00076 const DimensionedField<Type, volMesh>&
00077 );
00078
00079
00080 timeVaryingUniformFixedValueFvPatchField
00081 (
00082 const fvPatch&,
00083 const DimensionedField<Type, volMesh>&,
00084 const dictionary&
00085 );
00086
00087
00088
00089 timeVaryingUniformFixedValueFvPatchField
00090 (
00091 const timeVaryingUniformFixedValueFvPatchField<Type>&,
00092 const fvPatch&,
00093 const DimensionedField<Type, volMesh>&,
00094 const fvPatchFieldMapper&
00095 );
00096
00097
00098 timeVaryingUniformFixedValueFvPatchField
00099 (
00100 const timeVaryingUniformFixedValueFvPatchField<Type>&
00101 );
00102
00103
00104 virtual tmp<fvPatchField<Type> > clone() const
00105 {
00106 return tmp<fvPatchField<Type> >
00107 (
00108 new timeVaryingUniformFixedValueFvPatchField<Type>(*this)
00109 );
00110 }
00111
00112
00113 timeVaryingUniformFixedValueFvPatchField
00114 (
00115 const timeVaryingUniformFixedValueFvPatchField<Type>&,
00116 const DimensionedField<Type, volMesh>&
00117 );
00118
00119
00120 virtual tmp<fvPatchField<Type> > clone
00121 (
00122 const DimensionedField<Type, volMesh>& iF
00123 ) const
00124 {
00125 return tmp<fvPatchField<Type> >
00126 (
00127 new timeVaryingUniformFixedValueFvPatchField<Type>(*this, iF)
00128 );
00129 }
00130
00131
00132
00133
00134
00135
00136
00137 const graph& timeData() const
00138 {
00139 return timeDataPtr_;
00140 }
00141
00142
00143 graph& timeData()
00144 {
00145 return timeDataPtr_;
00146 }
00147
00148
00149
00150
00151
00152 virtual void updateCoeffs();
00153
00154
00155
00156 virtual void write(Ostream&) const;
00157 };
00158
00159 template<>
00160 void timeVaryingUniformFixedValueFvPatchField<scalar>::updateCoeffs();
00161
00162 template<>
00163 void timeVaryingUniformFixedValueFvPatchField<vector>::updateCoeffs();
00164
00165 template<>
00166 void timeVaryingUniformFixedValueFvPatchField<sphericalTensor>::updateCoeffs();
00167
00168 template<>
00169 void timeVaryingUniformFixedValueFvPatchField<symmTensor>::updateCoeffs();
00170
00171 template<>
00172 void timeVaryingUniformFixedValueFvPatchField<tensor>::updateCoeffs();
00173
00174
00175
00176
00177 }
00178
00179
00180
00181 #ifdef NoRepository
00182 # include "timeVaryingUniformFixedValueFvPatchField.C"
00183 #endif
00184
00185
00186
00187 #endif
00188
00189
Copyright © 2000-2007 OpenCFD Ltd