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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::SuppressionCollision
28
29Group
30 grpLagrangianIntermediateCollisionSubModels
31
32Description
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
45namespace Foam
46{
47/*---------------------------------------------------------------------------*\
48 Class SuppressionCollision Declaration
49\*---------------------------------------------------------------------------*/
50
51template<class CloudType>
53:
54 public StochasticCollisionModel<CloudType>
55{
56protected:
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 (
73 const scalar dt
74 );
75
76
77public:
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 CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75
Templated stochastic collision model class.
Inter-cloud collision model, whereby the canReact flag can be used to inhibit devolatilisation and su...
TypeName("suppressionCollision")
Runtime type information.
const word suppressionCloud_
Name of cloud used for suppression.
const label suppressedParcelType_
Suppressed parcel type - optional.
virtual ~SuppressionCollision()
Destructor.
virtual void collide(typename CloudType::parcelType::trackingData &td, const scalar dt)
Update the model.
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const
Construct and return a clone.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Class used to pass data into container.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73