Meshes
SemiLagrangian.UniformMesh — Type
struct UniformMesh{T}UniformMesh{T}
UniformMesh(start::T, stop::T, length::Int) where {T}1D uniform mesh data.
Arguments
start::T: beginning of the meshstop::T: end of the meshlength::Int: number of cells of the mesh
Implementation
step::T: size steppoints::Vector{T}: Array with node positionswidth::T: Distance between left and right edges.
Base.length — Method
length(mesh)
Base.length(mesh::UniformMesh)Get the length of the mesh
Argument
mesh::UniformMesh: the mesh
Return
length: the length of the mesh that is the number of points and cells
SemiLagrangian.meshtostd — Method
meshtostd(mesh, v)
SemiLagrangian.points — Method
points(mesh::UniformMesh)Get the points of the mesh
Argument
mesh::UniformMesh: the mesh
Return
points: the points of the mesh that is the vector of all points of the mesh except the last
SemiLagrangian.start — Method
start(mesh)
SemiLagrangian.stdtomesh — Method
stdtomesh(mesh, v)
SemiLagrangian.stop — Method
stop(mesh)
SemiLagrangian.traitmodbegin! — Method
traitmodbegin!(mesh, f)
SemiLagrangian.traitmodbegin! — Method
traitmodbegin!(lg, f)
SemiLagrangian.traitmodend! — Method
traitmodend!(mesh, res)
SemiLagrangian.traitmodend! — Method
traitmodend!(lg, f)
SemiLagrangian.vec_k_fft — Method
vec_k_fft(mesh::UniformMesh{T}) where{T}Get the fft coefficients of the mesh
Argument
mesh::UniformMesh{T}: the mesh
Return
- fft coefficients
SemiLagrangian.width — Method
width(mesh::UniformMesh)Get the width of the mesh
Argument
mesh::UniformMesh: the mesh
Return
width: the width that is step*length or distance between left and right edges.