Skip to content

Commit 4e37468

Browse files
Update Laplace class and add unit tests (#645)
1 parent 4a6e73f commit 4e37468

File tree

15 files changed

+672
-156
lines changed

15 files changed

+672
-156
lines changed

docs/source/_rst/equation/equation_factory.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,30 @@ Equation Factory
1414
:members:
1515
:show-inheritance:
1616

17+
.. autoclass:: FixedLaplacian
18+
:members:
19+
:show-inheritance:
20+
1721
.. autoclass:: Laplace
22+
:members:
23+
:show-inheritance:
24+
25+
.. autoclass:: Advection
26+
:members:
27+
:show-inheritance:
28+
29+
.. autoclass:: AllenCahn
30+
:members:
31+
:show-inheritance:
32+
33+
.. autoclass:: DiffusionReaction
34+
:members:
35+
:show-inheritance:
36+
37+
.. autoclass:: Helmholtz
38+
:members:
39+
:show-inheritance:
40+
41+
.. autoclass:: Poisson
1842
:members:
1943
:show-inheritance:

pina/equation/__init__.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,26 @@
66
"FixedValue",
77
"FixedGradient",
88
"FixedFlux",
9+
"FixedLaplacian",
910
"Laplace",
11+
"Advection",
12+
"AllenCahn",
13+
"DiffusionReaction",
14+
"Helmholtz",
15+
"Poisson",
1016
]
1117

1218
from .equation import Equation
13-
from .equation_factory import FixedFlux, FixedGradient, Laplace, FixedValue
19+
from .equation_factory import (
20+
FixedFlux,
21+
FixedGradient,
22+
FixedLaplacian,
23+
FixedValue,
24+
Laplace,
25+
Advection,
26+
AllenCahn,
27+
DiffusionReaction,
28+
Helmholtz,
29+
Poisson,
30+
)
1431
from .system_equation import SystemEquation

0 commit comments

Comments
 (0)