MixedDiffuseSpecular.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::MixedDiffuseSpecular
26 
27 Description
28  Wall interaction setting microscopic velocity to a random one
29  drawn from a Maxwellian distribution corresponding to a specified
30  temperature for a specified fraction of collisions, and reversing
31  the wall-normal component of the particle velocity for the
32  remainder.
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef MixedDiffuseSpecular_H
37 #define MixedDiffuseSpecular_H
38 
39 #include "WallInteractionModel.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 /*---------------------------------------------------------------------------*\
46  Class MixedDiffuseSpecular Declaration
47 \*---------------------------------------------------------------------------*/
48 
49 template<class CloudType>
51 :
52  public WallInteractionModel<CloudType>
53 {
54  // Private data
55 
56  //- Fraction of wall interactions that are diffuse
57  scalar diffuseFraction_;
58 
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("MixedDiffuseSpecular");
64 
65 
66  // Constructors
67 
68  //- Construct from dictionary
70  (
71  const dictionary& dict,
73  );
74 
75 
76  //- Destructor
77  virtual ~MixedDiffuseSpecular();
78 
79 
80  // Member Functions
81 
82  //- Apply wall correction
83  virtual void correct
84  (
85  typename CloudType::parcelType& p,
86  const wallPolyPatch& wpp
87  );
88 };
89 
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 } // End namespace Foam
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 #ifdef NoRepository
98  #include "MixedDiffuseSpecular.C"
99 #endif
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
TypeName("MixedDiffuseSpecular")
Runtime type information.
virtual ~MixedDiffuseSpecular()
Destructor.
A cloud is a collection of lagrangian particles.
Definition: cloud.H:51
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:48
virtual void correct(typename CloudType::parcelType &p, const wallPolyPatch &wpp)
Apply wall correction.
const dictionary & dict() const
Return the dictionary.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:217
Wall interaction setting microscopic velocity to a random one drawn from a Maxwellian distribution co...
volScalarField & p
Templated wall interaction model class.
Definition: DSMCCloud.H:58
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:68
Namespace for OpenFOAM.
MixedDiffuseSpecular(const dictionary &dict, CloudType &cloud)
Construct from dictionary.