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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::NoSurfaceReaction
29
30Group
31 grpLagrangianIntermediateSurfaceReactionSubModels
32
33Description
34 Dummy surface reaction model for 'none'
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef NoSurfaceReaction_H
39#define NoSurfaceReaction_H
40
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47/*---------------------------------------------------------------------------*\
48 Class NoSurfaceReaction Declaration
49\*---------------------------------------------------------------------------*/
50
51template<class CloudType>
53:
54 public SurfaceReactionModel<CloudType>
55{
56public:
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// ************************************************************************* //
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75
Dummy surface reaction model for 'none'.
TypeName("none")
Runtime type information.
virtual ~NoSurfaceReaction()=default
Destructor.
virtual autoPtr< SurfaceReactionModel< CloudType > > clone() const
Construct and return a clone.
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.
virtual bool active() const
Flag to indicate whether model activates devolatisation model.
Templated surface reaction model class.
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
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
const volScalarField & T
Namespace for OpenFOAM.
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
volScalarField & nu
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73
const Vector< label > N(dict.get< Vector< label > >("N"))