Finite-Difference Schemes
This section contains details related to the implementation of finite-difference schemes. Note that the solver can utilize any finite-difference scheme, including asymmetric stencils. Additionally, the derivative-related methods are implemented using Cython.
Dx(F, cell_sub, scheme)
method descriptor
Calculate the first derivative using a given function and stencil.
Parameters: |
|
---|
Returns: |
|
---|
D2x(D, cell_sub, scheme)
method descriptor
Calculate the second derivative using a given function and stencil.
Parameters: |
|
---|
Returns: |
|
---|
dx(values, cell_sub, scheme)
method descriptor
Calculate the first derivative using precomputed function values at grid points.
Parameters: |
|
---|
Returns: |
|
---|
d2x(values, cell_sub, scheme)
method descriptor
Calculate the second derivative using precomputed function values at grid points.
Parameters: |
|
---|
Returns: |
|
---|