Skip to content

Commit 3443fa6

Browse files
isurufalexfikl
andcommitted
Add Elasticity/Stokes using biharmonic/Laplace kernels
Co-authored-by: Alex Fikl <alexfikl@gmail.com>
1 parent 7b173b2 commit 3443fa6

14 files changed

Lines changed: 2868 additions & 475 deletions

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
# sumpy
9797
"ExpansionBase": "class:sumpy.expansion.ExpansionBase",
9898
"ExpansionFactoryBase": "class:sumpy.expansion.ExpansionFactoryBase",
99+
"ExpressionKernel": "class:sumpy.kernel.ExpressionKernel",
99100
"Kernel": "class:sumpy.kernel.Kernel",
100101
"HelmholtzKernel": "class:sumpy.kernel.HelmholtzKernel",
101102
"P2P": "class:sumpy.p2p.P2P",

doc/symbolic.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Maxwell's equations
3838

3939
.. automodule:: pytential.symbolic.pde.maxwell
4040

41+
Elasticity equations
42+
^^^^^^^^^^^^^^^^^^^^
43+
44+
.. automodule:: pytential.symbolic.elasticity
45+
4146
Stokes' equations
4247
^^^^^^^^^^^^^^^^^
4348

@@ -48,6 +53,11 @@ Scalar Beltrami equations
4853

4954
.. automodule:: pytential.symbolic.pde.beltrami
5055

56+
Rewriting expressions with layer potentials
57+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58+
59+
.. automodule:: pytential.symbolic.pde.system_utils
60+
5161
Internal affairs
5262
----------------
5363

@@ -62,3 +72,10 @@ How a symbolic operator gets executed
6272
.. automodule:: pytential.symbolic.execution
6373

6474
.. automodule:: pytential.symbolic.compiler
75+
76+
Rewriting expressions with ``IntG``\ s internals
77+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78+
79+
.. automethod:: pytential.symbolic.pde.system_utils.convert_target_transformation_to_source
80+
.. automethod:: pytential.symbolic.pde.system_utils.rewrite_int_g_using_base_kernel
81+

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ extend-ignore-re = [
144144

145145
[tool.typos.default.extend-words]
146146
"nd" = "nd"
147+
# short for multi-indices
148+
mis = "mis"
147149

148150
[tool.basedpyright]
149151
reportImplicitStringConcatenation = "none"

pytential/qbx/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,12 @@ def get_flat_strengths_from_densities(
10521052
places,
10531053
sym.weights_and_area_elements(places.ambient_dim, dofdesc=dofdesc),
10541054
)(actx)
1055+
1056+
from numbers import Number
1057+
10551058
density_dofarrays = [evaluate(density) for density in densities]
10561059
for i, ary in enumerate(density_dofarrays):
1057-
if not isinstance(ary, DOFArray):
1060+
if not isinstance(ary, DOFArray | Number):
10581061
raise ValueError(
10591062
f"DOFArray expected for density '{densities[i]}', "
10601063
f"{type(ary)} received instead")

0 commit comments

Comments
 (0)