Added measurement of surface values of velocity and temperature to allow slip
[OpenFOAM-1.6.x.git] / src / lagrangian / dsmc / submodels / WallInteractionModel / MixedDiffuseSpecular / MixedDiffuseSpecular.H
blobb84f43d8f6ef0ba8e35d874deb2411de2061d2b2
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2009-2009 OpenCFD Ltd.
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::MixedDiffuseSpecular
28 Description
29     Wall interaction setting microscopic velocity to a random one drawn from a
30     Maxwellian distribution corresponding to a specified temperature
32 \*---------------------------------------------------------------------------*/
34 #ifndef MixedDiffuseSpecular_H
35 #define MixedDiffuseSpecular_H
37 #include "WallInteractionModel.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 namespace Foam
43 /*---------------------------------------------------------------------------*\
44                     Class MixedDiffuseSpecular Declaration
45 \*---------------------------------------------------------------------------*/
47 template<class CloudType>
48 class MixedDiffuseSpecular
50     public WallInteractionModel<CloudType>
52     // Private data
54         //- Fraction of wall interactions that are diffuse
55         scalar diffuseFraction_;
58 public:
60     //- Runtime type information
61     TypeName("MixedDiffuseSpecular");
64     // Constructors
66         //- Construct from dictionary
67         MixedDiffuseSpecular
68         (
69             const dictionary& dict,
70             CloudType& cloud
71         );
74     // Destructor
75     virtual ~MixedDiffuseSpecular();
78     // Member Functions
80         //- Apply wall correction
81         virtual void correct
82         (
83             const wallPolyPatch& wpp,
84             const label faceId,
85             vector& U,
86             scalar& Ei,
87             label typeId
88         );
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 } // End namespace Foam
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 #ifdef NoRepository
99 #   include "MixedDiffuseSpecular.C"
100 #endif
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 #endif
106 // ************************************************************************* //