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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2013-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::SuppressionCollision
28 
29 Group
30  grpLagrangianIntermediateCollisionSubModels
31 
32 Description
33  Inter-cloud collision model, whereby the \c canReact flag can be used
34  to inhibit devolatilisation and surface reactions
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef SuppressionCollision_H
39 #define SuppressionCollision_H
40 
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 /*---------------------------------------------------------------------------*\
48  Class SuppressionCollision Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class CloudType>
53 :
54  public StochasticCollisionModel<CloudType>
55 {
56 protected:
57 
58  // Protected data
59 
60  //- Name of cloud used for suppression
62 
63  //- Suppressed parcel type - optional
64  const label suppressedParcelType_;
65 
66 
67  // Protected Member Functions
68 
69  //- Update the model
70  virtual void collide
71  (
72  typename CloudType::parcelType::trackingData& td,
73  const scalar dt
74  );
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("suppressionCollision");
81 
82 
83  // Constructors
84 
85  //- Construct from dictionary
87 
88  //- Construct copy
90 
91  //- Construct and return a clone
93  {
95  (
97  );
98  }
99 
100 
101  //- Destructor
102  virtual ~SuppressionCollision();
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #ifdef NoRepository
113  #include "SuppressionCollision.C"
114 #endif
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
const word suppressionCloud_
Name of cloud used for suppression.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Inter-cloud collision model, whereby the canReact flag can be used to inhibit devolatilisation and su...
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const
Construct and return a clone.
const label suppressedParcelType_
Suppressed parcel type - optional.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:104
const CloudType & owner() const
Return const access to the owner cloud.
A class for handling words, derived from Foam::string.
Definition: word.H:63
TypeName("suppressionCollision")
Runtime type information.
virtual void collide(typename CloudType::parcelType::trackingData &td, const scalar dt)
Update the model.
SuppressionCollision(const dictionary &dict, CloudType &owner)
Construct from dictionary.
virtual ~SuppressionCollision()
Destructor.
Templated stochastic collision model class.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:67
Namespace for OpenFOAM.