Mercurial > repos > public > sbplib_julia
annotate src/Grids/Grids.jl @ 1236:95e294576c2a refactor/grids
Implement boundary methods for TensorGrid
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 19 Feb 2023 22:50:02 +0100 |
parents | 8806f4cd6fee |
children | 783284b3e438 |
rev | line source |
---|---|
211
1ad91e11b1f4
Move DiffOps and Grids into packages
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 module Grids |
1ad91e11b1f4
Move DiffOps and Grids into packages
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 |
335
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
3 using Sbplib.RegionIndices |
1146
31041ef8092a
Specialize evalOn for EquidistantGrid to return a LazyArray
Jonatan Werpers <jonatan@werpers.com>
parents:
1128
diff
changeset
|
4 using Sbplib.LazyTensors |
217
4c62d0253bd4
Add RegionIndices as dependency of Grids
Jonatan Werpers <jonatan@werpers.com>
parents:
211
diff
changeset
|
5 |
1116
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
6 # Grid |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
7 export Grid |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
8 export dims |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
9 export points |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
10 export evalOn |
221
235f0a771c8f
Make all packages load properly
Jonatan Werpers <jonatan@werpers.com>
parents:
217
diff
changeset
|
11 |
1116
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
12 # BoundaryIdentifier |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
13 export BoundaryIdentifier |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
14 export CartesianBoundary |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
15 export dim |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
16 export region |
211
1ad91e11b1f4
Move DiffOps and Grids into packages
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
17 |
1116
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
18 # EquidistantGrid |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
19 export EquidistantGrid |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
20 export spacing |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
21 export inverse_spacing |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
22 export restrict |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
23 export boundary_identifiers |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
24 export boundary_grid |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
25 export refine |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
26 export coarsen |
233
7d2ad8a73b1f
Export dim and region from Grids
Jonatan Werpers <jonatan@werpers.com>
parents:
221
diff
changeset
|
27 |
1116
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
28 include("grid.jl") |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
29 include("boundary_identifier.jl") |
c2d7e940639e
Rename AbstractGrid to Grid and clean up Grids module
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
662
diff
changeset
|
30 include("equidistant_grid.jl") |
1234
8806f4cd6fee
Move ZeroDimGrid to its own file
Jonatan Werpers <jonatan@werpers.com>
parents:
1146
diff
changeset
|
31 include("zero_dim_grid.jl") |
379
de4746d6d126
Add some notes and todos
Jonatan Werpers <jonatan@werpers.com>
parents:
335
diff
changeset
|
32 |
1236
95e294576c2a
Implement boundary methods for TensorGrid
Jonatan Werpers <jonatan@werpers.com>
parents:
1234
diff
changeset
|
33 abstract type BoundaryIdentifier end |
95e294576c2a
Implement boundary methods for TensorGrid
Jonatan Werpers <jonatan@werpers.com>
parents:
1234
diff
changeset
|
34 |
211
1ad91e11b1f4
Move DiffOps and Grids into packages
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
35 end # module |