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