Peano
Loading...
Searching...
No Matches
AbstractRungeKuttaDGActionSet.py
Go to the documentation of this file.
1
# This file is part of the ExaHyPE2 project. For conditions of distribution and
2
# use, please see the copyright notice at www.peano-framework.org
3
4
5
from
peano4.solversteps.ActionSet
import
ActionSet
6
7
8
class
AbstractRungeKuttaDGActionSet
(
ActionSet
):
9
def
__init__
(self, solver):
10
"""
11
12
solver: RungeKuttaDG
13
Reference to creating class
14
15
"""
16
super(AbstractRungeKuttaDGActionSet, self).
__init__
(descend_invocation_order=1, parallel=
False
)
17
self.
_solver
= solver
18
pass
19
20
def
get_action_set_name
(self):
21
"""
22
23
You should replicate this function in each subclass, so you get
24
meaningful action set names (otherwise, it will be
25
AbstractFVActionSet0,1,2,...).
26
27
"""
28
return
__name__.replace(
".py"
,
""
).replace(
"."
,
"_"
)
29
30
def
user_should_modify_template
(self):
31
return
False
32
33
def
get_includes
(self):
34
return
(
35
"""
36
#include <functional>
37
#include "exahype2/dg/DGUtils.h"
38
#include "exahype2/dg/CellIntegral.h"
39
#include "exahype2/dg/Riemann.h"
40
#include "exahype2/dg/BoundaryConditions.h"
41
"""
42
+ self.
_solver
._get_default_includes()
43
+ self.
_solver
.user_action_set_includes
44
)
exahype2.solvers.rkdg.actionsets.AbstractRungeKuttaDGActionSet.AbstractRungeKuttaDGActionSet
Definition
AbstractRungeKuttaDGActionSet.py:8
exahype2.solvers.rkdg.actionsets.AbstractRungeKuttaDGActionSet.AbstractRungeKuttaDGActionSet.get_action_set_name
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
Definition
AbstractRungeKuttaDGActionSet.py:20
exahype2.solvers.rkdg.actionsets.AbstractRungeKuttaDGActionSet.AbstractRungeKuttaDGActionSet.user_should_modify_template
user_should_modify_template(self)
Is the user allowed to modify the output.
Definition
AbstractRungeKuttaDGActionSet.py:30
exahype2.solvers.rkdg.actionsets.AbstractRungeKuttaDGActionSet.AbstractRungeKuttaDGActionSet.get_includes
get_includes(self)
Return include statements that you need.
Definition
AbstractRungeKuttaDGActionSet.py:33
exahype2.solvers.rkdg.actionsets.AbstractRungeKuttaDGActionSet.AbstractRungeKuttaDGActionSet._solver
_solver
Definition
AbstractRungeKuttaDGActionSet.py:17
exahype2.solvers.rkdg.actionsets.AbstractRungeKuttaDGActionSet.AbstractRungeKuttaDGActionSet.__init__
__init__(self, solver)
solver: RungeKuttaDG Reference to creating class
Definition
AbstractRungeKuttaDGActionSet.py:9
peano4.solversteps.ActionSet.ActionSet
Action set (reactions to events)
Definition
ActionSet.py:6
python
exahype2
solvers
rkdg
actionsets
AbstractRungeKuttaDGActionSet.py
Generated on Fri Apr 11 2025 10:17:39 for Peano by
1.10.0