alphaContactAngleFvPatchScalarField.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
00037 #ifndef alphaContactAngleFvPatchScalarField_H
00038 #define alphaContactAngleFvPatchScalarField_H
00039
00040 #include "zeroGradientFvPatchFields.H"
00041 #include "multiphaseMixture.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050
00051
00052 class alphaContactAngleFvPatchScalarField
00053 :
00054 public zeroGradientFvPatchScalarField
00055 {
00056 public:
00057
00058 class interfaceThetaProps
00059 {
00060
00061 scalar theta0_;
00062
00063
00064 scalar uTheta_;
00065
00066
00067 scalar thetaA_;
00068
00069
00070 scalar thetaR_;
00071
00072
00073 public:
00074
00075
00076 interfaceThetaProps()
00077 {}
00078
00079 interfaceThetaProps(Istream&);
00080
00081
00082
00083
00084
00085 scalar theta0(bool matched=true) const
00086 {
00087 if (matched) return theta0_;
00088 else return 180.0 - theta0_;
00089 }
00090
00091
00092 scalar uTheta() const
00093 {
00094 return uTheta_;
00095 }
00096
00097
00098 scalar thetaA(bool matched=true) const
00099 {
00100 if (matched) return thetaA_;
00101 else return 180.0 - thetaA_;
00102 }
00103
00104
00105 scalar thetaR(bool matched=true) const
00106 {
00107 if (matched) return thetaR_;
00108 else return 180.0 - thetaR_;
00109 }
00110
00111
00112
00113
00114 friend Istream& operator>>(Istream&, interfaceThetaProps&);
00115 friend Ostream& operator<<(Ostream&, const interfaceThetaProps&);
00116 };
00117
00118 typedef HashTable
00119 <
00120 interfaceThetaProps,
00121 multiphaseMixture::interfacePair,
00122 multiphaseMixture::interfacePair::hash
00123 > thetaPropsTable;
00124
00125
00126 private:
00127
00128
00129
00130 thetaPropsTable thetaProps_;
00131
00132
00133 public:
00134
00135
00136 TypeName("alphaContactAngle");
00137
00138
00139
00140
00141
00142 alphaContactAngleFvPatchScalarField
00143 (
00144 const fvPatch&,
00145 const DimensionedField<scalar, volMesh>&
00146 );
00147
00148
00149 alphaContactAngleFvPatchScalarField
00150 (
00151 const fvPatch&,
00152 const DimensionedField<scalar, volMesh>&,
00153 const dictionary&
00154 );
00155
00156
00157
00158 alphaContactAngleFvPatchScalarField
00159 (
00160 const alphaContactAngleFvPatchScalarField&,
00161 const fvPatch&,
00162 const DimensionedField<scalar, volMesh>&,
00163 const fvPatchFieldMapper&
00164 );
00165
00166
00167 virtual tmp<fvPatchScalarField> clone() const
00168 {
00169 return tmp<fvPatchScalarField>
00170 (
00171 new alphaContactAngleFvPatchScalarField(*this)
00172 );
00173 }
00174
00175
00176 alphaContactAngleFvPatchScalarField
00177 (
00178 const alphaContactAngleFvPatchScalarField&,
00179 const DimensionedField<scalar, volMesh>&
00180 );
00181
00182
00183 virtual tmp<fvPatchScalarField> clone
00184 (
00185 const DimensionedField<scalar, volMesh>& iF
00186 ) const
00187 {
00188 return tmp<fvPatchScalarField>
00189 (
00190 new alphaContactAngleFvPatchScalarField(*this, iF)
00191 );
00192 }
00193
00194
00195
00196
00197
00198 const thetaPropsTable& thetaProps() const
00199 {
00200 return thetaProps_;
00201 }
00202
00203
00204 virtual void write(Ostream&) const;
00205 };
00206
00207
00208
00209
00210 }
00211
00212
00213
00214 #endif
00215
00216
Copyright © 2000-2009 OpenCFD Ltd