Mercurial > repos > public > sbplib_julia
comparison src/Grids/Grids.jl @ 1858:4a9be96f2569 feature/documenter_logo
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 12 Jan 2025 21:18:44 +0100 |
parents | a6deaf70862b |
children | 2b5f81e288f1 f93ba5832146 e68669552ed8 |
comparison
equal
deleted
inserted
replaced
1857:ffde7dad9da5 | 1858:4a9be96f2569 |
---|---|
1 module Grids | 1 module Grids |
2 | 2 |
3 using Sbplib.RegionIndices | 3 using Diffinitive.LazyTensors |
4 using StaticArrays | |
5 using LinearAlgebra | |
4 | 6 |
5 export BoundaryIdentifier, CartesianBoundary | 7 # Grid |
8 export Grid | |
9 export coordinate_size | |
10 export component_type | |
11 export grid_id | |
12 export boundary_id | |
13 export boundary_indices | |
14 export boundary_identifiers | |
15 export boundary_grid | |
16 export min_spacing | |
17 export coarsen | |
18 export refine | |
19 export eval_on | |
20 export componentview | |
21 export ArrayComponentView | |
22 export normal | |
6 | 23 |
7 abstract type BoundaryIdentifier end | 24 export BoundaryIdentifier |
8 struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end | 25 export TensorGridBoundary |
9 dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim | 26 export CartesianBoundary |
10 region(::CartesianBoundary{Dim, R}) where {Dim, R} = R() | 27 export LowerBoundary |
28 export UpperBoundary | |
11 | 29 |
12 export dim, region | 30 export TensorGrid |
31 export ZeroDimGrid | |
13 | 32 |
14 include("AbstractGrid.jl") | 33 export EquidistantGrid |
15 include("EquidistantGrid.jl") | 34 export inverse_spacing |
35 export spacing | |
36 export equidistant_grid | |
16 | 37 |
17 # TODO: Rename AbstractGrid to Grid and move definition here. | 38 |
39 # MappedGrid | |
40 export MappedGrid | |
41 export jacobian | |
42 export logical_grid | |
43 export mapped_grid | |
44 export metric_tensor | |
45 | |
46 include("grid.jl") | |
47 include("tensor_grid.jl") | |
48 include("equidistant_grid.jl") | |
49 include("zero_dim_grid.jl") | |
50 include("mapped_grid.jl") | |
18 | 51 |
19 end # module | 52 end # module |