view plotDerivative2d.jl @ 1371:d0e48c2e6aad feature/variable_derivatives

Remove stencil input for 1d grid and reorder methods of second_derivative_variable
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 26 May 2023 21:44:33 +0200
parents d61bfc8cf6a5
children
line wrap: on
line source

include("sbpPlot.jl")

g = sbp.Grid.EquidistantGrid((100,75), (0.0, 0.0), (2pi, 3/2*pi))
op = sbp.readOperator("d2_4th.txt","h_4th.txt")
Laplace = sbp.Laplace(g, 1.0, op)

init(x,y) = sin(x) + cos(y)
v = sbp.Grid.evalOn(g,init)
u = zero(v)

sbp.apply!(Laplace,u,v)

#@show u
#@show u'*u

plotgridfunction(g,u)