solidification.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 | Copyright (C) 2013-2017 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::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  // Private member functions
60 
61  //- Disallow default bitwise copy construct
63 
64  //- Disallow default bitwise assignment
65  void operator=(const solidification&);
66 
67 
68 protected:
69 
70  // Protected data
71 
72  //- Temperature at which solidification starts
73  scalar T0_;
74 
75  //- Solidification limiter
76  // Maximum fraction of film which can solidify in a time-step
78 
79  //- Solidification limiter
80  // Maximum rate at which the film can solidify
82 
83  //- Accumulated solid mass [kg]
85 
86  //- Accumulated solid thickness [m]
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("solidification");
94 
95 
96  // Constructors
97 
98  //- Construct from surface film model
100 
101 
102  //- Destructor
103  virtual ~solidification();
104 
105 
106  // Member Functions
107 
108  // Evolution
109 
110  //- Correct
111  virtual void correctModel
112  (
113  const scalar dt,
114  scalarField& availableMass,
115  scalarField& dMass,
116  scalarField& dEnergy
117  );
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace surfaceFilmModels
124 } // End namespace regionModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
const surfaceFilmModel & film() const
Return const access to the film surface film model.
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:137
volScalarField thickness_
Accumulated solid thickness [m].
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
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.
scalar T0_
Temperature at which solidification starts.
Namespace for OpenFOAM.