totalPressureFvPatchScalarField.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 totalPressureFvPatchScalarField_H
00037 #define totalPressureFvPatchScalarField_H
00038
00039 #include "fixedValueFvPatchFields.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 class totalPressureFvPatchScalarField
00051 :
00052 public fixedValueFvPatchScalarField
00053 {
00054
00055
00056
00057 word UName_;
00058
00059
00060 word phiName_;
00061
00062
00063
00064 word rhoName_;
00065
00066
00067 word psiName_;
00068
00069
00070 scalar gamma_;
00071
00072
00073 scalarField p0_;
00074
00075
00076 public:
00077
00078
00079 TypeName("totalPressure");
00080
00081
00082
00083
00084
00085 totalPressureFvPatchScalarField
00086 (
00087 const fvPatch&,
00088 const DimensionedField<scalar, volMesh>&
00089 );
00090
00091
00092 totalPressureFvPatchScalarField
00093 (
00094 const fvPatch&,
00095 const DimensionedField<scalar, volMesh>&,
00096 const dictionary&
00097 );
00098
00099
00100
00101 totalPressureFvPatchScalarField
00102 (
00103 const totalPressureFvPatchScalarField&,
00104 const fvPatch&,
00105 const DimensionedField<scalar, volMesh>&,
00106 const fvPatchFieldMapper&
00107 );
00108
00109
00110 totalPressureFvPatchScalarField
00111 (
00112 const totalPressureFvPatchScalarField&
00113 );
00114
00115
00116 virtual tmp<fvPatchScalarField> clone() const
00117 {
00118 return tmp<fvPatchScalarField>
00119 (
00120 new totalPressureFvPatchScalarField(*this)
00121 );
00122 }
00123
00124
00125 totalPressureFvPatchScalarField
00126 (
00127 const totalPressureFvPatchScalarField&,
00128 const DimensionedField<scalar, volMesh>&
00129 );
00130
00131
00132 virtual tmp<fvPatchScalarField> clone
00133 (
00134 const DimensionedField<scalar, volMesh>& iF
00135 ) const
00136 {
00137 return tmp<fvPatchScalarField>
00138 (
00139 new totalPressureFvPatchScalarField(*this, iF)
00140 );
00141 }
00142
00143
00144
00145
00146
00147
00148
00149 const word& UName() const
00150 {
00151 return UName_;
00152 }
00153
00154
00155
00156 word& UName()
00157 {
00158 return UName_;
00159 }
00160
00161
00162 scalar gamma() const
00163 {
00164 return gamma_;
00165 }
00166
00167
00168 scalar& gamma()
00169 {
00170 return gamma_;
00171 }
00172
00173
00174 const scalarField& p0() const
00175 {
00176 return p0_;
00177 }
00178
00179
00180 scalarField& p0()
00181 {
00182 return p0_;
00183 }
00184
00185
00186
00187
00188
00189 virtual void autoMap
00190 (
00191 const fvPatchFieldMapper&
00192 );
00193
00194
00195 virtual void rmap
00196 (
00197 const fvPatchScalarField&,
00198 const labelList&
00199 );
00200
00201
00202
00203
00204
00205
00206 virtual void updateCoeffs(const vectorField& Up);
00207
00208
00209 virtual void updateCoeffs();
00210
00211
00212
00213 virtual void write(Ostream&) const;
00214 };
00215
00216
00217
00218
00219 }
00220
00221
00222
00223 #endif
00224
00225
Copyright © 2000-2009 OpenCFD Ltd