SuppressionCollision.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) 2013-2018 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
66  (
67  typename CloudType::parcelType::trackingData& td,
68  const scalar dt
69  );
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("suppressionCollision");
76 
77 
78  // Constructors
79 
80  //- Construct from dictionary
82 
83  //- Construct copy
85 
86  //- Construct and return a clone
88  {
90  (
92  );
93  }
94 
95 
96  //- Destructor
97  virtual ~SuppressionCollision();
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #ifdef NoRepository
108  #include "SuppressionCollision.C"
109 #endif
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #endif
114 
115 // ************************************************************************* //
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
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...
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:110
const CloudType & owner() const
Return const access to the owner cloud.
A class for handling words, derived from string.
Definition: word.H:59
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:69
Namespace for OpenFOAM.