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 -------------------------------------------------------------------------------
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 \*---------------------------------------------------------------------------*/
27 
28 #include "nullCoordSetWriter.H"
29 #include "coordSetWriterMethods.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 namespace coordSetWriters
37 {
38  defineTypeName(nullWriter);
39  addToRunTimeSelectionTable(coordSetWriter, nullWriter, word);
41 }
42 }
43 
44 
45 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46 
48 :
50 {}
51 
52 
54 :
55  nullWriter()
56 {}
57 
58 
60 (
61  const coordSet& coords,
62  const fileName& outputPath,
63  const dictionary& options
64 )
65 :
66  nullWriter()
67 {}
68 
69 
71 (
72  const UPtrList<coordSet>& tracks,
73  const fileName& outputPath,
74  const dictionary& options
75 )
76 :
77  nullWriter()
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 
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 
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 // ************************************************************************* //
addToRunTimeSelectionTable(coordSetWriter, abaqusWriter, word)
A class for handling file names.
Definition: fileName.H:72
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
virtual bool needsUpdate() const
False: never needs an update.
virtual void setTracks(const UPtrList< coordSet > &)
Set tracks (no-op).
defineTypeName(abaqusWriter)
defineCoordSetWriterWriteFields(Foam::coordSetWriters::nullWriter)
Macros for easy insertion into run-time selection tables.
A coordSet(s) writer with suppressed output.
virtual void open(const fileName &outputPath)
Open for output on specified path, using existing content (no-op)
Convenience macros for instantiating coordSetWriter methods.
Holds list of sampling positions.
Definition: coordSet.H:49
Base class for writing coordSet(s) and tracks with fields.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Definition: HashTable.H:106
virtual fileName path() const
Characteristic output file name - information only. Always an empty fileName.
virtual bool enabled() const
False: The null writer is never enabled, which lets the caller skip various (possibly expensive) prep...
virtual bool buffering() const
False: no internal buffering possible.
virtual bool wroteData() const
True: like a /dev/null device.
virtual void setCoordinates(const coordSet *)
Set coordinates (no-op).
Namespace for OpenFOAM.