Skip to content

Commit

Permalink
explain bias
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Dec 1, 2022
1 parent d24fa99 commit fe6390f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/literate/src/files/upwind_fdsbp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ D_upw = upwind_operators(SummationByPartsOperators.Mattsson2017,
derivative_order=1, accuracy_order=2,
xmin=0.0, xmax=1.0, N=11)
# Upwind operators are derivative operators biased towards one direction.
# The "minus" variants has a bias towards the left side.
# The "minus" variants has a bias towards the left side, i.e., it uses values
# from more nodes to the left than from the right to compute the discrete
# derivative approximation at a given node (in the interior of the domain).
# In matrix form, this means more non-zero entries are left from the diagonal.
Matrix(D_upw.minus)
# Analogously, the "plus" variant has a bias towards the right side.
Matrix(D_upw.plus)
Expand Down

0 comments on commit fe6390f

Please sign in to comment.