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