Loading...
Searching...
No Matches
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"
32// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34namespace Foam
35{
36namespace surfaceWriters
37{
44
45// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
50{}
51
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)
81{}
82
83
84// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
87{
88 return false;
89}
90
93{
94 return true;
95}
96
99{
100 return false;
101}
102
103
106 const meshedSurf& surf,
107 bool parallel
108)
109{}
110
111
113(
115 const faceList& faces,
116 bool parallel
117)
119
120
122{}
123
124
126{
127 wroteGeom_ = true;
129}
130
131
132// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133
134// Field writing methods
135defineSurfaceWriterWriteFields(Foam::surfaceWriters::nullWriter);
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:133
A class for handling file names.
Definition fileName.H:75
static const fileName null
An empty fileName.
Definition fileName.H:111
Abstract definition of a meshed surface defined by faces and points.
Definition meshedSurf.H:44
Base class for surface writers.
surfaceWriter()
Default construct.
bool wroteGeom_
Track if geometry has been written since the last open.
Suppresses output of geometry and fields.
virtual void open(const fileName &outputPath)
Open for output on specified path, using existing surface (no-op).
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 bool enabled() const
False: The null writer is never enabled, which lets the caller skip various (possibly expensive) prep...
virtual fileName write()
Write separate surface geometry to file.
A class for handling words, derived from Foam::string.
Definition word.H:66
#define defineTypeName(Type)
Define the typeName.
Definition className.H:113
const pointField & points
Namespace for surface writers.
Namespace for OpenFOAM.
List< face > faceList
List of faces.
Definition faceListFwd.H:41
vectorField pointField
pointField is a vectorField.
Convenience macros for instantiating surfaceWriter methods.
#define defineSurfaceWriterWriteFields(ThisClass)