Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/derivatives/second_derivative.jl @ 936:22c80fb36400 feature/laplace_opset
Fix docs and add some references
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 25 Feb 2022 17:20:40 +0100 |
parents | 6b47a9ee1632 |
children | 38d1752a9aff |
comparison
equal
deleted
inserted
replaced
935:079024db8226 | 936:22c80fb36400 |
---|---|
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`, `D2` is a `VolumeOperator`. On a multi-dimensional `grid`, `D2` is the outer product of the | 10 On a one-dimensional `grid`, `D2` is a `VolumeOperator`. On a multi-dimensional `grid`, `D2` is the outer product of the |
11 one-dimensional operator with the `IdentityMapping`s in orthogonal coordinate dirrections. | 11 one-dimensional operator with the `IdentityMapping`s in orthogonal coordinate dirrections. |
12 Also see the documentation of `SbpOperators.volume_operator(...)` for more details. | 12 See also [`volume_operator`](@ref). |
13 """ | 13 """ |
14 function second_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) | 14 function second_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) |
15 h_inv = inverse_spacing(grid)[direction] | 15 h_inv = inverse_spacing(grid)[direction] |
16 return SbpOperators.volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction) | 16 return SbpOperators.volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction) |
17 end | 17 end |