Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/normal_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 | d83f685f1031 |
children | 38d1752a9aff |
comparison
equal
deleted
inserted
replaced
935:079024db8226 | 936:22c80fb36400 |
---|---|
4 Creates the normal derivative boundary operator `d` as a `TensorMapping` | 4 Creates the normal derivative boundary operator `d` as a `TensorMapping` |
5 | 5 |
6 `d` computes the normal derivative of a grid function on `boundary` a `Stencil` `closure_stencil`. | 6 `d` computes the normal derivative of a grid function on `boundary` a `Stencil` `closure_stencil`. |
7 `d'` is the prolongation of the normal derivative of a grid function to the whole grid using the same `closure_stencil`. | 7 `d'` is the prolongation of the normal derivative of a grid function to the whole grid using the same `closure_stencil`. |
8 On a one-dimensional `grid`, `d` is a `BoundaryOperator`. On a multi-dimensional `grid`, `d` is the inflation of | 8 On a one-dimensional `grid`, `d` is a `BoundaryOperator`. On a multi-dimensional `grid`, `d` is the inflation of |
9 a `BoundaryOperator`. See also [`SbpOperators.boundary_operator`](@ref). | 9 a `BoundaryOperator`. See also [`boundary_operator`](@ref). |
10 """ | 10 """ |
11 function normal_derivative(grid, closure_stencil::Stencil, boundary) | 11 function normal_derivative(grid, closure_stencil::Stencil, boundary) |
12 direction = dim(boundary) | 12 direction = dim(boundary) |
13 h_inv = inverse_spacing(grid)[direction] | 13 h_inv = inverse_spacing(grid)[direction] |
14 return SbpOperators.boundary_operator(grid, scale(closure_stencil,h_inv), boundary) | 14 return SbpOperators.boundary_operator(grid, scale(closure_stencil,h_inv), boundary) |