dispersedDisplacedPhaseInterface.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 
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
36  (
37  dispersedDisplacedPhaseInterface,
38  separatorsToTypeName
39  ({
42  }).c_str(),
43  0
44  );
46  (
47  phaseInterface,
48  dispersedDisplacedPhaseInterface,
49  word
50  );
51 }
52 
53 
54 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
55 
57 (
58  const phaseModel& dispersed,
59  const phaseModel& continuous,
60  const phaseModel& displacing
61 )
62 :
63  phaseInterface(dispersed, continuous),
64  dispersedPhaseInterface(dispersed, continuous),
65  displacedPhaseInterface(dispersed, continuous, displacing)
66 {}
67 
68 
70 (
71  const phaseSystem& fluid,
72  const word& name
73 )
74 :
75  phaseInterface(fluid, name),
76  dispersedPhaseInterface(fluid, name),
77  displacedPhaseInterface(fluid, name)
78 {}
79 
80 
81 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
82 
84 {}
85 
86 
87 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
88 
90 {
91  return
93  + '_'
95  + '_'
96  + displacing().name();
97 }
98 
99 
100 // ************************************************************************* //
static word separator()
Return the separator that delimits this interface&#39;s name.
virtual word name() const
Name.
virtual word name() const
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
phaseSystem & fluid
Definition: createFields.H:11
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
dispersedDisplacedPhaseInterface(const phaseModel &dispersed, const phaseModel &continuous, const phaseModel &displacing)
Construct from phases.
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
virtual ~dispersedDisplacedPhaseInterface()
Destructor.
#define defineTypeNameAndDebugWithName(Type, Name, DebugSwitch)
Define the typeName and debug information, lookup as Name.
Definition: className.H:124
Namespace for OpenFOAM.