Mercurial > repos > public > sbplib_julia
comparison plotDerivative.jl @ 45:56722ba36604
ass script that plots the derivative
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 10 Jan 2019 16:51:52 +0100 |
parents | |
children | 50c6c252d954 |
comparison
equal
deleted
inserted
replaced
44:f03e50edd60f | 45:56722ba36604 |
---|---|
1 g = sbp.grid.EquidistantGrid(200,(0, 1)) | |
2 op =sbp.readOperator("d2_4th.txt","h_4th.txt") | |
3 Laplace = sbp.Laplace1D(g,1,op) | |
4 | |
5 init(x) = sin(x) | |
6 v = sbp.grid.evalOn(g,init) | |
7 u = zeros(length(v)) | |
8 | |
9 sbp.apply!(Laplace,u,v) | |
10 | |
11 @show u | |
12 sbp.grid.plotgridfunction(g,u) | |
13 |