ASPECT
include
aspect
particle
generator
uniform_radial.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2015 - 2022 by the authors of the ASPECT code.
3
4
This file is part of ASPECT.
5
6
ASPECT is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
11
ASPECT is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with ASPECT; see the file LICENSE. If not see
18
<http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef _aspect_particle_generator_uniform_radial_h
22
#define _aspect_particle_generator_uniform_radial_h
23
24
#include <
aspect/particle/generator/interface.h
>
25
26
#include <array>
27
28
namespace
aspect
29
{
30
namespace
Particle
31
{
32
namespace
Generator
33
{
34
using namespace
dealii
;
35
50
template
<
int
dim>
51
class
UniformRadial
:
public
Interface
<dim>
52
{
53
public
:
61
void
62
generate_particles(Particles::ParticleHandler<dim> &particle_handler)
override
;
63
67
static
68
void
69
declare_parameters
(ParameterHandler &prm);
70
74
void
75
parse_parameters (ParameterHandler &prm)
override
;
76
77
private
:
78
84
std::array<double,dim>
P_min
;
85
91
std::array<double,dim>
P_max
;
92
96
Point<dim>
P_center
;
97
103
unsigned
int
radial_layers
;
104
111
types::particle_index
n_particles
;
112
};
113
114
}
115
}
116
}
117
118
#endif
aspect::Particle::Generator::UniformRadial::P_center
Point< dim > P_center
Definition:
uniform_radial.h:96
aspect::Particle::Generator::UniformRadial::P_max
std::array< double, dim > P_max
Definition:
uniform_radial.h:91
aspect::Particle::Generator::UniformRadial
Definition:
uniform_radial.h:51
interface.h
aspect::Particle::Generator::UniformRadial::radial_layers
unsigned int radial_layers
Definition:
uniform_radial.h:103
aspect::Particle::Generator::UniformRadial::n_particles
types::particle_index n_particles
Definition:
uniform_radial.h:111
aspect::Particle::Generator::declare_parameters
void declare_parameters(ParameterHandler &prm)
aspect
Definition:
compat.h:59
aspect::Particle::Generator::Interface
Definition:
manager.h:61
aspect::Particle::Generator::UniformRadial::P_min
std::array< double, dim > P_min
Definition:
uniform_radial.h:84
dealii
Definition:
compat.h:42