ASPECT
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
109
template
<
int
dim>
110
class
AdvectionSystemBoundaryFace
:
public
Assemblers::Interface
<dim>,
111
public
SimulatorAccess
<dim>
112
{
113
public
:
114
void
115
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
116
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
117
};
118
123
template
<
int
dim>
124
class
AdvectionSystemInteriorFace
:
public
Assemblers::Interface
<dim>,
125
public
SimulatorAccess
<dim>
126
{
127
public
:
128
void
129
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
130
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
131
};
132
}
133
}
134
135
136
#endif
aspect::Assemblers::AdvectionSystemInteriorFace
Definition:
advection.h:124
aspect::Assemblers::DarcySystem
Definition:
advection.h:50
aspect::Assemblers::AdvectionSystemBoundaryFace
Definition:
advection.h:110
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::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:45
aspect
Definition:
compat.h:59
aspect::Assemblers::Interface
Definition:
simulator.h:123
interface.h
aspect::internal::Assembly::Scratch::ScratchBase
Definition:
interface.h:59
aspect::MaterialModel::MaterialModelOutputs
Definition:
interface.h:480
aspect::Assemblers::AdvectionSystem
Definition:
advection.h:37
aspect::internal::Assembly::CopyData::CopyDataBase
Definition:
interface.h:354
aspect::Assemblers::AdvectionStabilizationInterface
Definition:
interface.h:625
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