Meshes
SemiLagrangian.UniformMesh — Typestruct 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 — Methodlength(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
Base.step — Methodstep(mesh)
Base.step(mesh::UniformMesh)Get the step of the mesh
Argument
mesh::UniformMesh: the mesh
Return
step: the step of the mesh that is the difference between two contiguous points
SemiLagrangian.meshtostd — Methodmeshtostd(mesh, v)
SemiLagrangian.points — Methodpoints(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 — Methodstart(mesh)
SemiLagrangian.stdtomesh — Methodstdtomesh(mesh, v)
SemiLagrangian.stop — Methodstop(mesh)
SemiLagrangian.traitmodbegin! — Methodtraitmodbegin!(mesh, f)
SemiLagrangian.traitmodbegin! — Methodtraitmodbegin!(lg, f)
SemiLagrangian.traitmodend! — Methodtraitmodend!(mesh, res)
SemiLagrangian.traitmodend! — Methodtraitmodend!(lg, f)
SemiLagrangian.vec_k_fft — Methodvec_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 — Methodwidth(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.