comparison src/Grids/multiblockgrids.jl @ 2018:a3ffc3202813 feature/grids/multiblock_grids

Start implementation of MultiBlockGrid
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 12 Mar 2025 09:34:00 +0100
parents ea2a15454cf2
children fb2dc185c197
comparison
equal deleted inserted replaced
2017:ea2a15454cf2 2018:a3ffc3202813
1
2 struct MultiBlockGrid{T,D,GT, CT} <: Grid{T,D}
3 grids::GT
4 connections::CT
5 end
6
7 function MultiBlockGrid(grids, connections)
8 T = eltype(valtype(grids))
9 D = ndims(valtype(grids))
10
11 MultiBlockGrid{T,D,typeof(grids), typeof(connections)}(grids,connections)
12 end
13
14
1 """ 15 """
2 MultiBlockBoundary{N, BID} <: BoundaryIdentifier 16 MultiBlockBoundary{N, BID} <: BoundaryIdentifier
3 17
4 A boundary identifier for a multiblock grids. `N` Specifies which grid and 18 A boundary identifier for a multiblock grids. `N` Specifies which grid and
5 `BID` which boundary on that grid. 19 `BID` which boundary on that grid.