Cells and grid

FerriteInterfaceElements.InterfaceCellType
InterfaceCell(here::AbstractCell, there::AbstractCell) <: AbstractCell

An InterfaceCell is a cell based on two cells of lower dimension representing the two facets. The two base cells need to be of the same type and the order of nodes needs to match, e.g.:

1---2 "here"
4---3 "there"
InterfaceCell(Line((1,2)), Line((4,3)))

Fields

  • here::AbstractCell: cell representing the facet "here"
  • there::AbstractCell: cell representing the facet "there"
  • nodes::NTuple: tuple with all node indices in appropriate order: vertex nodes "here", vertex nodes "there", facet nodes "here", ...
source
FerriteInterfaceElements.insert_interfacesFunction
insert_interfaces(grid::Grid, domain_names::Vector{String}; kwargs...)    
insert_interfaces(grid::Grid, interfaces::Dict{String,Tuple{String,String}}; kwargs...)

Return a new grid with InterfaceCells inserted according to domain_names or interfaces. The new grid provides additional cell sets. The set "interfaces" contains all new InterfaceCells.

When using domain_names, for each combination of the corresponding cellsests interfaces will be inserted and a new cellset will be provided, which can be accessed using both of the following names: "domain1-domain2-interface" and "domain2-domain1-interface".

When using interfaces, each value of the Dict defines a pair of cellsets between which interfaces will be inserted and collected in a new cellset which can be accessed by the corresponding key.

source