00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::maxwellSlipUFvPatchVectorField 00026 00027 Description 00028 Maxwell slip boundary condition including thermal creep and surface 00029 curvature terms that can be optionally switched off. 00030 00031 SourceFiles 00032 fixedRhoFvPatchScalarField.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef maxwellSlipUFvPatchVectorField_H 00037 #define maxwellSlipUFvPatchVectorField_H 00038 00039 #include <rhoCentralBCs/mixedFixedValueSlipFvPatchFields.H> 00040 #include <OpenFOAM/Switch.H> 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 /*---------------------------------------------------------------------------*\ 00048 Class maxwellSlipUFvPatch Declaration 00049 \*---------------------------------------------------------------------------*/ 00050 00051 class maxwellSlipUFvPatchVectorField 00052 : 00053 public mixedFixedValueSlipFvPatchVectorField 00054 { 00055 00056 // Private data 00057 00058 // Accommodation coefficient 00059 scalar accommodationCoeff_; 00060 00061 // Wall velocity 00062 vectorField Uwall_; 00063 00064 // Include thermal creep term (default on) 00065 Switch thermalCreep_; 00066 00067 // Include boundary curvature term (default on) 00068 Switch curvature_; 00069 00070 public: 00071 00072 //- Runtime type information 00073 TypeName("maxwellSlipU"); 00074 00075 00076 // Constructors 00077 00078 //- Construct from patch and internal field 00079 maxwellSlipUFvPatchVectorField 00080 ( 00081 const fvPatch&, 00082 const DimensionedField<vector, volMesh>& 00083 ); 00084 00085 //- Construct from patch, internal field and dictionary 00086 maxwellSlipUFvPatchVectorField 00087 ( 00088 const fvPatch&, 00089 const DimensionedField<vector, volMesh>&, 00090 const dictionary& 00091 ); 00092 00093 //- Construct by mapping given 00094 // maxwellSlipUFvPatchVectorField onto a new patch 00095 maxwellSlipUFvPatchVectorField 00096 ( 00097 const maxwellSlipUFvPatchVectorField&, 00098 const fvPatch&, 00099 const DimensionedField<vector, volMesh>&, 00100 const fvPatchFieldMapper& 00101 ); 00102 00103 //- Construct and return a clone 00104 virtual tmp<fvPatchVectorField> clone() const 00105 { 00106 return tmp<fvPatchVectorField> 00107 ( 00108 new maxwellSlipUFvPatchVectorField(*this) 00109 ); 00110 } 00111 00112 //- Construct as copy setting internal field reference 00113 maxwellSlipUFvPatchVectorField 00114 ( 00115 const maxwellSlipUFvPatchVectorField&, 00116 const DimensionedField<vector, volMesh>& 00117 ); 00118 00119 //- Construct and return a clone setting internal field reference 00120 virtual tmp<fvPatchVectorField> clone 00121 ( 00122 const DimensionedField<vector, volMesh>& iF 00123 ) const 00124 { 00125 return tmp<fvPatchVectorField> 00126 ( 00127 new maxwellSlipUFvPatchVectorField(*this, iF) 00128 ); 00129 } 00130 00131 // Member functions 00132 00133 //- Update the coefficients associated with the patch field 00134 virtual void updateCoeffs(); 00135 00136 //- Write 00137 virtual void write(Ostream&) const; 00138 }; 00139 00140 00141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00142 00143 } // End namespace Foam 00144 00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00146 00147 #endif 00148 00149 // ************************ vim: set sw=4 sts=4 et: ************************ //