ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / compressible / rhoCentralFoam / BCs / U / maxwellSlipUFvPatchVectorField.H
blobdf441c5d91cf0820d7f93321bcfb2e5d3fe3e526
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::maxwellSlipUFvPatchVectorField
27 Description
28     Maxwell slip boundary condition including thermal creep and surface
29     curvature terms that can be optionally switched off.
31 SourceFiles
32     fixedRhoFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef maxwellSlipUFvPatchVectorField_H
37 #define maxwellSlipUFvPatchVectorField_H
39 #include "mixedFixedValueSlipFvPatchFields.H"
40 #include "Switch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48                      Class maxwellSlipUFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class maxwellSlipUFvPatchVectorField
53     public mixedFixedValueSlipFvPatchVectorField
55     // Private data
57         // Accommodation coefficient
58         scalar accommodationCoeff_;
60         // Wall velocity
61         vectorField Uwall_;
63         // Include thermal creep term (default on)
64         Switch thermalCreep_;
66         // Include boundary curvature term (default on)
67         Switch curvature_;
70 public:
72     //- Runtime type information
73     TypeName("maxwellSlipU");
76     // Constructors
78         //- Construct from patch and internal field
79         maxwellSlipUFvPatchVectorField
80         (
81             const fvPatch&,
82             const DimensionedField<vector, volMesh>&
83         );
85         //- Construct from patch, internal field and dictionary
86         maxwellSlipUFvPatchVectorField
87         (
88             const fvPatch&,
89             const DimensionedField<vector, volMesh>&,
90             const dictionary&
91         );
93         //- Construct by mapping given
94         //  maxwellSlipUFvPatchVectorField onto a new patch
95         maxwellSlipUFvPatchVectorField
96         (
97             const maxwellSlipUFvPatchVectorField&,
98             const fvPatch&,
99             const DimensionedField<vector, volMesh>&,
100             const fvPatchFieldMapper&
101         );
103         //- Construct and return a clone
104         virtual tmp<fvPatchVectorField> clone() const
105         {
106             return tmp<fvPatchVectorField>
107             (
108                 new maxwellSlipUFvPatchVectorField(*this)
109             );
110         }
112         //- Construct as copy setting internal field reference
113         maxwellSlipUFvPatchVectorField
114         (
115             const maxwellSlipUFvPatchVectorField&,
116             const DimensionedField<vector, volMesh>&
117         );
119         //- Construct and return a clone setting internal field reference
120         virtual tmp<fvPatchVectorField> clone
121         (
122             const DimensionedField<vector, volMesh>& iF
123         ) const
124         {
125             return tmp<fvPatchVectorField>
126             (
127                 new maxwellSlipUFvPatchVectorField(*this, iF)
128             );
129         }
132     // Member functions
134         //- Update the coefficients associated with the patch field
135         virtual void updateCoeffs();
137         //- Write
138         virtual void write(Ostream&) const;
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 } // End namespace Foam
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 #endif
150 // ************************************************************************* //