segregatedDisplacedPhaseInterface.C
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) 2021-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 \*---------------------------------------------------------------------------*/
25 
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
34  (
35  segregatedDisplacedPhaseInterface,
36  separatorsToTypeName
37  ({
40  }).c_str(),
41  0
42  );
44  (
45  phaseInterface,
46  segregatedDisplacedPhaseInterface,
47  word
48  );
49 }
50 
51 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
52 
54 (
55  const phaseModel& phase1,
56  const phaseModel& phase2,
57  const phaseModel& displacing
58 )
59 :
60  phaseInterface(phase1, phase2),
61  segregatedPhaseInterface(phase1, phase2),
62  displacedPhaseInterface(phase1, phase2, displacing)
63 {}
64 
65 
67 (
68  const phaseSystem& fluid,
69  const word& name
70 )
71 :
72  phaseInterface(fluid, name),
73  segregatedPhaseInterface(fluid, name),
74  displacedPhaseInterface(fluid, name)
75 {}
76 
77 
78 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
79 
81 {}
82 
83 
84 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
85 
87 {
88  return
90  + '_'
92  + '_'
93  + displacing().name();
94 }
95 
96 
97 // ************************************************************************* //
virtual word name() const
Name.
static word separator()
Return the separator that delimits this interface&#39;s name.
Macros for easy insertion into run-time selection tables.
static word separator()
Return the separator that delimits this interface&#39;s name.
A class for handling words, derived from string.
Definition: word.H:59
virtual ~segregatedDisplacedPhaseInterface()
Destructor.
phaseSystem & fluid
Definition: createFields.H:11
segregatedDisplacedPhaseInterface(const phaseModel &phase1, const phaseModel &phase2, const phaseModel &displacing)
Construct from phases.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
virtual word name() const
Name.
#define defineTypeNameAndDebugWithName(Type, Name, DebugSwitch)
Define the typeName and debug information, lookup as Name.
Definition: className.H:124
Namespace for OpenFOAM.