deal.II version GIT relicensing-6816-g8d70a4508a 2026-09-28 16:30:01+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
data_out.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2019 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12#ifndef dealii_particles_data_out_h
13#define dealii_particles_data_out_h
14
15#include <deal.II/base/config.h>
16
18
20
21#include <string>
22#include <tuple>
23#include <variant>
24#include <vector>
25
27
28namespace Particles
29{
30 template <int dim, int spacedim>
31 class ParticleHandler;
32
42 template <int dim, int spacedim = dim>
43 class DataOut : public ::DataOutInterface<0, spacedim>
44 {
45 public:
49 DataOut() = default;
50
54 ~DataOut() = default;
55
56
72 void
74 const std::vector<std::string> &data_component_names = {},
75 const std::vector<
78
79 protected:
84 virtual const std::vector<DataOutBase::Patch<0, spacedim>> &
85 get_patches() const override;
86
91 virtual std::vector<std::string>
92 get_dataset_names() const override;
93
94
101 virtual std::vector<
102 std::tuple<unsigned int,
103 unsigned int,
104 std::string,
106 get_nonscalar_data_ranges() const override;
107
108 private:
114 std::vector<DataOutBase::Patch<0, spacedim>> patches;
115
119 std::vector<std::string> dataset_names;
120
126 std::vector<DataComponentInterpretation::DataComponentInterpretation>
128 };
129
130} // namespace Particles
131
133
134#endif
virtual const std::vector< DataOutBase::Patch< 0, spacedim > > & get_patches() const override
Definition data_out.cc:104
std::vector< std::string > dataset_names
Definition data_out.h:119
virtual std::vector< std::tuple< unsigned int, unsigned int, std::string, DataComponentInterpretation::DataComponentInterpretation > > get_nonscalar_data_ranges() const override
Definition data_out.cc:126
std::vector< DataOutBase::Patch< 0, spacedim > > patches
Definition data_out.h:114
std::vector< DataComponentInterpretation::DataComponentInterpretation > data_component_interpretations
Definition data_out.h:127
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:25
virtual std::vector< std::string > get_dataset_names() const override
Definition data_out.cc:113
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39