freestreamFvPatchField.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 freestreamFvPatchField_H
00037 #define freestreamFvPatchField_H
00038
00039 #include "inletOutletFvPatchField.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 template<class Type>
00051 class freestreamFvPatchField
00052 :
00053 public inletOutletFvPatchField<Type>
00054 {
00055
00056 public:
00057
00058
00059 TypeName("freestream");
00060
00061
00062
00063
00064
00065 freestreamFvPatchField
00066 (
00067 const fvPatch&,
00068 const DimensionedField<Type, volMesh>&
00069 );
00070
00071
00072 freestreamFvPatchField
00073 (
00074 const fvPatch&,
00075 const DimensionedField<Type, volMesh>&,
00076 const dictionary&
00077 );
00078
00079
00080 freestreamFvPatchField
00081 (
00082 const freestreamFvPatchField<Type>&,
00083 const fvPatch&,
00084 const DimensionedField<Type, volMesh>&,
00085 const fvPatchFieldMapper&
00086 );
00087
00088
00089 freestreamFvPatchField
00090 (
00091 const freestreamFvPatchField<Type>&
00092 );
00093
00094
00095 virtual tmp<fvPatchField<Type> > clone() const
00096 {
00097 return tmp<fvPatchField<Type> >
00098 (
00099 new freestreamFvPatchField<Type>(*this)
00100 );
00101 }
00102
00103
00104 freestreamFvPatchField
00105 (
00106 const freestreamFvPatchField<Type>&,
00107 const DimensionedField<Type, volMesh>&
00108 );
00109
00110
00111 virtual tmp<fvPatchField<Type> > clone
00112 (
00113 const DimensionedField<Type, volMesh>& iF
00114 ) const
00115 {
00116 return tmp<fvPatchField<Type> >
00117 (
00118 new freestreamFvPatchField<Type>(*this, iF)
00119 );
00120 }
00121
00122
00123
00124
00125
00126
00127 const Field<Type>& freestreamValue() const
00128 {
00129 return this->refValue();
00130 }
00131
00132 Field<Type>& freestreamValue()
00133 {
00134 return this->refValue();
00135 }
00136
00137
00138
00139 virtual void write(Ostream&) const;
00140 };
00141
00142
00143
00144
00145 }
00146
00147
00148
00149 #ifdef NoRepository
00150 # include "freestreamFvPatchField.C"
00151 #endif
00152
00153
00154
00155 #endif
00156
00157
Copyright © 2000-2009 OpenCFD Ltd