solidification.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::regionModels::surfaceFilmModels::solidification
26 
27 Description
28  Solidification phase change model where all film mass is converted when the
29  local temperature > activation temperature. The latent heat is
30  assumed to be removed by heat-transfer to the wall.
31 
32 SourceFiles
33  solidification.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef solidification_H
38 #define solidification_H
39 
40 #include "phaseChangeModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace regionModels
47 {
48 namespace surfaceFilmModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class solidification Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class solidification
56 :
57  public phaseChangeModel
58 {
59 protected:
60 
61  // Protected data
62 
63  //- Temperature at which solidification starts
64  scalar T0_;
65 
66  //- Solidification limiter
67  // Maximum fraction of film which can solidify in a time-step
69 
70  //- Solidification limiter
71  // Maximum rate at which the film can solidify
73 
74  //- Accumulated solid mass [kg]
76 
77  //- Accumulated solid thickness [m]
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("solidification");
85 
86 
87  // Constructors
88 
89  //- Construct from surface film model
91 
92  //- Disallow default bitwise copy construction
93  solidification(const solidification&) = delete;
94 
95 
96  //- Destructor
97  virtual ~solidification();
98 
99 
100  // Member Functions
101 
102  // Evolution
103 
104  //- Correct
105  virtual void correctModel
106  (
107  const scalar dt,
108  scalarField& availableMass,
109  scalarField& dMass,
110  scalarField& dEnergy
111  );
112 
113 
114  // Member Operators
115 
116  //- Disallow default bitwise assignment
117  void operator=(const solidification&) = delete;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace surfaceFilmModels
124 } // End namespace regionModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
volScalarField mass_
Accumulated solid mass [kg].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
volScalarField thickness_
Accumulated solid thickness [m].
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Base class for surface film phase change models.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)
Correct.
scalar maxSolidificationFrac_
Solidification limiter.
TypeName("solidification")
Runtime type information.
dimensionedScalar maxSolidificationRate_
Solidification limiter.
void operator=(const solidification &)=delete
Disallow default bitwise assignment.
solidification(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model.
scalar T0_
Temperature at which solidification starts.
Solidification phase change model where all film mass is converted when the local temperature > activ...
Namespace for OpenFOAM.