Mercurial > repos > public > sbplib_julia
view 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 source
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