view src/BoundaryConditions/boundary_condition.jl @ 1112:b2afacd57635 feature/boundary_conditions

Merge change to boundary_grid
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Mon, 04 Jul 2022 23:02:11 +0200
parents b4ee47f2aafb
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