Peano
Loading...
Searching...
No Matches
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

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

Protected Attributes

 _dimensions
 
 _equation
 

Static Protected Attributes

float _plot_dt = 0.0
 
bool _periodic_bc = False
 
- Static Protected Attributes inherited from scenarios.scenario.Scenario
 _equation = None
 
int _dimensions = 2
 
float _end_time = 1.0
 
float _plot_dt = 0.1
 
float _offset = 0.0
 
float _domain_size = 1.0
 
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__()

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

Definition at line 21 of file advection_linear.py.

Member Function Documentation

◆ boundary_conditions()

scenarios.advection_linear.AdvectionLinear.boundary_conditions ( self)

Reimplemented from scenarios.scenario.Scenario.

Definition at line 34 of file advection_linear.py.

◆ initial_conditions()

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
protected

◆ _periodic_bc

bool scenarios.advection_linear.AdvectionLinear._periodic_bc = False
staticprotected

◆ _plot_dt

float scenarios.advection_linear.AdvectionLinear._plot_dt = 0.0
staticprotected

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