ASPECT
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
a
c
d
e
f
g
h
i
m
n
o
p
r
s
t
w
x
z
Variables
Typedefs
Enumerations
+
Enumerator
a
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
+
Enumerations
a
c
d
f
k
l
m
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
z
Related Functions
+
Files
File List
+
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
include
aspect
simulator
assemblers
advection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2017 - 2023 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 doc/COPYING. If not see
18
<http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef _aspect_simulator_assemblers_advection_h
22
#define _aspect_simulator_assemblers_advection_h
23
24
25
#include <
aspect/simulator/assemblers/interface.h
>
26
#include <
aspect/simulator_access.h
>
27
28
namespace
aspect
29
{
30
namespace
Assemblers
31
{
36
template
<
int
dim>
37
class
AdvectionSystem
:
public
Assemblers::Interface
<dim>,
public
Assemblers::AdvectionStabilizationInterface
<dim>,
38
public
SimulatorAccess
<dim>
39
{
40
public
:
41
void
42
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
43
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
44
45
std::vector<double>
46
compute_residual
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base)
const override
;
47
};
48
49
template
<
int
dim>
50
class
DarcySystem
:
public
Assemblers::Interface
<dim>,
public
Assemblers::AdvectionStabilizationInterface
<dim>,
51
public
SimulatorAccess
<dim>
52
{
53
public
:
54
void
55
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
56
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
57
58
std::vector<double>
59
compute_residual
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base)
const override
;
60
61
void
62
create_additional_material_model_outputs
(
MaterialModel::MaterialModelOutputs<dim>
&outputs)
const override
;
63
};
64
69
template
<
int
dim>
70
class
DiffusionSystem
:
public
Assemblers::Interface
<dim>,
public
Assemblers::AdvectionStabilizationInterface
<dim>,
71
public
SimulatorAccess
<dim>
72
{
73
public
:
74
void
75
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
76
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
77
78
std::vector<double>
79
compute_residual
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base)
const override
;
80
81
virtual
82
std::vector<double>
83
advection_prefactors
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base)
const override
;
84
85
virtual
86
std::vector<double>
87
diffusion_prefactors
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base)
const override
;
88
};
89
95
template
<
int
dim>
96
class
AdvectionSystemBoundaryHeatFlux
:
public
Assemblers::Interface
<dim>,
97
public
SimulatorAccess
<dim>
98
{
99
public
:
100
void
101
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
102
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
103
};
104
110
template
<
int
dim>
111
class
AdvectionSystemRobinBoundary
:
public
Assemblers::Interface
<dim>,
112
public
SimulatorAccess
<dim>
113
{
114
public
:
115
void
116
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
117
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
118
};
119
124
template
<
int
dim>
125
class
AdvectionSystemBoundaryFace
:
public
Assemblers::Interface
<dim>,
126
public
SimulatorAccess
<dim>
127
{
128
public
:
129
void
130
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
131
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
132
};
133
138
template
<
int
dim>
139
class
AdvectionSystemInteriorFace
:
public
Assemblers::Interface
<dim>,
140
public
SimulatorAccess
<dim>
141
{
142
public
:
143
void
144
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
145
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
146
};
147
}
148
}
149
150
151
#endif
aspect::Assemblers::AdvectionSystemInteriorFace
Definition:
advection.h:139
aspect::Assemblers::DarcySystem
Definition:
advection.h:50
aspect::Assemblers::AdvectionSystemBoundaryFace
Definition:
advection.h:125
aspect::Assemblers::AdvectionSystem::compute_residual
std::vector< double > compute_residual(internal::Assembly::Scratch::ScratchBase< dim > &scratch_base) const override
aspect::Assemblers::DiffusionSystem
Definition:
advection.h:70
aspect::Assemblers::AdvectionSystemRobinBoundary
Definition:
advection.h:111
aspect::Assemblers::AdvectionSystemBoundaryHeatFlux
Definition:
advection.h:96
aspect::Assemblers::AdvectionStabilizationInterface::diffusion_prefactors
virtual std::vector< double > diffusion_prefactors(internal::Assembly::Scratch::ScratchBase< dim > &scratch_base) const
aspect::Assemblers::Interface::create_additional_material_model_outputs
virtual void create_additional_material_model_outputs(MaterialModel::MaterialModelOutputs< dim > &) const
simulator_access.h
aspect::SimulatorAccess
Definition:
plugins.h:47
aspect
Definition:
advection_field.h:30
aspect::Assemblers::Interface
Definition:
simulator.h:134
interface.h
aspect::internal::Assembly::Scratch::ScratchBase
Definition:
interface.h:57
aspect::MaterialModel::MaterialModelOutputs
Definition:
interface.h:512
aspect::Assemblers::AdvectionSystem
Definition:
advection.h:37
aspect::internal::Assembly::CopyData::CopyDataBase
Definition:
interface.h:352
aspect::Assemblers::AdvectionStabilizationInterface
Definition:
interface.h:624
aspect::Assemblers::AdvectionStabilizationInterface::advection_prefactors
virtual std::vector< double > advection_prefactors(internal::Assembly::Scratch::ScratchBase< dim > &scratch_base) const
aspect::Assemblers::AdvectionSystem::execute
void execute(internal::Assembly::Scratch::ScratchBase< dim > &scratch_base, internal::Assembly::CopyData::CopyDataBase< dim > &data_base) const override