|
|
|
maxwellSlipUFvPatchVectorField.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::maxwellSlipUFvPatchVectorField 00027 00028 Description 00029 Maxwell slip boundary condition including thermal creep and surface 00030 curvature terms that can be optionally switched off. 00031 00032 SourceFiles 00033 fixedRhoFvPatchScalarField.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef maxwellSlipUFvPatchVectorField_H 00038 #define maxwellSlipUFvPatchVectorField_H 00039 00040 #include "mixedFixedValueSlipFvPatchFields.H" 00041 #include "Switch.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class maxwellSlipUFvPatch Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class maxwellSlipUFvPatchVectorField 00053 : 00054 public mixedFixedValueSlipFvPatchVectorField 00055 { 00056 00057 // Private data 00058 00059 // Accommodation coefficient 00060 scalar accommodationCoeff_; 00061 00062 // Wall velocity 00063 vectorField Uwall_; 00064 00065 // Include thermal creep term (default on) 00066 Switch thermalCreep_; 00067 00068 // Include boundary curvature term (default on) 00069 Switch curvature_; 00070 00071 public: 00072 00073 //- Runtime type information 00074 TypeName("maxwellSlipU"); 00075 00076 00077 // Constructors 00078 00079 //- Construct from patch and internal field 00080 maxwellSlipUFvPatchVectorField 00081 ( 00082 const fvPatch&, 00083 const DimensionedField<vector, volMesh>& 00084 ); 00085 00086 //- Construct from patch, internal field and dictionary 00087 maxwellSlipUFvPatchVectorField 00088 ( 00089 const fvPatch&, 00090 const DimensionedField<vector, volMesh>&, 00091 const dictionary& 00092 ); 00093 00094 //- Construct by mapping given 00095 // maxwellSlipUFvPatchVectorField onto a new patch 00096 maxwellSlipUFvPatchVectorField 00097 ( 00098 const maxwellSlipUFvPatchVectorField&, 00099 const fvPatch&, 00100 const DimensionedField<vector, volMesh>&, 00101 const fvPatchFieldMapper& 00102 ); 00103 00104 //- Construct and return a clone 00105 virtual tmp<fvPatchVectorField> clone() const 00106 { 00107 return tmp<fvPatchVectorField> 00108 ( 00109 new maxwellSlipUFvPatchVectorField(*this) 00110 ); 00111 } 00112 00113 //- Construct as copy setting internal field reference 00114 maxwellSlipUFvPatchVectorField 00115 ( 00116 const maxwellSlipUFvPatchVectorField&, 00117 const DimensionedField<vector, volMesh>& 00118 ); 00119 00120 //- Construct and return a clone setting internal field reference 00121 virtual tmp<fvPatchVectorField> clone 00122 ( 00123 const DimensionedField<vector, volMesh>& iF 00124 ) const 00125 { 00126 return tmp<fvPatchVectorField> 00127 ( 00128 new maxwellSlipUFvPatchVectorField(*this, iF) 00129 ); 00130 } 00131 00132 // Member functions 00133 00134 //- Update the coefficients associated with the patch field 00135 virtual void updateCoeffs(); 00136 00137 //- Write 00138 virtual void write(Ostream&) const; 00139 }; 00140 00141 00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00143 00144 } // End namespace Foam 00145 00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00147 00148 #endif 00149 00150 // ************************************************************************* // |