NoPhaseChange.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) 2020 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::NoPhaseChange
29
30Group
31 grpLagrangianIntermediatePhaseChangeSubModels
32
33Description
34 Dummy phase change model for 'none'
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef NoPhaseChange_H
39#define NoPhaseChange_H
40
41#include "PhaseChangeModel.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47/*---------------------------------------------------------------------------*\
48 Class NoPhaseChange Declaration
49\*---------------------------------------------------------------------------*/
50
51template<class CloudType>
52class NoPhaseChange
53:
54 public PhaseChangeModel<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 ~NoPhaseChange();
82
83
84 // Member Functions
85
86 //- Flag to indicate whether model activates phase change model
87 virtual bool active() const;
88
89 //- Update model
90 virtual void calculate
91 (
92 const scalar dt,
93 const label celli,
94 const scalar Re,
95 const scalar Pr,
96 const scalar d,
97 const scalar nu,
98 const scalar rho,
99 const scalar T,
100 const scalar Ts,
101 const scalar pc,
102 const scalar Tc,
103 const scalarField& X,
104 const scalarField& solMass,
105 const scalarField& liqMass,
106 scalarField& dMassPC
107 ) const;
108};
109
110
111// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112
113} // End namespace Foam
114
115// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116
117#ifdef NoRepository
118 #include "NoPhaseChange.C"
119#endif
120
121// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122
123#endif
124
125// ************************************************************************* //
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75
Dummy phase change model for 'none'.
Definition: NoPhaseChange.H:54
TypeName("none")
Runtime type information.
virtual ~NoPhaseChange()
Destructor.
Definition: NoPhaseChange.C:57
virtual autoPtr< PhaseChangeModel< CloudType > > clone() const
Construct and return a clone.
Definition: NoPhaseChange.H:70
virtual bool active() const
Flag to indicate whether model activates phase change model.
Definition: NoPhaseChange.C:64
virtual void calculate(const scalar dt, const label celli, const scalar Re, const scalar Pr, const scalar d, const scalar nu, const scalar rho, const scalar T, const scalar Ts, const scalar pc, const scalar Tc, const scalarField &X, const scalarField &solMass, const scalarField &liqMass, scalarField &dMassPC) const
Update model.
Definition: NoPhaseChange.C:72
Templated phase change 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 volScalarField & T
Namespace for OpenFOAM.
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
volScalarField & nu
dimensionedScalar Pr("Pr", dimless, laminarTransport)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73