Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::procLduInterface
29
30Description
31 IO interface for processorLduInterface
32
33SourceFiles
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
46namespace Foam
47{
48
49// Forward Declarations
52
56/*---------------------------------------------------------------------------*\
57 Class procLduInterface Declaration
58\*---------------------------------------------------------------------------*/
59
61{
62 // Private Data
63
64 labelList faceCells_;
65 scalarField coeffs_;
66 label myProcNo_;
67 label neighbProcNo_;
68 label tag_;
69 label comm_;
70
71public:
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
103 }
104
105
106 // IO Operations
107
108 void read(Istream& is);
109 void write(Ostream& os) const;
110
114
115
116// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117
118} // End namespace Foam
119
120// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122#endif
123
124// ************************************************************************* //
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition Istream.H:60
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
Definition autoPtr.H:178
An abstract base class for implicitly-coupled interface fields e.g. processor and cyclic patch fields...
IO interface for processorLduInterface.
procLduInterface(const procLduInterface &)=delete
No copy construct.
autoPtr< procLduInterface > clone()
friend class LUscalarMatrix
Friendship.
friend Istream & operator>>(Istream &, procLduInterface &)
friend Ostream & operator<<(Ostream &, const procLduInterface &)
static autoPtr< procLduInterface > New(Istream &is)
void read(Istream &is)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition error.H:688
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
List< label > labelList
A List of labels.
Definition List.H:62
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
runTime write()
interfaceProperties interface(alpha1, U, thermo->transportPropertiesDict())