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
61  const word suppressionCloud_;
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 // ************************************************************************* //
Foam::SuppressionCollision::suppressionCloud_
const word suppressionCloud_
Name of cloud used for suppression.
Definition: SuppressionCollision.H:60
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::SuppressionCollision
Inter-cloud collision model, whereby the canReact flag can be used to inhibit devolatilisation and su...
Definition: SuppressionCollision.H:51
Foam::SuppressionCollision::clone
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const
Construct and return a clone.
Definition: SuppressionCollision.H:91
Foam::SuppressionCollision::collide
virtual void collide(typename CloudType::parcelType::trackingData &td, const scalar dt)
Update the model.
Definition: SuppressionCollision.C:36
Foam::StochasticCollisionModel
Templated stochastic collision model class.
Definition: KinematicCloud.H:95
Foam::SuppressionCollision::SuppressionCollision
SuppressionCollision(const dictionary &dict, CloudType &owner)
Construct from dictionary.
Definition: SuppressionCollision.C:69
Foam::SuppressionCollision::suppressedParcelType_
const label suppressedParcelType_
Suppressed parcel type - optional.
Definition: SuppressionCollision.H:63
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::SuppressionCollision::TypeName
TypeName("suppressionCollision")
Runtime type information.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::SuppressionCollision::~SuppressionCollision
virtual ~SuppressionCollision()
Destructor.
Definition: SuppressionCollision.C:98
StochasticCollisionModel.H
SuppressionCollision.C