Mercurial > repos > public > sbplib_julia
diff src/BoundaryConditions/boundary_condition.jl @ 1106:b4ee47f2aafb feature/boundary_conditions
Start implementing functions for boundary conditions associated with Laplace
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 13 Jun 2022 13:46:24 +0200 |
parents | |
children | 667e9c588f23 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/BoundaryConditions/boundary_condition.jl Mon Jun 13 13:46:24 2022 +0200 @@ -0,0 +1,11 @@ +abstract type BoundaryConditionType end +struct Dirichlet <: BoundaryConditionType end +struct Neumann <: BoundaryConditionType end + +struct BoundaryCondition{BCType <: BoundaryConditionType, ID <: BoundaryIdentifier, DType} + id::ID + data::DType + BoundaryCondition{BCType}(id::ID, data::DType) where {BCType <: BoundaryConditionType, + ID <: BoundaryIdentifier, + DType} = new{BCType,ID,DType}(id, data) +end \ No newline at end of file