deal.II version GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+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: LGPL-2.1-or-later
4// Copyright (C) 2019 - 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#ifndef dealii_particles_data_out_h
15#define dealii_particles_data_out_h
16
17#include <deal.II/base/config.h>
18
20
22
23#include <string>
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:106
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:128
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:27
virtual std::vector< std::string > get_dataset_names() const override
Definition data_out.cc:115
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499