Peano
scenarios.swe_resting_lake.SWERestingLake Class Reference

Resting lake scenario for the shallow water equations. More...

Inheritance diagram for scenarios.swe_resting_lake.SWERestingLake:
Collaboration diagram for scenarios.swe_resting_lake.SWERestingLake:

Public Member Functions

def __init__ (self, initial_conditions="sinusoidal")
 
def initial_conditions (self)
 
def analytical_solution (self)
 
- Public Member Functions inherited from scenarios.scenario.Scenario
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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def scenarios.swe_resting_lake.SWERestingLake.__init__ (   self,
  initial_conditions = "sinusoidal" 
)

Definition at line 55 of file swe_resting_lake.py.

Member Function Documentation

◆ analytical_solution()

def scenarios.swe_resting_lake.SWERestingLake.analytical_solution (   self)

Reimplemented from scenarios.scenario.Scenario.

Definition at line 64 of file swe_resting_lake.py.

◆ initial_conditions()

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.

Field Documentation

◆ _dimensions

◆ _domain_size

float scenarios.swe_resting_lake.SWERestingLake._domain_size = 1.0
staticprivate

◆ _end_time

float scenarios.swe_resting_lake.SWERestingLake._end_time = 1.0
staticprivate

◆ _equation

scenarios.swe_resting_lake.SWERestingLake._equation = SWE_W_Bathymetry()
staticprivate

Definition at line 52 of file swe_resting_lake.py.

◆ _init

scenarios.swe_resting_lake.SWERestingLake._init
private

◆ _offset

float scenarios.swe_resting_lake.SWERestingLake._offset = -0.5
staticprivate

◆ _periodic_bc

bool scenarios.swe_resting_lake.SWERestingLake._periodic_bc = True
staticprivate

◆ _plot_dt

float scenarios.swe_resting_lake.SWERestingLake._plot_dt = 0.0
staticprivate

The documentation for this class was generated from the following file: