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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::NoPhaseChange
28 
29 Group
30  grpLagrangianIntermediatePhaseChangeSubModels
31 
32 Description
33  Dummy phase change model for 'none'
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef NoPhaseChange_H
38 #define NoPhaseChange_H
39 
40 #include "PhaseChangeModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 /*---------------------------------------------------------------------------*\
47  Class NoPhaseChange Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 template<class CloudType>
51 class NoPhaseChange
52 :
53  public PhaseChangeModel<CloudType>
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("none");
59 
60 
61  // Constructors
62 
63  //- Construct from dictionary
65 
66  //- Construct copy
68 
69  //- Construct and return a clone
71  {
73  (
74  new NoPhaseChange<CloudType>(*this)
75  );
76  }
77 
78 
79  //- Destructor
80  virtual ~NoPhaseChange();
81 
82 
83  // Member Functions
84 
85  //- Flag to indicate whether model activates phase change model
86  virtual bool active() const;
87 
88  //- Update model
89  virtual void calculate
90  (
91  const scalar dt,
92  const label celli,
93  const scalar Re,
94  const scalar Pr,
95  const scalar d,
96  const scalar nu,
97  const scalar T,
98  const scalar Ts,
99  const scalar pc,
100  const scalar Tc,
101  const scalarField& X,
102  scalarField& dMassPC
103  ) const;
104 };
105 
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #ifdef NoRepository
114  #include "NoPhaseChange.C"
115 #endif
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Foam::NoPhaseChange
Dummy phase change model for 'none'.
Definition: NoPhaseChange.H:50
Foam::PhaseChangeModel
Templated phase change model class.
Definition: ReactingCloud.H:61
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 T, const scalar Ts, const scalar pc, const scalar Tc, const scalarField &X, scalarField &dMassPC) const
Update model.
Definition: NoPhaseChange.C:71
Foam::NoPhaseChange::NoPhaseChange
NoPhaseChange(const dictionary &, CloudType &)
Construct from dictionary.
Definition: NoPhaseChange.C:34
PhaseChangeModel.H
nu
volScalarField & nu
Definition: readMechanicalProperties.H:176
Foam::Field< scalar >
Foam::NoPhaseChange::~NoPhaseChange
virtual ~NoPhaseChange()
Destructor.
Definition: NoPhaseChange.C:56
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:121
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::NoPhaseChange::active
virtual bool active() const
Flag to indicate whether model activates phase change model.
Definition: NoPhaseChange.C:63
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:69
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159