comparison src/SbpOperators/boundaryops/normal_derivative.jl @ 947:38d1752a9aff feature/laplace_opset

Reformat "See also:"
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 13 Mar 2022 21:01:09 +0100
parents 22c80fb36400
children 7bf3121c6864 1ba8a398af9c
comparison
equal deleted inserted replaced
936:22c80fb36400 947:38d1752a9aff
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 [`boundary_operator`](@ref). 9 a `BoundaryOperator`.
10
11 See also: [`boundary_operator`](@ref).
10 """ 12 """
11 function normal_derivative(grid, closure_stencil::Stencil, boundary) 13 function normal_derivative(grid, closure_stencil::Stencil, boundary)
12 direction = dim(boundary) 14 direction = dim(boundary)
13 h_inv = inverse_spacing(grid)[direction] 15 h_inv = inverse_spacing(grid)[direction]
14 return SbpOperators.boundary_operator(grid, scale(closure_stencil,h_inv), boundary) 16 return SbpOperators.boundary_operator(grid, scale(closure_stencil,h_inv), boundary)