ddfem 1.0.1__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ddfem-1.0.1 → ddfem-1.0.2}/PKG-INFO +5 -2
- {ddfem-1.0.1 → ddfem-1.0.2}/README.md +3 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/__init__.py +1 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/domain.py +3 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/model2ufl.py +1 -0
- ddfem-1.0.2/ddfem/plot.py +13 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem.egg-info/PKG-INFO +5 -2
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem.egg-info/SOURCES.txt +1 -1
- ddfem-1.0.2/ddfem.egg-info/requires.txt +2 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/pyproject.toml +2 -2
- ddfem-1.0.1/ddfem/dune.py +0 -3
- ddfem-1.0.1/ddfem.egg-info/requires.txt +0 -2
- {ddfem-1.0.1 → ddfem-1.0.2}/LICENSE +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/boundary.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/__init__.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/advection_diffusion.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/beam.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/cahn_hilliard.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/chemical_reaction.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/constant.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/five_circle_flat.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/forchheimer.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/hyperelasticity.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/linear_elasticity.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/plaplace.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/single_circle.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/triple_circle.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/examples/triple_circle_beam.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/__init__.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/arc.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/ball.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/box.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/domain_dune.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/helpers.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/pie.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/plane.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/primitive_base.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/geometry/vesica.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/DDM1.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/Fitted.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/Mix0.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/NNS.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/NS.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/__init__.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem/transformers/transformer_base.py +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem.egg-info/dependency_links.txt +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/ddfem.egg-info/top_level.txt +0 -0
- {ddfem-1.0.1 → ddfem-1.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ddfem
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
4
4
|
Summary: Diffuse domain finite element solver
|
5
5
|
Author-email: Luke Benfield <luke.benfield@warwick.ac.uk>, Andreas Dedner <a.s.dedner@warwick.ac.uk>
|
6
6
|
License-Expression: MIT
|
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.9
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: fenics-ufl
|
14
|
+
Requires-Dist: fenics-ufl==2022.2.0
|
15
15
|
Requires-Dist: numpy
|
16
16
|
Dynamic: license-file
|
17
17
|
|
@@ -19,3 +19,6 @@ Dynamic: license-file
|
|
19
19
|
|
20
20
|
This is a package for solving complex PDEs based on the diffuse domain idea.
|
21
21
|
|
22
|
+
[Documentation][0]
|
23
|
+
|
24
|
+
[0]: https://ddfem.readthedocs.io/en/latest/index.html
|
@@ -0,0 +1,13 @@
|
|
1
|
+
from matplotlib import pyplot as plt
|
2
|
+
from dune.fem.function import gridFunction
|
3
|
+
from ufl import SpatialCoordinate, triangle
|
4
|
+
|
5
|
+
def plotSolution(domain,uh,figsize, **kwargs):
|
6
|
+
x = SpatialCoordinate(triangle)
|
7
|
+
fig, axs = plt.subplots(1,2, figsize=[2*figsize[0],figsize[1]])
|
8
|
+
uh.plot(figure=(fig,axs[0]),**kwargs)
|
9
|
+
gridFunction(uh*domain.chi(x)).plot(figure=(fig,axs[1]),**kwargs)
|
10
|
+
for a in axs:
|
11
|
+
gridFunction(domain.phi(x), gridView=uh.space.gridView).plot(
|
12
|
+
onlyContours=True,contours=[0.5],gridLines=None,
|
13
|
+
contourWidth=2, contourColor="black", figure=(fig,a))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ddfem
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
4
4
|
Summary: Diffuse domain finite element solver
|
5
5
|
Author-email: Luke Benfield <luke.benfield@warwick.ac.uk>, Andreas Dedner <a.s.dedner@warwick.ac.uk>
|
6
6
|
License-Expression: MIT
|
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.9
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: fenics-ufl
|
14
|
+
Requires-Dist: fenics-ufl==2022.2.0
|
15
15
|
Requires-Dist: numpy
|
16
16
|
Dynamic: license-file
|
17
17
|
|
@@ -19,3 +19,6 @@ Dynamic: license-file
|
|
19
19
|
|
20
20
|
This is a package for solving complex PDEs based on the diffuse domain idea.
|
21
21
|
|
22
|
+
[Documentation][0]
|
23
|
+
|
24
|
+
[0]: https://ddfem.readthedocs.io/en/latest/index.html
|
@@ -7,8 +7,8 @@ packages = ["ddfem","ddfem.geometry","ddfem.transformers","ddfem.examples"]
|
|
7
7
|
|
8
8
|
[project]
|
9
9
|
name = "ddfem"
|
10
|
-
version = "1.0.
|
11
|
-
dependencies = [ "fenics-ufl
|
10
|
+
version = "1.0.2"
|
11
|
+
dependencies = [ "fenics-ufl == 2022.2.0", "numpy" ]
|
12
12
|
authors = [
|
13
13
|
{ name="Luke Benfield", email="luke.benfield@warwick.ac.uk" },
|
14
14
|
{ name="Andreas Dedner", email="a.s.dedner@warwick.ac.uk" },
|
ddfem-1.0.1/ddfem/dune.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|