Reference documentation for deal.II version 8.5.0
Main Page
Tutorial
Code gallery
Modules
Namespaces
Classes
Related Pages
Files
dealii.org
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
deal.II
numerics
dof_output_operator.h
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2010 - 2015 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 at
12
// the top level of the deal.II distribution.
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
#include <deal.II/base/parameter_handler.h>
22
#include <deal.II/algorithms/any_data.h>
23
#include <deal.II/base/event.h>
24
#include <deal.II/algorithms/operator.h>
25
#include <deal.II/dofs/dof_handler.h>
26
#include <deal.II/numerics/data_out.h>
27
28
#include <fstream>
29
30
DEAL_II_NAMESPACE_OPEN
31
32
namespace
Algorithms
33
{
38
template
<
typename
VectorType,
int
dim,
int
spacedim=dim>
39
class
DoFOutputOperator
:
public
OutputOperator
<VectorType>
40
{
41
public
:
42
/*
43
* Constructor. The <tt>filename</tt> is the common base name of
44
* all files and the argument <tt>digits</tt> should be the number
45
* of digits of the highest number in the sequence. File names by
46
* default have the form "outputNNN" with NNN the number set by the
47
* last step command. Numbers with less digits are filled with
48
* zeros from the left.
49
*/
50
DoFOutputOperator
(
const
std::string filename_base = std::string(
"output"
),
51
const
unsigned
int
digits = 3);
52
53
void
parse_parameters(
ParameterHandler
¶m);
54
void
initialize (
const
DoFHandler<dim, spacedim>
&dof_handler);
55
56
virtual
OutputOperator<VectorType>
&
57
operator <<
(
const
AnyData
&vectors);
58
59
private
:
60
SmartPointer<const DoFHandler<dim, spacedim>
,
61
DoFOutputOperator<VectorType, dim, spacedim>
> dof;
62
63
const
std::string filename_base;
64
const
unsigned
int
digits;
65
66
DataOut<dim>
out;
67
};
68
69
template
<
typename
VectorType,
int
dim,
int
spacedim>
70
inline
void
71
DoFOutputOperator<VectorType, dim, spacedim>::initialize
(
const
DoFHandler<dim, spacedim>
&dof_handler)
72
{
73
dof = &dof_handler;
74
}
75
}
76
77
78
DEAL_II_NAMESPACE_CLOSE
79
80
#endif
SmartPointer
Definition:
smartpointer.h:63
Algorithms::DoFOutputOperator
Definition:
dof_output_operator.h:39
Algorithms::OutputOperator
Definition:
operator.h:107
ParameterHandler
Definition:
parameter_handler.h:1559
Algorithms::DoFOutputOperator::operator<<
virtual OutputOperator< VectorType > & operator<<(const AnyData &vectors)
DataOut< dim >
AnyData
Definition:
any_data.h:35
DoFHandler
Definition:
block_info.h:29
Generated by
1.8.6