SuppressionCollision.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) 2013-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::SuppressionCollision
26 
27 Description
28  Inter-cloud collision model, whereby the \c canReact flag can be used
29  to inhibit devolatilisation and surface reactions
30 
31 \*---------------------------------------------------------------------------*/
32 
33 #ifndef SuppressionCollision_H
34 #define SuppressionCollision_H
35 
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 namespace Foam
41 {
42 /*---------------------------------------------------------------------------*\
43  Class SuppressionCollision Declaration
44 \*---------------------------------------------------------------------------*/
45 
46 template<class CloudType>
48 :
49  public StochasticCollisionModel<CloudType>
50 {
51 protected:
52 
53  // Protected data
54 
55  //- Name of cloud used for suppression
56  const word suppressionCloud_;
57 
58  //- Suppressed parcel type - optional
60 
61 
62  // Protected Member Functions
63 
64  //- Update the model
65  virtual void collide(const scalar dt);
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("suppressionCollision");
72 
73 
74  // Constructors
75 
76  //- Construct from dictionary
78 
79  //- Construct copy
81 
82  //- Construct and return a clone
84  {
86  (
88  );
89  }
90 
91 
92  //- Destructor
93  virtual ~SuppressionCollision();
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #ifdef NoRepository
104  #include "SuppressionCollision.C"
105 #endif
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
virtual void collide(const scalar dt)
Update the model.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const word suppressionCloud_
Name of cloud used for suppression.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Inter-cloud collision model, whereby the canReact flag can be used to inhibit devolatilisation and su...
const label suppressedParcelType_
Suppressed parcel type - optional.
A class for handling words, derived from string.
Definition: word.H:59
TypeName("suppressionCollision")
Runtime type information.
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const
Construct and return a clone.
SuppressionCollision(const dictionary &dict, CloudType &owner)
Construct from dictionary.
virtual ~SuppressionCollision()
Destructor.
Templated stochastic collision model class.
const CloudType & owner() const
Return const access to the owner cloud.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:68
Namespace for OpenFOAM.