Expansions

class sumpy.expansion.ExpansionBase(kernel, order, use_rscale=None)[source]
with_kernel(kernel)[source]
__len__()[source]
get_coefficient_identifiers()[source]

Returns the identifiers of the coefficients that actually get stored.

coefficients_from_source(avec, bvec, rscale)[source]

Form an expansion from a source point.

Parameters
  • avec – vector from source to center.

  • bvec – vector from center to target. Not usually necessary, except for line-Taylor expansion.

Returns

a list of sympy expressions representing the coefficients of the expansion.

translate_from(src_expansion, src_coeff_exprs, src_rscale, dvec, tgt_rscale)[source]
__eq__(other)[source]

Return self==value.

__ne__(other)[source]

Return self!=value.

Expansion Factories

class sumpy.expansion.ExpansionFactoryBase[source]

An interface .. automethod:: get_local_expansion_class .. automethod:: get_multipole_expansion_class

class sumpy.expansion.DefaultExpansionFactory[source]

An implementation of ExpansionFactoryBase that gives the ‘best known’ expansion for each kernel.

class sumpy.expansion.VolumeTaylorExpansionFactory[source]

An implementation of ExpansionFactoryBase that uses Volume Taylor expansions for each kernel.

Local Expansions

class sumpy.expansion.local.VolumeTaylorLocalExpansion(kernel, order, use_rscale=None)[source]
class sumpy.expansion.local.H2DLocalExpansion(kernel, order, use_rscale=None)[source]
class sumpy.expansion.local.Y2DLocalExpansion(kernel, order, use_rscale=None)[source]
class sumpy.expansion.local.LineTaylorLocalExpansion(kernel, order, use_rscale=None)[source]

Multipole Expansions

class sumpy.expansion.multipole.VolumeTaylorMultipoleExpansion(kernel, order, use_rscale=None)[source]
class sumpy.expansion.multipole.H2DMultipoleExpansion(kernel, order, use_rscale=None)[source]
class sumpy.expansion.multipole.Y2DMultipoleExpansion(kernel, order, use_rscale=None)[source]