ASPECT
include
aspect
simulator
assemblers
stokes.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2017 - 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 doc/COPYING. If not see
18
<http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef _aspect_simulator_assemblers_stokes_h
22
#define _aspect_simulator_assemblers_stokes_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
{
35
template
<
int
dim>
36
class
StokesPreconditioner
:
public
Assemblers::Interface
<dim>,
37
public
SimulatorAccess
<dim>
38
{
39
public
:
40
void
41
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
42
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
43
};
44
49
template
<
int
dim>
50
class
StokesCompressiblePreconditioner
:
public
Assemblers::Interface
<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
63
template
<
int
dim>
64
class
StokesIncompressibleTerms
:
public
Assemblers::Interface
<dim>,
65
public
SimulatorAccess
<dim>
66
{
67
public
:
68
void
69
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
70
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
71
75
void
create_additional_material_model_outputs
(
MaterialModel::MaterialModelOutputs<dim>
&outputs)
const override
;
76
};
77
82
template
<
int
dim>
83
class
StokesCompressibleStrainRateViscosityTerm
:
public
Assemblers::Interface
<dim>,
84
public
SimulatorAccess
<dim>
85
{
86
public
:
87
void
88
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
89
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
90
};
91
101
template
<
int
dim>
102
class
StokesReferenceDensityCompressibilityTerm
:
public
Assemblers::Interface
<dim>,
103
public
SimulatorAccess
<dim>
104
{
105
public
:
106
void
107
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
108
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
109
};
110
120
template
<
int
dim>
121
class
StokesImplicitReferenceDensityCompressibilityTerm
:
public
Assemblers::Interface
<dim>,
122
public
SimulatorAccess
<dim>
123
{
124
public
:
125
void
126
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
127
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
128
};
129
139
template
<
int
dim>
140
class
StokesIsentropicCompressionTerm
:
public
Assemblers::Interface
<dim>,
141
public
SimulatorAccess
<dim>
142
{
143
public
:
144
void
145
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
146
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
147
};
148
157
template
<
int
dim>
158
class
StokesProjectedDensityFieldTerm
:
public
Assemblers::Interface
<dim>,
159
public
SimulatorAccess
<dim>
160
{
161
public
:
162
void
163
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch,
164
internal::Assembly::CopyData::CopyDataBase<dim>
&data)
const override
;
165
};
166
167
180
template
<
int
dim>
181
class
StokesHydrostaticCompressionTerm
:
public
Assemblers::Interface
<dim>,
182
public
SimulatorAccess
<dim>
183
{
184
public
:
185
void
186
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
187
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
188
};
189
194
template
<
int
dim>
195
class
StokesBoundaryTraction
:
public
Assemblers::Interface
<dim>,
196
public
SimulatorAccess
<dim>
197
{
198
public
:
199
void
200
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
201
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
202
};
203
211
template
<
int
dim>
212
class
StokesPressureRHSCompatibilityModification
:
public
Assemblers::Interface
<dim>,
213
public
SimulatorAccess
<dim>
214
{
215
public
:
216
void
217
execute
(
internal::Assembly::Scratch::ScratchBase<dim>
&scratch_base,
218
internal::Assembly::CopyData::CopyDataBase<dim>
&data_base)
const override
;
219
};
220
}
221
}
222
223
224
#endif
aspect::Assemblers::StokesPreconditioner
Definition:
stokes.h:36
aspect::Assemblers::StokesProjectedDensityFieldTerm
Definition:
stokes.h:158
aspect::Assemblers::StokesHydrostaticCompressionTerm
Definition:
stokes.h:181
aspect::Assemblers::StokesCompressiblePreconditioner
Definition:
stokes.h:50
aspect::Assemblers::StokesIsentropicCompressionTerm
Definition:
stokes.h:140
aspect::Assemblers::StokesReferenceDensityCompressibilityTerm
Definition:
stokes.h:102
aspect::Assemblers::Interface::create_additional_material_model_outputs
virtual void create_additional_material_model_outputs(MaterialModel::MaterialModelOutputs< dim > &) const
simulator_access.h
aspect::Assemblers::StokesBoundaryTraction
Definition:
stokes.h:195
aspect::Assemblers::StokesPreconditioner::execute
void execute(internal::Assembly::Scratch::ScratchBase< dim > &scratch_base, internal::Assembly::CopyData::CopyDataBase< dim > &data_base) const override
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::Assemblers::StokesImplicitReferenceDensityCompressibilityTerm
Definition:
stokes.h:121
aspect::MaterialModel::MaterialModelOutputs
Definition:
interface.h:480
aspect::Assemblers::StokesPressureRHSCompatibilityModification
Definition:
stokes.h:212
aspect::internal::Assembly::CopyData::CopyDataBase
Definition:
interface.h:354
aspect::Assemblers::StokesIncompressibleTerms
Definition:
stokes.h:64
aspect::Assemblers::StokesCompressibleStrainRateViscosityTerm
Definition:
stokes.h:83