liquidPropertiesSurfaceTension.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) 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::surfaceTensionModels::liquidProperties
26 
27 Description
28  Temperature-dependent surface tension model in which the surface tension
29  function provided by the phase Foam::liquidProperties class is used.
30 
31 Usage
32  \table
33  Property | Description | Required | Default value
34  phase | Phase name | yes |
35  \endtable
36 
37  Example of the surface tension specification:
38  \verbatim
39  sigma
40  {
41  type liquidProperties;
42  phase water;
43  }
44  \endverbatim
45 
46 See also
47  Foam::surfaceTensionModel
48 
49 SourceFiles
50  liquidPropertiesSurfaceTension.C
51 
52 \*---------------------------------------------------------------------------*/
53 
54 #ifndef liquidPropertiesSurfaceTension_H
55 #define liquidPropertiesSurfaceTension_H
56 
57 #include "surfaceTensionModel.H"
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 namespace Foam
62 {
63 
64 namespace surfaceTensionModels
65 {
66 
67 /*---------------------------------------------------------------------------*\
68  Class liquidProperties Declaration
69 \*---------------------------------------------------------------------------*/
70 
71 class liquidProperties
72 :
73  public surfaceTensionModel
74 {
75  // Private data
76 
77  //- Name of the liquid phase
78  word phaseName_;
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("liquidProperties");
85 
86 
87  // Constructors
88 
89  //- Construct from dictionary and mesh
91  (
92  const dictionary& dict,
93  const fvMesh& mesh
94  );
95 
96 
97  //- Destructor
98  virtual ~liquidProperties();
99 
100 
101  // Member Functions
102 
103  //- Surface tension coefficient
104  virtual tmp<volScalarField> sigma() const;
105 
106  //- Update surface tension coefficient from given dictionary
107  virtual bool readDict(const dictionary& dict);
108 
109  //- Write in dictionary format
110  virtual bool writeData(Ostream& os) const;
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace surfaceTensionModels
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
liquidProperties(const dictionary &dict, const fvMesh &mesh)
Construct from dictionary and mesh.
virtual bool writeData(Ostream &os) const
Write in dictionary format.
virtual bool readDict(const dictionary &dict)
Update surface tension coefficient from given dictionary.
dynamicFvMesh & mesh
TypeName("liquidProperties")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< volScalarField > sigma() const
Surface tension coefficient.
Namespace for OpenFOAM.