Peano
scenarios.advection_linear.AdvectionLinear Class Reference

Very simple scenario in which the initial value of x is shifted in each spatial dimension. More...

Inheritance diagram for scenarios.advection_linear.AdvectionLinear:
Collaboration diagram for scenarios.advection_linear.AdvectionLinear:

Public Member Functions

def __init__ (self, dimensions=2)
 
def initial_conditions (self)
 
def boundary_conditions (self)
 
- Public Member Functions inherited from scenarios.scenario.Scenario
def refinement_criterion (self)
 
def analytical_solution (self)
 
def set_global_simulation_parameters (self, project)
 

Private Attributes

 _dimensions
 
 _equation
 

Static Private Attributes

float _plot_dt = 0.1
 
bool _periodic_bc = False
 

Detailed Description

Very simple scenario in which the initial value of x is shifted in each spatial dimension.

Definition at line 12 of file advection_linear.py.

Constructor & Destructor Documentation

◆ __init__()

def scenarios.advection_linear.AdvectionLinear.__init__ (   self,
  dimensions = 2 
)

Definition at line 21 of file advection_linear.py.

Member Function Documentation

◆ boundary_conditions()

def scenarios.advection_linear.AdvectionLinear.boundary_conditions (   self)

Reimplemented from scenarios.scenario.Scenario.

Definition at line 34 of file advection_linear.py.

◆ initial_conditions()

def scenarios.advection_linear.AdvectionLinear.initial_conditions (   self)

Reimplemented from scenarios.scenario.Scenario.

Definition at line 25 of file advection_linear.py.

Field Documentation

◆ _dimensions

◆ _equation

scenarios.advection_linear.AdvectionLinear._equation
private

Definition at line 23 of file advection_linear.py.

◆ _periodic_bc

bool scenarios.advection_linear.AdvectionLinear._periodic_bc = False
staticprivate

◆ _plot_dt

float scenarios.advection_linear.AdvectionLinear._plot_dt = 0.1
staticprivate

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