segregatedDisplacedSidedPhaseInterface.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 
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
37  (
38  segregatedDisplacedSidedPhaseInterface,
39  separatorsToTypeName
40  ({
44  }).c_str(),
45  0
46  );
48  (
49  phaseInterface,
50  segregatedDisplacedSidedPhaseInterface,
51  word
52  );
53 }
54 
55 
56 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
57 
60 (
61  const phaseModel& phase,
62  const phaseModel& otherPhase,
63  const phaseModel& displacing
64 )
65 :
66  phaseInterface(phase, otherPhase),
67  segregatedPhaseInterface(phase, otherPhase),
68  displacedPhaseInterface(phase, otherPhase, displacing),
69  sidedPhaseInterface(phase, otherPhase)
70 {}
71 
72 
75 (
76  const phaseSystem& fluid,
77  const word& name
78 )
79 :
80  phaseInterface(fluid, name),
81  segregatedPhaseInterface(fluid, name),
82  displacedPhaseInterface(fluid, name),
83  sidedPhaseInterface(fluid, name)
84 {}
85 
86 
87 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
88 
91 {}
92 
93 
94 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
95 
97 {
98  return
100  + '_'
102  + '_'
103  + displacing().name()
104  + '_'
106  + '_'
107  + phase().name();
108 }
109 
110 
111 // ************************************************************************* //
segregatedPhaseInterface(const phaseModel &phase1, const phaseModel &phase2)
Construct from phases.
virtual word name() const
Name.
phaseInterface(const phaseModel &phase1, const phaseModel &phase2)
Construct from phases.
static word separator()
Return the separator that delimits this interface&#39;s name.
const word & name() const
Definition: phaseModel.H:110
Macros for easy insertion into run-time selection tables.
displacedPhaseInterface(const phaseModel &phase1, const phaseModel &phase2, const phaseModel &displacing)
Construct from phases.
static word separator()
Return the separator that delimits this interface&#39;s name.
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
segregatedDisplacedSidedPhaseInterface(const phaseModel &phase, const phaseModel &otherPhase, const phaseModel &displacing)
Construct from phases.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const phaseModel & displacing() const
Displacing phase.
const phaseSystem & fluid() const
Return the phase system.
virtual ~segregatedDisplacedSidedPhaseInterface()
Destructor.
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.