oversetGAMGInterfaceField.C
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) 2021 OpenCFD Ltd.
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 \*---------------------------------------------------------------------------*/
27 
30 #include "lduMatrix.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36  defineTypeNameAndDebug(oversetGAMGInterfaceField, 0);
38  (
39  GAMGInterfaceField,
40  oversetGAMGInterfaceField,
41  lduInterface
42  );
44  (
45  GAMGInterfaceField,
46  oversetGAMGInterfaceField,
47  lduInterfaceField
48  );
50  (
51  GAMGInterfaceField,
52  oversetGAMGInterfaceField,
53  Istream
54  );
55 }
56 
57 
58 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
59 
60 Foam::oversetGAMGInterfaceField::oversetGAMGInterfaceField
61 (
62  const GAMGInterface& GAMGCp,
63  const lduInterfaceField& fineInterface
64 )
65 :
66  GAMGInterfaceField(GAMGCp, fineInterface)
67 {}
68 
69 
70 Foam::oversetGAMGInterfaceField::oversetGAMGInterfaceField
71 (
72  const GAMGInterface& GAMGCp,
73  const bool doTransform,
74  const int rank
75 )
76 :
77  GAMGInterfaceField(GAMGCp, doTransform, rank)
78 {}
79 
80 
81 Foam::oversetGAMGInterfaceField::oversetGAMGInterfaceField
82 (
83  const GAMGInterface& GAMGCp,
84  Istream& is
85 )
86 :
87  GAMGInterfaceField(GAMGCp, is)
88 {}
89 
90 
91 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
92 
94 {}
95 
96 
97 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
98 
100 (
101  solveScalarField& result,
102  const bool add,
103  const lduAddressing& lduAddr,
104  const label patchId,
105  const solveScalarField& psiInternal,
106  const scalarField& coeffs,
107  const direction cmpt,
108  const Pstream::commsTypes
109 ) const
110 {}
111 
112 
114 {}
115 
116 
117 // ************************************************************************* //
label patchId(-1)
uint8_t direction
Definition: direction.H:46
commsTypes
Communications types.
Definition: UPstream.H:72
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
An abstract base class for implicitly-coupled interface fields e.g. processor and cyclic patch fields...
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
virtual void updateInterfaceMatrix(solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
Update result field based on interface functionality.
Abstract base class for GAMG agglomerated interfaces.
Definition: GAMGInterface.H:50
virtual ~oversetGAMGInterfaceField()
Destructor.
::Foam::direction rank(const expressions::valueTypeCode) noexcept
The vector-space rank associated with given valueTypeCode.
Definition: exprTraits.C:70
Abstract base class for GAMG agglomerated interface fields.
The class contains the addressing required by the lduMatrix: upper, lower and losort.
virtual void write(Ostream &) const
Write to stream.
Namespace for OpenFOAM.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)