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  );
49 }
50 
51 
52 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
53 
54 Foam::oversetGAMGInterfaceField::oversetGAMGInterfaceField
55 (
56  const GAMGInterface& GAMGCp,
57  const lduInterfaceField& fineInterface
58 )
59 :
60  GAMGInterfaceField(GAMGCp, fineInterface)
61 {}
62 
63 
64 Foam::oversetGAMGInterfaceField::oversetGAMGInterfaceField
65 (
66  const GAMGInterface& GAMGCp,
67  const bool doTransform,
68  const int rank
69 )
70 :
71  GAMGInterfaceField(GAMGCp, doTransform, rank)
72 {}
73 
74 
75 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
76 
78 {}
79 
80 
81 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
82 
84 (
85  solveScalarField& result,
86  const bool add,
87  const lduAddressing& lduAddr,
88  const label patchId,
89  const solveScalarField& psiInternal,
90  const scalarField& coeffs,
91  const direction cmpt,
93 ) const
94 {}
95 
96 
97 // ************************************************************************* //
label patchId(-1)
uint8_t direction
Definition: direction.H:48
commsTypes
Communications types.
Definition: UPstream.H:74
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.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
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.
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Abstract base class for GAMG agglomerated interfaces.
Definition: GAMGInterface.H:50
virtual ~oversetGAMGInterfaceField()
Destructor.
Abstract base class for GAMG agglomerated interface fields.
The class contains the addressing required by the lduMatrix: upper, lower and losort.
Namespace for OpenFOAM.