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 cyclicFvPatchField_H
00036 #define cyclicFvPatchField_H
00037
00038 #include "coupledFvPatchField.H"
00039 #include "cyclicLduInterfaceField.H"
00040 #include "cyclicFvPatch.H"
00041
00042
00043
00044 namespace Foam
00045 {
00046
00047
00048
00049
00050
00051 template<class Type>
00052 class cyclicFvPatchField
00053 :
00054 public cyclicLduInterfaceField,
00055 public coupledFvPatchField<Type>
00056 {
00057
00058
00059
00060 const cyclicFvPatch& cyclicPatch_;
00061
00062
00063
00064
00065
00066 template<class Type2>
00067 tmp<Field<Type2> > neighbourSideField
00068 (
00069 const Field<Type2>&
00070 ) const;
00071
00072
00073 public:
00074
00075
00076 TypeName(cyclicFvPatch::typeName_());
00077
00078
00079
00080
00081
00082 cyclicFvPatchField
00083 (
00084 const fvPatch&,
00085 const DimensionedField<Type, volMesh>&
00086 );
00087
00088
00089 cyclicFvPatchField
00090 (
00091 const fvPatch&,
00092 const DimensionedField<Type, volMesh>&,
00093 const dictionary&
00094 );
00095
00096
00097 cyclicFvPatchField
00098 (
00099 const cyclicFvPatchField<Type>&,
00100 const fvPatch&,
00101 const DimensionedField<Type, volMesh>&,
00102 const fvPatchFieldMapper&
00103 );
00104
00105
00106 cyclicFvPatchField
00107 (
00108 const cyclicFvPatchField<Type>&
00109 );
00110
00111
00112 virtual tmp<fvPatchField<Type> > clone() const
00113 {
00114 return tmp<fvPatchField<Type> >
00115 (
00116 new cyclicFvPatchField<Type>(*this)
00117 );
00118 }
00119
00120
00121 cyclicFvPatchField
00122 (
00123 const cyclicFvPatchField<Type>&,
00124 const DimensionedField<Type, volMesh>&
00125 );
00126
00127
00128 virtual tmp<fvPatchField<Type> > clone
00129 (
00130 const DimensionedField<Type, volMesh>& iF
00131 ) const
00132 {
00133 return tmp<fvPatchField<Type> >
00134 (
00135 new cyclicFvPatchField<Type>(*this, iF)
00136 );
00137 }
00138
00139
00140
00141
00142
00143
00144
00145 tmp<Field<Type> > patchNeighbourField() const;
00146
00147
00148 virtual void updateInterfaceMatrix
00149 (
00150 const scalarField& psiInternal,
00151 scalarField& result,
00152 const lduMatrix&,
00153 const scalarField& coeffs,
00154 const direction cmpt
00155 ) const;
00156
00157
00158
00159
00160
00161 virtual bool doTransform() const
00162 {
00163 return !(cyclicPatch_.parallel() || pTraits<Type>::rank == 0);
00164 }
00165
00166
00167 virtual const tensorField& forwardT() const
00168 {
00169 return cyclicPatch_.forwardT();
00170 }
00171
00172
00173 virtual const tensorField& reverseT() const
00174 {
00175 return cyclicPatch_.reverseT();
00176 }
00177
00178
00179 virtual int rank() const
00180 {
00181 return pTraits<Type>::rank;
00182 }
00183 };
00184
00185
00186
00187
00188 }
00189
00190
00191
00192 #ifdef NoRepository
00193 # include "cyclicFvPatchField.C"
00194 #endif
00195
00196
00197
00198 #endif
00199
00200
Copyright © 2000-2007 OpenCFD Ltd