Reference documentation for deal.II version GIT relicensing-822-gf1642d4ea5 2024-06-12 14:10: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
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
44 template <int dim, int spacedim = dim>
45 class DataOut : public ::DataOutInterface<0, spacedim>
46 {
47 public:
51 DataOut() = default;
52
56 ~DataOut() = default;
57
58
74 void
76 const std::vector<std::string> &data_component_names = {},
77 const std::vector<
80
81 protected:
86 virtual const std::vector<DataOutBase::Patch<0, spacedim>> &
87 get_patches() const override;
88
93 virtual std::vector<std::string>
94 get_dataset_names() const override;
95
96
103 virtual std::vector<
104 std::tuple<unsigned int,
105 unsigned int,
106 std::string,
108 get_nonscalar_data_ranges() const override;
109
110 private:
116 std::vector<DataOutBase::Patch<0, spacedim>> patches;
117
121 std::vector<std::string> dataset_names;
122
128 std::vector<DataComponentInterpretation::DataComponentInterpretation>
130 };
131
132} // namespace Particles
133
135
136#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:121
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:116
std::vector< DataComponentInterpretation::DataComponentInterpretation > data_component_interpretations
Definition data_out.h:129
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:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503