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 -------------------------------------------------------------------------------
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::NoPhaseChange
29 
30 Group
31  grpLagrangianIntermediatePhaseChangeSubModels
32 
33 Description
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 
45 namespace Foam
46 {
47 /*---------------------------------------------------------------------------*\
48  Class NoPhaseChange Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class CloudType>
52 class NoPhaseChange
53 :
54  public PhaseChangeModel<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  (
75  new NoPhaseChange<CloudType>(*this)
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 // ************************************************************************* //
Foam::NoPhaseChange
Dummy phase change model for 'none'.
Definition: NoPhaseChange.H:51
Foam::PhaseChangeModel
Templated phase change model class.
Definition: ReactingCloud.H:61
Foam::NoPhaseChange::NoPhaseChange
NoPhaseChange(const dictionary &, CloudType &)
Construct from dictionary.
Definition: NoPhaseChange.C:35
PhaseChangeModel.H
rho
rho
Definition: readInitialConditions.H:88
nu
volScalarField & nu
Definition: readMechanicalProperties.H:176
Foam::Field< scalar >
Foam::NoPhaseChange::~NoPhaseChange
virtual ~NoPhaseChange()
Destructor.
Definition: NoPhaseChange.C:57
NoPhaseChange.C
Pr
dimensionedScalar Pr("Pr", dimless, laminarTransport)
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
Foam::NoPhaseChange::TypeName
TypeName("none")
Runtime type information.
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::NoPhaseChange::calculate
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
Foam::NoPhaseChange::active
virtual bool active() const
Flag to indicate whether model activates phase change model.
Definition: NoPhaseChange.C:64
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::NoPhaseChange::clone
virtual autoPtr< PhaseChangeModel< CloudType > > clone() const
Construct and return a clone.
Definition: NoPhaseChange.H:70
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159