1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::processorGAMGInterfaceField
28 GAMG agglomerated processor interface field.
31 processorGAMGInterfaceField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef processorGAMGInterfaceField_H
36 #define processorGAMGInterfaceField_H
38 #include "GAMGInterfaceField.H"
39 #include "processorGAMGInterface.H"
40 #include "processorLduInterfaceField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class processorGAMGInterfaceField Declaration
49 \*---------------------------------------------------------------------------*/
51 class processorGAMGInterfaceField
53 public GAMGInterfaceField,
54 public processorLduInterfaceField
58 //- Local reference cast into the processor interface
59 const processorGAMGInterface& procInterface_;
61 //- Is the transform required
64 //- Rank of component for transformation
68 // Private Member Functions
70 //- Disallow default bitwise copy construct
71 processorGAMGInterfaceField(const processorGAMGInterfaceField&);
73 //- Disallow default bitwise assignment
74 void operator=(const processorGAMGInterfaceField&);
79 //- Runtime type information
80 TypeName("processor");
85 //- Construct from GAMG interface and fine level interface field
86 processorGAMGInterfaceField
88 const GAMGInterface& GAMGCp,
89 const lduInterfaceField& fineInterfaceField
95 virtual ~processorGAMGInterfaceField();
105 return procInterface_.size();
109 // Coupled interface matrix update
111 //- Transform neighbour field
112 virtual void transformCoupleField
118 processorLduInterfaceField::transformCoupleField(pnf, cmpt);
121 //- Initialise neighbour matrix update
122 virtual void initInterfaceMatrixUpdate
124 const scalarField& psiInternal,
127 const scalarField& coeffs,
128 const direction cmpt,
129 const Pstream::commsTypes commsType,
130 const bool switchToLhs
133 //- Update result field based on interface functionality
134 virtual void updateInterfaceMatrix
136 const scalarField& psiInternal,
139 const scalarField& coeffs,
140 const direction cmpt,
141 const Pstream::commsTypes commsType,
142 const bool switchToLhs
146 //- Processor interface functions
148 //- Return processor number
149 virtual int myProcNo() const
151 return procInterface_.myProcNo();
154 //- Return neigbour processor number
155 virtual int neighbProcNo() const
157 return procInterface_.neighbProcNo();
160 //- Does the interface field perform the transfromation
161 virtual bool doTransform() const
166 //- Return face transformation tensor
167 virtual const tensorField& forwardT() const
169 return procInterface_.forwardT();
172 //- Return rank of component for transform
173 virtual int rank() const
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 } // End namespace Foam
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 // ************************************************************************* //