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