comparison src/SbpOperators/volumeops/derivatives/first_derivative.jl @ 995:1ba8a398af9c refactor/lazy_tensors

Rename types
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 18 Mar 2022 21:14:47 +0100
parents ba023fc09961
children 7fc8df5157a7 05a25a5063bb
comparison
equal deleted inserted replaced
994:55ab7801c45f 995:1ba8a398af9c
1 """ 1 """
2 first_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) 2 first_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction)
3 3
4 Creates the first-derivative operator `D1` as a `TensorMapping` 4 Creates the first-derivative operator `D1` as a `LazyTensor`
5 5
6 `D1` approximates the first-derivative d/dξ on `grid` along the coordinate dimension specified by 6 `D1` approximates the first-derivative d/dξ on `grid` along the coordinate dimension specified by
7 `direction`, using the stencil `inner_stencil` in the interior and a set of stencils `closure_stencils` 7 `direction`, using the stencil `inner_stencil` in the interior and a set of stencils `closure_stencils`
8 for the points in the closure regions. 8 for the points in the closure regions.
9 9
10 On a one-dimensional `grid`, `D1` is a `VolumeOperator`. On a multi-dimensional `grid`, `D1` is the outer product of the 10 On a one-dimensional `grid`, `D1` is a `VolumeOperator`. On a multi-dimensional `grid`, `D1` is the outer product of the
11 one-dimensional operator with the `IdentityMapping`s in orthogonal coordinate dirrections. 11 one-dimensional operator with the `IdentityTensor`s in orthogonal coordinate dirrections.
12 12
13 See also: [`volume_operator`](@ref). 13 See also: [`volume_operator`](@ref).
14 """ 14 """
15 function first_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) 15 function first_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction)
16 h_inv = inverse_spacing(grid)[direction] 16 h_inv = inverse_spacing(grid)[direction]