Mapping

This folder contains mappings to make the link between the concrete system and the abstract system, and vice-versa.

Grids

Dionysos.Mapping.GridType
abstract type Grid{N, T} end

Defines an abstract type for grid-based structures in N dimensions with floating-point values T.

source
Dionysos.Mapping.get_pos_by_coordFunction
get_pos_by_coord(grid::Grid{N, T}, x::SVector{N, T}) -> NTuple{N, Int}

Returns the discrete position (grid indices) corresponding to a coordinate x.

  • The cell (0,0) is centered between -h/2 and +h/2.
  • h is the length of a grid cell in each dimension.
source
Dionysos.Mapping.GridEllipsoidalRectangularType
GridEllipsoidalRectangular{N,T} <: Grid{N,T}

Uniform grid on rectangular space rect, centered at orig and with steps set by the vector h. Cells are (possibly overlapping) ellipsoids defined at each grid point c as (x-c)'P(x-c) ≤ 1.

source
Dionysos.Mapping.DeformedGridType
DeformedGrid{N, T} <: Grid{N, T}

Represents a deformed version of a GridFree grid, where points are mapped via an invertible transformation f and its inverse fi.

Fields

  • grid::GridFree{N, T} : The underlying grid.
  • f::Function : The forward transformation (physical -> deformed).
  • fi::Function : The inverse transformation (deformed -> physical).
  • A::Union{Nothing, SMatrix{N, N, T, N*N}} : Optional linear transformation matrix for volume calculations.
source

Abstract Mappings

Concrete Mappings

Simple Mappings

Grid Mappings

Dionysos.Mapping.ImplicitGridMappingType

ImplicitGridMapping:

  • universe is a rectangular index box (minpos..maxpos) possibly periodic
  • id computed by row-major linearization (no dict)
  • pos recovered by inverse mapping
source
Dionysos.Mapping.PeriodicGridMappingType
PeriodicGridMapping{N, T, M, P} <: GridMapping{N, T}

A periodic wrapper over an underlying GridMapping.

Fields (mirrors PeriodicDomainList):

  • periodic_dims::SVector{P, Int}
  • periods::SVector{P, T}
  • start::SVector{P, T}
  • underlying_mapping::M
  • periodic_index_map::NTuple{N, Union{Nothing, Int}}
source