Generic Scenarios in physical Mode¤
apebench.scenarios.physical.Linear
¤
Bases: BaseScenario
Source code in apebench/scenarios/physical/_linear.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
a_coefs
class-attribute
instance-attribute
¤
a_coefs: tuple[float, ...] = (0.0, -0.25, 0.0, 0.0, 0.0)
get_scenario_name
¤
get_scenario_name() -> str
Source code in apebench/scenarios/physical/_linear.py
31 32 33 34 35 36 |
|
apebench.scenarios.physical.LinearSimple
¤
Bases: Linear
Source code in apebench/scenarios/physical/_linear.py
39 40 41 42 43 44 |
|
get_scenario_name
¤
get_scenario_name() -> str
Source code in apebench/scenarios/physical/_linear.py
31 32 33 34 35 36 |
|
apebench.scenarios.physical.FirstFour
¤
Bases: Linear
Source code in apebench/scenarios/physical/_linear.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
__post_init__
¤
__post_init__()
Source code in apebench/scenarios/physical/_linear.py
107 108 109 110 111 112 113 114 |
|
get_scenario_name
¤
get_scenario_name() -> str
Source code in apebench/scenarios/physical/_linear.py
116 117 |
|
apebench.scenarios.physical.Nonlinear
¤
Bases: BaseScenario
Uses the single channel convection mode to not have channels grow with spatial dimensions.
Source code in apebench/scenarios/physical/_nonlinear.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
a_coefs
class-attribute
instance-attribute
¤
a_coefs: tuple[float, ...] = (0.0, 0.0, 0.0003, 0.0, 0.0)
b_coefs
class-attribute
instance-attribute
¤
b_coefs: tuple[float, float, float] = (0.0, -0.125, 0.0)
_build_stepper
¤
_build_stepper(dt)
Source code in apebench/scenarios/physical/_nonlinear.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
get_ref_stepper
¤
get_ref_stepper()
Source code in apebench/scenarios/physical/_nonlinear.py
51 52 |
|
get_coarse_stepper
¤
get_coarse_stepper()
Source code in apebench/scenarios/physical/_nonlinear.py
54 55 |
|
get_scenario_name
¤
get_scenario_name() -> str
Source code in apebench/scenarios/physical/_nonlinear.py
57 58 |
|
apebench.scenarios.physical.Convection
¤
Bases: BaseScenario
Source code in apebench/scenarios/physical/_convection.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
a_coefs
class-attribute
instance-attribute
¤
a_coefs: tuple[float, ...] = (0.0, 0.0, 0.0003, 0.0, 0.0)
__post_init__
¤
__post_init__()
Source code in apebench/scenarios/physical/_convection.py
23 24 |
|
_build_stepper
¤
_build_stepper(dt)
Source code in apebench/scenarios/physical/_convection.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
get_ref_stepper
¤
get_ref_stepper()
Source code in apebench/scenarios/physical/_convection.py
49 50 |
|
get_coarse_stepper
¤
get_coarse_stepper() -> ex.BaseStepper
Source code in apebench/scenarios/physical/_convection.py
52 53 |
|
get_scenario_name
¤
get_scenario_name() -> str
Source code in apebench/scenarios/physical/_convection.py
55 56 57 58 59 60 |
|
apebench.scenarios.physical.Polynomial
¤
Bases: BaseScenario
Source code in apebench/scenarios/physical/_polynomial.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
a_coefs
class-attribute
instance-attribute
¤
a_coefs: tuple[float, ...] = (0.02, 0.0, 4e-06, 0.0, 0.0)
__post_init__
¤
__post_init__()
Source code in apebench/scenarios/physical/_polynomial.py
22 23 |
|
_build_stepper
¤
_build_stepper(dt)
Source code in apebench/scenarios/physical/_polynomial.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
get_ref_stepper
¤
get_ref_stepper()
Source code in apebench/scenarios/physical/_polynomial.py
46 47 |
|
get_coarse_stepper
¤
get_coarse_stepper()
Source code in apebench/scenarios/physical/_polynomial.py
49 50 |
|
get_scenario_name
¤
get_scenario_name() -> str
Source code in apebench/scenarios/physical/_polynomial.py
52 53 |
|