Skip to content

Boundary condition

# homemade_conslaws.BoundaryConditionType.

BoundaryCondition

Describes the boundary conditions for a conservation law. It is passed to the grid, determining how to handle the boundaries.

source

Dispatch functions

It is done by implementing for_each_boundary_cell for subtypes of BoundaryCondition.

Implementations

Neumann boundary condition

# homemade_conslaws.NeumannBCType.

NeumannBC

First-order approximation of the Neumann boundary condition.

source


Periodic boundary condition

# homemade_conslaws.PeriodicBCType.

PeriodicBC

Implements a periodic boundary condition by wrapping the domain.

source


Wall boundary condition

# homemade_conslaws.WallBCType.

WallBC

Implements a wall boundary condition, in the sense that the water height is reflected and momentum is reflected and negating, simulating an opposite and equal wave.

source


Multiple walls boundary condition

# homemade_conslaws.WallsBCType.

WallsBC{Float <: AbstractFloat}

Simulates walls starting and stopping at cell interfaces. Equivalent to WallBC when no walls are given.

source