All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
displacedSidedPhaseInterface.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-2023 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  (
36  separatorsToTypeName
37  ({
40  }).c_str(),
41  0
42  );
44  (
47  word
48  );
49 }
50 
51 
52 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
53 
55 (
56  const phaseModel& phase,
57  const phaseModel& otherPhase,
58  const phaseModel& displacing
59 )
60 :
61  phaseInterface(phase, otherPhase),
62  displacedPhaseInterface(phase, otherPhase, displacing),
63  sidedPhaseInterface(phase, otherPhase)
64 {}
65 
66 
68 (
69  const phaseSystem& fluid,
70  const word& name
71 )
72 :
73  phaseInterface(fluid, name),
76 {}
77 
78 
79 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
80 
82 {}
83 
84 
85 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
86 
88 {
89  return
91  + '_'
93  + '_'
94  + phase().name();
95 }
96 
97 
98 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Class to represent an interface between phases which has been displaced to some extent by a third pha...
static word separator()
Return the separator that delimits this interface's name.
virtual word name() const
Name.
Class to represent a certain side of an interface between phases, where the interface has been displa...
displacedSidedPhaseInterface(const phaseModel &phase, const phaseModel &otherPhase, const phaseModel &displacing)
Construct from phases.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
Class to represent a system of phases and model interfacial transfers between them.
Definition: phaseSystem.H:73
Class to represent a certain side of an interface between phases.
static word separator()
Return the separator that delimits this interface's name.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39
defineTypeNameAndDebugWithName(dispersedDisplacedPhaseInterface, separatorsToTypeName({ dispersedPhaseInterface::separator(), displacedPhaseInterface::separator() }).c_str(), 0)