![]() |
Peano
|
Resting lake scenario for the shallow water equations. More...
Public Member Functions | |
def | __init__ (self, initial_conditions="sinusoidal") |
def | initial_conditions (self) |
def | analytical_solution (self) |
![]() | |
def | boundary_conditions (self) |
def | refinement_criterion (self) |
def | set_global_simulation_parameters (self, project) |
Private Attributes | |
_init | |
Static Private Attributes | |
float | _plot_dt = 0.0 |
float | _offset = -0.5 |
float | _domain_size = 1.0 |
bool | _periodic_bc = True |
int | _dimensions = 2 |
_equation = SWE_W_Bathymetry() | |
float | _end_time = 1.0 |
Resting lake scenario for the shallow water equations.
The real water height H as defined by the sum of the water column h and the bathymetry b is constant over the entire domain, meaning that there should be no changes on the entire domain, but because we use the sum of the derivatives of h and b (h' + b') instead of the derivative of the sum (h + b)' some rounding errors will creep in, which causes unphysical waves to appear. As such this scenario is nice for testing how large these unphysical waves are for a given algorithm, and how stable the algorithm is, i.e. does it dampen out these waves or do they oscillate out of control.
Definition at line 33 of file swe_resting_lake.py.
def scenarios.swe_resting_lake.SWERestingLake.__init__ | ( | self, | |
initial_conditions = "sinusoidal" |
|||
) |
Definition at line 55 of file swe_resting_lake.py.
def scenarios.swe_resting_lake.SWERestingLake.analytical_solution | ( | self | ) |
Reimplemented from scenarios.scenario.Scenario.
Definition at line 64 of file swe_resting_lake.py.
def scenarios.swe_resting_lake.SWERestingLake.initial_conditions | ( | self | ) |
Reimplemented from scenarios.scenario.Scenario.
Definition at line 61 of file swe_resting_lake.py.
References scenarios.swe_resting_lake.SWERestingLake._init.
|
staticprivate |
|
staticprivate |
Definition at line 49 of file swe_resting_lake.py.
Referenced by scenarios.scenario.Scenario.set_global_simulation_parameters().
|
staticprivate |
Definition at line 53 of file swe_resting_lake.py.
Referenced by scenarios.scenario.Scenario.set_global_simulation_parameters().
|
staticprivate |
Definition at line 52 of file swe_resting_lake.py.
|
private |
Definition at line 59 of file swe_resting_lake.py.
Referenced by scenarios.swe_resting_lake.SWERestingLake.initial_conditions().
|
staticprivate |
Definition at line 48 of file swe_resting_lake.py.
Referenced by scenarios.scenario.Scenario.set_global_simulation_parameters().
|
staticprivate |
Definition at line 50 of file swe_resting_lake.py.
Referenced by scenarios.scenario.Scenario.boundary_conditions(), and scenarios.scenario.Scenario.set_global_simulation_parameters().
|
staticprivate |
Definition at line 47 of file swe_resting_lake.py.
Referenced by scenarios.scenario.Scenario.set_global_simulation_parameters().