![]() |
Peano
|
A very simple example which demonstrates how to configure a patch-based Finite Volume solver in Peano4. More...
Variables | |
list | output_files = [ f for f in os.listdir(".") if f.endswith(".peano-patch-file") or f.endswith(".vtu") ] |
project = exahype2.Project( ["examples", "exahype2", "finitevolumes"], "finitevolumes", "." ) | |
int | patch_size = 23 |
int | unknowns = 9 |
float | time_step_size = 0.01 |
int | dimensions = 2 |
build_mode = peano4.output.CompileMode.Asserts | |
peano4_project = project.generate_Peano4_project() | |
success = peano4_project.run( [] ) | |
convert = peano4.visualisation.Convert( "solutionMHD", True ) | |
A very simple example which demonstrates how to configure a patch-based Finite Volume solver in Peano4.
The code relies on snippets from ExaHyPE2. However, it relies only on ExaHyPE's C/FORTRAN compute kernels, i.e. the sophisticated build environment of this H2020 project is not used. The solver simulates the simple MHD equations.
finitevolumes.build_mode = peano4.output.CompileMode.Asserts |
Definition at line 62 of file finitevolumes.py.
finitevolumes.convert = peano4.visualisation.Convert( "solutionMHD", True ) |
Definition at line 99 of file finitevolumes.py.
int finitevolumes.dimensions = 2 |
Definition at line 61 of file finitevolumes.py.
list finitevolumes.output_files = [ f for f in os.listdir(".") if f.endswith(".peano-patch-file") or f.endswith(".vtu") ] |
Definition at line 31 of file finitevolumes.py.
int finitevolumes.patch_size = 23 |
Definition at line 46 of file finitevolumes.py.
finitevolumes.peano4_project = project.generate_Peano4_project() |
Definition at line 82 of file finitevolumes.py.
finitevolumes.project = exahype2.Project( ["examples", "exahype2", "finitevolumes"], "finitevolumes", "." ) |
Definition at line 40 of file finitevolumes.py.
finitevolumes.success = peano4_project.run( [] ) |
Definition at line 95 of file finitevolumes.py.
float finitevolumes.time_step_size = 0.01 |
Definition at line 48 of file finitevolumes.py.
int finitevolumes.unknowns = 9 |
Definition at line 47 of file finitevolumes.py.