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
data_out.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2017 - 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#ifndef dealii_particles_data_out_h
16#define dealii_particles_data_out_h
17
18#include <deal.II/base/config.h>
19
21
23
24#include <string>
25#include <vector>
26
28
29namespace Particles
30{
31 template <int dim, int spacedim>
32 class ParticleHandler;
33
45 template <int dim, int spacedim = dim>
46 class DataOut : public ::DataOutInterface<0, spacedim>
47 {
48 public:
52 DataOut() = default;
53
57 ~DataOut() = default;
58
59
75 void
77 const std::vector<std::string> &data_component_names = {},
78 const std::vector<
81
82 protected:
87 virtual const std::vector<DataOutBase::Patch<0, spacedim>> &
88 get_patches() const override;
89
94 virtual std::vector<std::string>
95 get_dataset_names() const override;
96
97
104 virtual std::vector<
105 std::tuple<unsigned int,
106 unsigned int,
107 std::string,
109 get_nonscalar_data_ranges() const override;
110
111 private:
117 std::vector<DataOutBase::Patch<0, spacedim>> patches;
118
122 std::vector<std::string> dataset_names;
123
129 std::vector<DataComponentInterpretation::DataComponentInterpretation>
131 };
132
133} // namespace Particles
134
136
137#endif
virtual const std::vector< DataOutBase::Patch< 0, spacedim > > & get_patches() const override
Definition data_out.cc:107
std::vector< std::string > dataset_names
Definition data_out.h:122
virtual std::vector< std::tuple< unsigned int, unsigned int, std::string, DataComponentInterpretation::DataComponentInterpretation > > get_nonscalar_data_ranges() const override
Definition data_out.cc:129
std::vector< DataOutBase::Patch< 0, spacedim > > patches
Definition data_out.h:117
std::vector< DataComponentInterpretation::DataComponentInterpretation > data_component_interpretations
Definition data_out.h:130
void build_patches(const Particles::ParticleHandler< dim, spacedim > &particles, const std::vector< std::string > &data_component_names={}, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretations={})
Definition data_out.cc:28
virtual std::vector< std::string > get_dataset_names() const override
Definition data_out.cc:116
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473