nullSurfaceWriter.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) 2019 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 "nullSurfaceWriter.H"
31
32// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33
34namespace Foam
35{
36namespace surfaceWriters
37{
41}
42}
43
44
45// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46
48:
50{}
51
52
54:
56{}
57
58
60(
61 const meshedSurf& surf,
62 const fileName& outputPath,
63 bool parallel,
64 const dictionary& options
65)
66:
68{}
69
70
72(
73 const pointField& points,
74 const faceList& faces,
75 const fileName& outputPath,
76 bool parallel,
77 const dictionary& options
78)
79:
81{}
82
83
84// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
85
87{
88 return false;
89}
90
91
93{
94 return true;
95}
96
97
99{
100 return false;
101}
102
103
105(
106 const meshedSurf& surf,
107 bool parallel
108)
109{}
110
111
113(
114 const pointField& points,
115 const faceList& faces,
116 bool parallel
117)
118{}
119
120
122{}
123
124
126{
127 wroteGeom_ = true;
128 return fileName::null;
129}
130
131
132// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133
134// Field writing methods
136
137
138// ************************************************************************* //
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 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
static const fileName null
An empty fileName.
Definition: fileName.H:102
Abstract definition of a meshed surface defined by faces and points.
Definition: meshedSurf.H:50
Base class for surface writers.
Suppresses output of geometry and fields.
virtual bool needsUpdate() const
False: never needs an update.
virtual void setSurface(const meshedSurf &s, bool parallel)
Change association with a surface (no-op).
virtual bool wroteData() const
True: like a /dev/null device.
virtual fileName write()
Write separate surface geometry to file.
A class for handling words, derived from Foam::string.
Definition: word.H:68
#define defineTypeName(Type)
Define the typeName.
Definition: className.H:96
const pointField & points
Namespace for OpenFOAM.
static constexpr char open
Definition: FlatOutput.H:73
Convenience macros for instantiating surfaceWriter methods.
#define defineSurfaceWriterWriteFields(ThisClass)