procLduInterface.H
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) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2024 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::procLduInterface
29 
30 Description
31  IO interface for processorLduInterface
32 
33 SourceFiles
34  procLduInterface.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_procLduInterface_H
39 #define Foam_procLduInterface_H
40 
41 #include "labelList.H"
42 #include "scalarField.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 // Forward Declarations
50 class lduInterfaceField;
51 class procLduInterface;
52 
53 Istream& operator>>(Istream&, procLduInterface&);
54 Ostream& operator<<(Ostream&, const procLduInterface&);
55 
56 /*---------------------------------------------------------------------------*\
57  Class procLduInterface Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 class procLduInterface
61 {
62  // Private Data
63 
64  labelList faceCells_;
65  scalarField coeffs_;
66  label myProcNo_;
67  label neighbProcNo_;
68  label tag_;
69  label comm_;
70 
71 public:
72 
73  //- Friendship
74  friend class LUscalarMatrix;
75 
76 
77  // Generated Methods
78 
79  //- No copy construct
80  procLduInterface(const procLduInterface&) = delete;
81 
82 
83  // Constructors
84 
86  (
88  const scalarField& coeffs
89  );
90 
91  //- Read construct from Istream
92  explicit procLduInterface(Istream& is);
93 
95  {
97  return nullptr;
98  }
99 
101  {
103  }
104 
105 
106  // IO Operations
107 
108  void read(Istream& is);
109  void write(Ostream& os) const;
110 
112  friend Ostream& operator<<(Ostream&, const procLduInterface&);
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
IO interface for processorLduInterface.
Class to perform the LU decomposition on a symmetric matrix.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
interfaceProperties interface(alpha1, U, thermo->transportPropertiesDict())
An abstract base class for implicitly-coupled interface fields e.g. processor and cyclic patch fields...
friend Ostream & operator<<(Ostream &, const procLduInterface &)
Istream & operator>>(Istream &, directionInfo &)
void write(Ostream &os) const
autoPtr< procLduInterface > clone()
procLduInterface(const procLduInterface &)=delete
No copy construct.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
friend Istream & operator>>(Istream &, procLduInterface &)
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:77
static autoPtr< procLduInterface > New(Istream &is)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
Definition: autoPtr.H:178
void read(Istream &is)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:696
Namespace for OpenFOAM.