All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MixedDiffuseSpecular.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 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(typename CloudType::parcelType& p);
84 };
85 
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 } // End namespace Foam
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 #ifdef NoRepository
94  #include "MixedDiffuseSpecular.C"
95 #endif
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 #endif
100 
101 // ************************************************************************* //
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:80
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:225
Wall interaction setting microscopic velocity to a random one drawn from a Maxwellian distribution co...
virtual ~MixedDiffuseSpecular()
Destructor.
TypeName("MixedDiffuseSpecular")
Runtime type information.
virtual void correct(typename CloudType::parcelType &p)
Apply wall correction.
MixedDiffuseSpecular(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
Templated wall interaction model class.
const dictionary & dict() const
Return the dictionary.
A cloud is a collection of lagrangian particles.
Definition: cloud.H:55
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Namespace for OpenFOAM.
volScalarField & p