1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::processorGAMGInterfaceField
29 GAMG agglomerated processor interface field.
32 processorGAMGInterfaceField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef processorGAMGInterfaceField_H
37 #define processorGAMGInterfaceField_H
39 #include "GAMGInterfaceField.H"
40 #include "processorGAMGInterface.H"
41 #include "processorLduInterfaceField.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class processorGAMGInterfaceField Declaration
50 \*---------------------------------------------------------------------------*/
52 class processorGAMGInterfaceField
54 public GAMGInterfaceField,
55 public processorLduInterfaceField
59 //- Local reference cast into the processor interface
60 const processorGAMGInterface& procInterface_;
62 //- Is the transform required
65 //- Rank of component for transformation
69 // Private Member Functions
71 //- Disallow default bitwise copy construct
72 processorGAMGInterfaceField(const processorGAMGInterfaceField&);
74 //- Disallow default bitwise assignment
75 void operator=(const processorGAMGInterfaceField&);
80 //- Runtime type information
81 TypeName("processor");
86 //- Construct from GAMG interface and fine level interface field
87 processorGAMGInterfaceField
89 const GAMGInterface& GAMGCp,
90 const lduInterfaceField& fineInterface
96 virtual ~processorGAMGInterfaceField();
106 return procInterface_.size();
110 // Interface matrix update
112 //- Initialise neighbour matrix update
113 virtual void initInterfaceMatrixUpdate
115 const scalarField& psiInternal,
118 const scalarField& coeffs,
119 const direction cmpt,
120 const Pstream::commsTypes commsType
123 //- Update result field based on interface functionality
124 virtual void updateInterfaceMatrix
126 const scalarField& psiInternal,
129 const scalarField& coeffs,
130 const direction cmpt,
131 const Pstream::commsTypes commsType
135 //- Processor interface functions
137 //- Return processor number
138 virtual int myProcNo() const
140 return procInterface_.myProcNo();
143 //- Return neigbour processor number
144 virtual int neighbProcNo() const
146 return procInterface_.neighbProcNo();
149 //- Does the interface field perform the transfromation
150 virtual bool doTransform() const
155 //- Return face transformation tensor
156 virtual const tensorField& forwardT() const
158 return procInterface_.forwardT();
161 //- Return rank of component for transform
162 virtual int rank() const
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 } // End namespace Foam
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 // ************************************************************************* //