1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::maxwellSlipUFvPatchVectorField
28 Maxwell slip boundary condition including thermal creep and surface
29 curvature terms that can be optionally switched off.
32 fixedRhoFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef maxwellSlipUFvPatchVectorField_H
37 #define maxwellSlipUFvPatchVectorField_H
39 #include "mixedFixedValueSlipFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class maxwellSlipUFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class maxwellSlipUFvPatchVectorField
53 public mixedFixedValueSlipFvPatchVectorField
57 // Accommodation coefficient
58 scalar accommodationCoeff_;
63 // Include thermal creep term (default on)
66 // Include boundary curvature term (default on)
72 //- Runtime type information
73 TypeName("maxwellSlipU");
78 //- Construct from patch and internal field
79 maxwellSlipUFvPatchVectorField
82 const DimensionedField<vector, volMesh>&
85 //- Construct from patch, internal field and dictionary
86 maxwellSlipUFvPatchVectorField
89 const DimensionedField<vector, volMesh>&,
93 //- Construct by mapping given
94 // maxwellSlipUFvPatchVectorField onto a new patch
95 maxwellSlipUFvPatchVectorField
97 const maxwellSlipUFvPatchVectorField&,
99 const DimensionedField<vector, volMesh>&,
100 const fvPatchFieldMapper&
103 //- Construct and return a clone
104 virtual tmp<fvPatchVectorField> clone() const
106 return tmp<fvPatchVectorField>
108 new maxwellSlipUFvPatchVectorField(*this)
112 //- Construct as copy setting internal field reference
113 maxwellSlipUFvPatchVectorField
115 const maxwellSlipUFvPatchVectorField&,
116 const DimensionedField<vector, volMesh>&
119 //- Construct and return a clone setting internal field reference
120 virtual tmp<fvPatchVectorField> clone
122 const DimensionedField<vector, volMesh>& iF
125 return tmp<fvPatchVectorField>
127 new maxwellSlipUFvPatchVectorField(*this, iF)
134 //- Update the coefficients associated with the patch field
135 virtual void updateCoeffs();
138 virtual void write(Ostream&) const;
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 } // End namespace Foam
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 // ************************************************************************* //