Loading...
Searching...
No Matches
surfZoneIOList.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) 2018-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::surfZoneIOList
29
30Description
31 IOobject for a surfZoneList
32
33SourceFiles
34 surfZoneIOList.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef Foam_surfZoneIOList_H
39#define Foam_surfZoneIOList_H
40
41#include "surfZoneList.H"
42#include "regIOobject.H"
43#include "typeInfo.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
50/*---------------------------------------------------------------------------*\
51 Class surfZoneIOList Declaration
52\*---------------------------------------------------------------------------*/
53
55:
56 public regIOobject,
57 public surfZoneList
58{
59 // Private Member Functions
60
61 //- Return true if contents were read
62 //- (controlled by IOobject readOption flags).
63 bool readIOcontents();
64
65
66public:
67
68 //- Runtime type information
69 TypeNameNoDebug("surfZoneList");
70
71
72 // Constructors
73
74 //- Construct from IOobject
75 explicit surfZoneIOList(const IOobject& io);
76
77 //- Construct from IOobject and surfZoneList content
78 surfZoneIOList(const IOobject& io, const UList<surfZone>& content);
79
80 //- Construct from IOobject and transferring surfZoneList content
81 surfZoneIOList(const IOobject& io, surfZoneList&& content);
82
83
84 //- Destructor
85 virtual ~surfZoneIOList() = default;
86
87
88 // Member Functions
89
90 //- The writeData function - required by regIOobject
91 bool writeData(Ostream& os) const;
93
94 // Member Operators
95
96 //- Copy assignment of entries
97 void operator=(const surfZoneIOList& rhs);
98
99 //- Copy or move assignment of entries
100 using surfZoneList::operator=;
101};
102
103
104// Global Operators
105
106//- Write surfZone list using its writeData() method
108
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112} // End namespace Foam
113
114// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115
116#endif
117
118// ************************************************************************* //
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition IOobject.H:191
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition UList.H:89
regIOobject(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
Definition regIOobject.C:43
IOobject for a surfZoneList.
surfZoneIOList(const IOobject &io)
Construct from IOobject.
void operator=(const surfZoneIOList &rhs)
Copy assignment of entries.
bool writeData(Ostream &os) const
The writeData function - required by regIOobject.
virtual ~surfZoneIOList()=default
Destructor.
TypeNameNoDebug("surfZoneList")
Runtime type information.
OBJstream os(runTime.globalPath()/outputName)
const auto & io
Namespace for OpenFOAM.
List< surfZone > surfZoneList
List of surfZone.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.
Definition typeInfo.H:61