Reference documentation for deal.II version GIT relicensing-439-g5fda5c893d 2024-04-20 06:50:02+00:00
\(\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// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2010 - 2022 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
16#ifndef dealii_dof_output_operator_h
17#define dealii_dof_output_operator_h
18
19#include <deal.II/base/config.h>
20
23
24#include <deal.II/base/event.h>
25
27
29
30#include <fstream>
31
33
34#ifndef DOXYGEN
36#endif
37
38namespace Algorithms
39{
44 template <typename VectorType, int dim, int spacedim = dim>
45 class DoFOutputOperator : public OutputOperator<VectorType>
46 {
47 public:
48 /*
49 * Constructor. The <tt>filename</tt> is the common base name of
50 * all files and the argument <tt>digits</tt> should be the number
51 * of digits of the highest number in the sequence. File names by
52 * default have the form "outputNNN" with NNN the number set by the
53 * last step command. Numbers with less digits are filled with
54 * zeros from the left.
55 */
56 DoFOutputOperator(const std::string &filename_base = std::string("output"),
57 const unsigned int digits = 3);
58
59 void
61 void
63
65 operator<<(const AnyData &vectors) override;
66
67 private:
71
72 const std::string filename_base;
73 const unsigned int digits;
74
76 };
77
78 template <typename VectorType, int dim, int spacedim>
79 inline void
81 const DoFHandler<dim, spacedim> &dof_handler)
82 {
83 dof = &dof_handler;
84 }
85} // namespace Algorithms
86
87
89
90#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:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503