NoSurfaceReaction.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) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2018-2019 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::NoSurfaceReaction
29 
30 Group
31  grpLagrangianIntermediateSurfaceReactionSubModels
32 
33 Description
34  Dummy surface reaction model for 'none'
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef NoSurfaceReaction_H
39 #define NoSurfaceReaction_H
40 
41 #include "SurfaceReactionModel.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 /*---------------------------------------------------------------------------*\
48  Class NoSurfaceReaction Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class CloudType>
53 :
54  public SurfaceReactionModel<CloudType>
55 {
56 public:
57 
58  //- Runtime type information
59  TypeName("none");
60 
61 
62  // Constructors
63 
64  //- Construct from dictionary
66 
67  //- Construct copy
69 
70  //- Construct and return a clone
72  {
74  (
76  );
77  }
78 
79 
80  //- Destructor
81  virtual ~NoSurfaceReaction() = default;
82 
83 
84  // Member Functions
85 
86  //- Flag to indicate whether model activates devolatisation model
87  virtual bool active() const;
88 
89  //- Update surface reactions
90  virtual scalar calculate
91  (
92  const scalar dt,
93  const scalar Re,
94  const scalar nu,
95  const label celli,
96  const scalar d,
97  const scalar T,
98  const scalar Tc,
99  const scalar pc,
100  const scalar rhoc,
101  const scalar mass,
102  const scalarField& YGas,
103  const scalarField& YLiquid,
104  const scalarField& YSolid,
105  const scalarField& YMixture,
106  const scalar N,
107  scalarField& dMassGas,
108  scalarField& dMassLiquid,
109  scalarField& dMassSolid,
110  scalarField& dMassSRCarrier
111  ) const;
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #ifdef NoRepository
122  #include "NoSurfaceReaction.C"
123 #endif
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
Foam::SurfaceReactionModel
Templated surface reaction model class.
Definition: ReactingMultiphaseCloud.H:61
nu
volScalarField & nu
Definition: readMechanicalProperties.H:176
NoSurfaceReaction.C
Foam::Field< scalar >
SurfaceReactionModel.H
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
Foam::NoSurfaceReaction::clone
virtual autoPtr< SurfaceReactionModel< CloudType > > clone() const
Construct and return a clone.
Definition: NoSurfaceReaction.H:70
Foam::NoSurfaceReaction::TypeName
TypeName("none")
Runtime type information.
Foam::NoSurfaceReaction::active
virtual bool active() const
Flag to indicate whether model activates devolatisation model.
Definition: NoSurfaceReaction.C:57
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::NoSurfaceReaction
Dummy surface reaction model for 'none'.
Definition: NoSurfaceReaction.H:51
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::NoSurfaceReaction::NoSurfaceReaction
NoSurfaceReaction(const dictionary &dict, CloudType &owner)
Construct from dictionary.
Definition: NoSurfaceReaction.C:35
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
Foam::NoSurfaceReaction::calculate
virtual scalar calculate(const scalar dt, const scalar Re, const scalar nu, const label celli, const scalar d, const scalar T, const scalar Tc, const scalar pc, const scalar rhoc, const scalar mass, const scalarField &YGas, const scalarField &YLiquid, const scalarField &YSolid, const scalarField &YMixture, const scalar N, scalarField &dMassGas, scalarField &dMassLiquid, scalarField &dMassSolid, scalarField &dMassSRCarrier) const
Update surface reactions.
Definition: NoSurfaceReaction.C:65
N
const Vector< label > N(dict.get< Vector< label >>("N"))
Foam::NoSurfaceReaction::~NoSurfaceReaction
virtual ~NoSurfaceReaction()=default
Destructor.