comparison src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl @ 1049:3bb94ce74697 feature/variable_derivatives

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 23 Mar 2022 12:54:45 +0100
parents b15f39ae1643
children 102ebdaf7c11
comparison
equal deleted inserted replaced
1048:86aa69ad3304 1049:3bb94ce74697
1 export SecondDerivativeVariable 1 export SecondDerivativeVariable
2 2
3 # REVIEW: Fixa docs 3 # REVIEW: Fixa docs
4 """ 4 """
5 SecondDerivativeVariable{Dir,T,D,...} <: TensorMapping{T,D,D} 5 SecondDerivativeVariable{Dir,T,D,...} <: LazyTensor{T,D,D}
6 6
7 A second derivative operator in direction `Dir` with a variable coefficient. 7 A second derivative operator in direction `Dir` with a variable coefficient.
8 """ 8 """
9 struct SecondDerivativeVariable{Dir,T,D,M,IStencil<:NestedStencil{T},CStencil<:NestedStencil{T},TArray<:AbstractArray} <: TensorMapping{T,D,D} 9 struct SecondDerivativeVariable{Dir,T,D,M,IStencil<:NestedStencil{T},CStencil<:NestedStencil{T},TArray<:AbstractArray} <: LazyTensor{T,D,D}
10 inner_stencil::IStencil 10 inner_stencil::IStencil
11 closure_stencils::NTuple{M,CStencil} 11 closure_stencils::NTuple{M,CStencil}
12 size::NTuple{D,Int} 12 size::NTuple{D,Int}
13 coefficient::TArray 13 coefficient::TArray
14 14
34 end 34 end
35 35
36 @doc raw""" 36 @doc raw"""
37 SecondDerivativeVariable(grid::EquidistantGrid, coeff::AbstractArray, stencil_set, dir) 37 SecondDerivativeVariable(grid::EquidistantGrid, coeff::AbstractArray, stencil_set, dir)
38 38
39 Create a `TensorMapping` for the second derivative with a variable coefficient 39 Create a `LazyTensor` for the second derivative with a variable coefficient
40 `coeff` on `grid` from the stencils in `stencil_set`. The direction is 40 `coeff` on `grid` from the stencils in `stencil_set`. The direction is
41 determined by `dir`. 41 determined by `dir`.
42 42
43 `coeff` is a grid function on `grid`. 43 `coeff` is a grid function on `grid`.
44 44