nullCoordSetWriter.C
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) 2022 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
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\*---------------------------------------------------------------------------*/
27
28#include "nullCoordSetWriter.H"
31
32// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33
34namespace Foam
35{
36namespace coordSetWriters
37{
41}
42}
43
44
45// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46
48:
50{}
51
52
54:
56{}
57
58
60(
61 const coordSet& coords,
62 const fileName& outputPath,
63 const dictionary& options
64)
65:
67{}
68
69
71(
72 const UPtrList<coordSet>& tracks,
73 const fileName& outputPath,
74 const dictionary& options
75)
76:
78{}
79
80
81// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
82
84{}
85
86
87// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
88
90{
91 return false;
92}
93
94
96{
97 return false;
98}
99
100
102{
103 return false;
104}
105
106
108{
109 return true;
110}
111
112
114(
115 const coordSet* coords
116)
117{}
118
119
121(
122 const coordSet& coords
123)
124{}
125
126
128(
129 const UPtrList<coordSet>& tracks
130)
131{}
132
133
135{
136 return fileName();
137}
138
139
141{}
142
143
144// Foam::fileName Foam::coordSetWriters::nullWriter::write()
145// {
146// wroteGeom_ = true;
147// return fileName::null;
148// }
149
150
151// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152
153// Field writing methods
155
156
157// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Definition: UPtrList.H:71
Base class for writing coordSet(s) and tracks with fields.
A coordSet(s) writer with suppressed output.
virtual bool buffering() const
False: no internal buffering possible.
virtual bool needsUpdate() const
False: never needs an update.
virtual void setTracks(const UPtrList< coordSet > &)
Set tracks (no-op).
virtual bool wroteData() const
True: like a /dev/null device.
virtual void setCoordinates(const coordSet *)
Set coordinates (no-op).
Holds list of sampling positions.
Definition: coordSet.H:56
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A class for handling file names.
Definition: fileName.H:76
A class for handling words, derived from Foam::string.
Definition: word.H:68
#define defineTypeName(Type)
Define the typeName.
Definition: className.H:96
Convenience macros for instantiating coordSetWriter methods.
#define defineCoordSetWriterWriteFields(ThisClass)
Namespace for OpenFOAM.
static constexpr char open
Definition: FlatOutput.H:73