jplotSetWriter.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-2016 OpenFOAM Foundation
9  Copyright (C) 2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::jplotSetWriter
29 
30 SourceFiles
31  jplotSetWriter.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef jplotSetWriter_H
36 #define jplotSetWriter_H
37 
38 #include "writer.H"
39 #include "vector.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class jplotSetWriter Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 template<class Type>
51 class jplotSetWriter
52 :
53  public writer<Type>
54 {
55 
56  // Private Member Functions
57 
58  //- Write header
59  Ostream& writeHeader(Ostream&) const;
60 
61 public:
62 
63  //- Runtime type information
64  TypeName("jplot");
65 
66 
67  // Constructors
68 
69  //- Default construct
71 
72  //- Construct with dictionary
73  explicit jplotSetWriter(const dictionary& dict);
74 
75 
76  //- Destructor
77  virtual ~jplotSetWriter() = default;
78 
79 
80  // Member Functions
81 
82  virtual fileName getFileName
83  (
84  const coordSet&,
85  const wordList&
86  ) const;
87 
88  virtual void write
89  (
90  const coordSet&,
91  const wordList&,
92  const List<const Field<Type>*>&,
93  Ostream&
94  ) const;
95 
96  virtual void write
97  (
98  const bool writeTracks,
99  const List<scalarField>& times,
100  const PtrList<coordSet>& tracks,
101  const wordList& valueSetNames,
102  const List<List<Field<Type>>>& valueSets,
103  Ostream&
104  ) const
105  {
107  }
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #ifdef NoRepository
118  #include "jplotSetWriter.C"
119 #endif
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Foam::fileName
A class for handling file names.
Definition: fileName.H:71
Foam::jplotSetWriter
Definition: jplotSetWriter.H:45
Foam::jplotSetWriter::jplotSetWriter
jplotSetWriter()
Definition: jplotSetWriter.C:43
jplotSetWriter.C
NotImplemented
#define NotImplemented
Definition: error.H:553
Foam::Field< Type >
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: List.H:55
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::jplotSetWriter::write
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
Definition: jplotSetWriter.C:71
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:119
Foam::jplotSetWriter::~jplotSetWriter
virtual ~jplotSetWriter()=default
Foam::writer
Base class for graphics format writing. Entry points are.
Definition: writer.H:77
Foam::coordSet
Holds list of sampling positions.
Definition: coordSet.H:49
Foam
Definition: atmBoundaryLayer.C:26
Foam::jplotSetWriter::TypeName
TypeName("jplot")
Foam::jplotSetWriter::getFileName
virtual fileName getFileName(const coordSet &, const wordList &) const
Definition: jplotSetWriter.C:60
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:58
vector.H
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:52
writer.H