surfaceTensionModel.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) 2015-2022 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::surfaceTensionModel
26 
27 Description
28 
29 SourceFiles
30  surfaceTensionModel.C
31  aspectRatioModelNew.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef surfaceTensionModel_H
36 #define surfaceTensionModel_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 #include "volFields.H"
41 #include "dictionary.H"
42 #include "runTimeSelectionTables.H"
43 #include "phaseInterface.H"
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class surfaceTensionModel Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class surfaceTensionModel
53 {
54 protected:
55 
56  // Protected data
57 
58  //- Interface
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("surfaceTensionModel");
66 
67 
68  // Declare runtime construction
70  (
71  autoPtr,
73  dictionary,
74  (
75  const dictionary& dict,
76  const phaseInterface& interface
77  ),
78  (dict, interface)
79  );
80 
81 
82  // Static Data Members
83 
84  //- Coefficient dimensions
85  static const dimensionSet dimSigma;
86 
87 
88  // Constructors
89 
90  //- Construct from a dictionary and an interface
92  (
93  const dictionary& dict,
94  const phaseInterface& interface
95  );
96 
97 
98  //- Destructor
99  virtual ~surfaceTensionModel();
100 
101 
102  // Selectors
103 
105  (
106  const dictionary& dict,
107  const phaseInterface& interface,
108  const bool outer=true
109  );
110 
111 
112  // Member Functions
113 
114  //- Surface tension
115  virtual tmp<volScalarField> sigma() const = 0;
116 
117  //- Surface tension for a patch
118  virtual tmp<scalarField> sigma(const label patchi) const = 0;
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
dictionary dict
const phaseInterface interface_
Interface.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
static autoPtr< surfaceTensionModel > New(const dictionary &dict, const fvMesh &mesh)
declareRunTimeSelectionTable(autoPtr, surfaceTensionModel, dictionary,(const dictionary &dict, const fvMesh &mesh),(dict, mesh))
void outer(FieldField< Field1, typename outerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Class to represent an interface between phases. Derivations can further specify the configuration of ...
virtual ~surfaceTensionModel()
Destructor.
Dimension set for the base types.
Definition: dimensionSet.H:121
TypeName("surfaceTensionModel")
Runtime type information.
label patchi
static const dimensionSet dimSigma
Surface tension coefficient dimensions.
virtual tmp< volScalarField > sigma() const =0
Surface tension coefficient.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
surfaceTensionModel(const fvMesh &mesh)
A class for managing temporary objects.
Definition: PtrList.H:53
Abstract base-class for surface tension models which return the surface tension coefficient field...
Namespace for OpenFOAM.