noBlending.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) 2014-2018 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::blendingMethods::noBlending
26 
27 Description
28 
29 SourceFiles
30  noBlending.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef noBlending_H
35 #define noBlending_H
36 
37 #include "blendingMethod.H"
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 namespace blendingMethods
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class noBlending Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class noBlending
51 :
52  public blendingMethod
53 {
54  // Private data
55 
56  //- Name of the continuous phase
57  const word continuousPhase_;
58 
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("none");
64 
65 
66  // Constructors
67 
68  //- Construct from a dictionary and two phases
70  (
71  const dictionary& dict,
72  const wordList& phaseNames
73  );
74 
75 
76  //- Destructor
77  ~noBlending();
78 
79 
80  // Member Functions
81 
82  //- Factor for primary phase
83  virtual tmp<volScalarField> f1
84  (
85  const phaseModel& phase1,
86  const phaseModel& phase2
87  ) const;
88 
89  //- Factor for secondary phase
90  virtual tmp<volScalarField> f2
91  (
92  const phaseModel& phase1,
93  const phaseModel& phase2
94  ) const;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace blendingMethods
101 } // End namespace Foam
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 #endif
106 
107 // ************************************************************************* //
dictionary dict
virtual tmp< volScalarField > f1(const phaseModel &phase1, const phaseModel &phase2) const
Factor for primary phase.
phaseModel & phase1
List< word > wordList
A List of words.
Definition: fileName.H:54
virtual tmp< volScalarField > f2(const phaseModel &phase1, const phaseModel &phase2) const
Factor for secondary phase.
noBlending(const dictionary &dict, const wordList &phaseNames)
Construct from a dictionary and two phases.
phaseModel & phase2
Namespace for OpenFOAM.
TypeName("none")
Runtime type information.