From 4a89475ac67ba3c5cc7f67761c510c7af5eb679f Mon Sep 17 00:00:00 2001 From: Mikael Mortensen Date: Tue, 6 Aug 2024 09:17:10 +0200 Subject: [PATCH] Adding modindex_common_prefix --- docs/source/conf.py | 1 + shenfun/spectralbase.py | 26 +++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3a02a3d7..fec5c64a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -59,6 +59,7 @@ napoleon_use_param = False napoleon_use_ivar = True bibtex_bibfiles = ['papers.bib'] +modindex_common_prefix = ['shenfun.'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/shenfun/spectralbase.py b/shenfun/spectralbase.py index b0c9abf6..ae3aed87 100644 --- a/shenfun/spectralbase.py +++ b/shenfun/spectralbase.py @@ -1834,6 +1834,30 @@ class BoundaryConditions(dict): Etc. Any combination should be possible, and it should also be possible to use higher order derivatives with `N2`, `N3` etc. + It is also possible to apply Robin conditions + + .. math:: + + u(x) + c u'(x) = d + + Applying this on both sides of the domain is achieved through:: + + bc = {'left': {'R': (c, d)}, 'right': {'R': (c, d)}} + + Finally, one can use the boundary condition + + .. math:: + + u'(x) + c u''(x) = d + + Applying this on both sides of the domain:: + + bc = {'left': {'W': (c, d)}, 'right': {'W': (c, d)}} + + Currently there are no hardcoded spaces implemented for these latter two boundary + conditions, so the composition of these bases is computed using a generic approach + that is slower than for the more common Dirichlet and Neumann spaces. + If `bc` is an n-tuple, then we assume the basis function is:: (None, a) - {'right': {'D': a}} @@ -2317,7 +2341,7 @@ def get_norm_sq(v, u, method): .. math:: - `(\phi_i, \phi_i)_w` + (\phi_i, \phi_i)_w where :math:`\phi_i` is the orthogonal basis for a spectral family.