Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
dof_output_operator.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2010 - 2022 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16
17#ifndef dealii_dof_output_operator_h
18#define dealii_dof_output_operator_h
19
20#include <deal.II/base/config.h>
21
24
25#include <deal.II/base/event.h>
26
28
30
31#include <fstream>
32
34
35#ifndef DOXYGEN
37#endif
38
39namespace Algorithms
40{
45 template <typename VectorType, int dim, int spacedim = dim>
46 class DoFOutputOperator : public OutputOperator<VectorType>
47 {
48 public:
49 /*
50 * Constructor. The <tt>filename</tt> is the common base name of
51 * all files and the argument <tt>digits</tt> should be the number
52 * of digits of the highest number in the sequence. File names by
53 * default have the form "outputNNN" with NNN the number set by the
54 * last step command. Numbers with less digits are filled with
55 * zeros from the left.
56 */
57 DoFOutputOperator(const std::string &filename_base = std::string("output"),
58 const unsigned int digits = 3);
59
60 void
62 void
64
66 operator<<(const AnyData &vectors) override;
67
68 private:
72
73 const std::string filename_base;
74 const unsigned int digits;
75
77 };
78
79 template <typename VectorType, int dim, int spacedim>
80 inline void
82 const DoFHandler<dim, spacedim> &dof_handler)
83 {
84 dof = &dof_handler;
85 }
86} // namespace Algorithms
87
88
90
91#endif
SmartPointer< const DoFHandler< dim, spacedim >, DoFOutputOperator< VectorType, dim, spacedim > > dof
void parse_parameters(ParameterHandler &param)
void initialize(const DoFHandler< dim, spacedim > &dof_handler)
DoFOutputOperator(const std::string &filename_base=std::string("output"), const unsigned int digits=3)
virtual OutputOperator< VectorType > & operator<<(const AnyData &vectors) override
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473