view src/Grids/Grids.jl @ 1752:c98d9c528a22 feature/grids/curvilinear

Review: Added review comments to Grids.jl and mapped_grid.jl
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Fri, 13 Sep 2024 10:27:17 -0700
parents e719c6dadba6
children 035af82f559a
line wrap: on
line source

# TODO: Double check that the interfaces for indexing and iterating are fully implemented and tested for all grids.
# Review: Address this todo?
module Grids

using Diffinitive.LazyTensors
using StaticArrays
using LinearAlgebra

# Grid
export Grid
export coordinate_size
export component_type
export grid_id
export boundary_id
export boundary_indices
export boundary_identifiers
export boundary_grid
export min_spacing
export coarsen
export refine
export eval_on
export componentview
export ArrayComponentView
export normal

export BoundaryIdentifier
export TensorGridBoundary
export CartesianBoundary
export LowerBoundary
export UpperBoundary

export TensorGrid
export ZeroDimGrid

export EquidistantGrid
export inverse_spacing
export spacing
export equidistant_grid


# MappedGrid
export MappedGrid
export jacobian
export logicalgrid
export mapped_grid
export jacobian_determinant
export metric_tensor
export metric_tensor_inverse

include("grid.jl")
include("tensor_grid.jl")
include("equidistant_grid.jl")
include("zero_dim_grid.jl")
include("mapped_grid.jl")

end # module