lduSchedule.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 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::lduScheduleEntry
28 
29 Description
30  Struct to hold the patch index and the initialisation flag for
31  the patch schedule
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef lduSchedule_H
36 #define lduSchedule_H
37 
38 #include "List.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 // Forward declaration of friend functions and operators
46 
47 struct lduScheduleEntry;
48 Ostream& operator<<(Ostream& os, const lduScheduleEntry& lb);
49 
50 
51 /*---------------------------------------------------------------------------*\
52  Class lduSchedule Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 struct lduScheduleEntry
56 {
57  label patch;
58  bool init;
59 
60  friend bool operator!=
61  (
62  const lduScheduleEntry& lb1,
63  const lduScheduleEntry& lb2
64  )
65  {
66  return true;
67  }
68 
69  friend Ostream& operator<<(Ostream& os, const lduScheduleEntry& lb)
70  {
71  os << lb.patch << token::SPACE << lb.init;
72  return os;
73  }
74 };
75 
76 
78 
79 
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 
82 } // End namespace Foam
83 
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 
86 #endif
87 
88 // ************************************************************************* //
List.H
Foam::lduSchedule
List< lduScheduleEntry > lduSchedule
Definition: lduSchedule.H:76
Foam::lduScheduleEntry
Struct to hold the patch index and the initialisation flag for the patch schedule.
Definition: lduSchedule.H:54
Foam::operator<<
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:83
Foam::lduScheduleEntry::operator<<
friend Ostream & operator<<(Ostream &os, const lduScheduleEntry &lb)
Definition: lduSchedule.H:68
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::lduScheduleEntry::patch
label patch
Definition: lduSchedule.H:56
Foam::lduScheduleEntry::init
bool init
Definition: lduSchedule.H:57
Foam::List< lduScheduleEntry >
Foam::token::SPACE
Space [isspace].
Definition: token.H:125
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56