ddfem 1.0.2__tar.gz → 1.0.4__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.2 → ddfem-1.0.4}/PKG-INFO +9 -3
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/boundary.py +0 -1
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/domain_dune.py +8 -5
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem.egg-info/PKG-INFO +9 -3
- ddfem-1.0.4/ddfem.egg-info/requires.txt +7 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/pyproject.toml +10 -4
- ddfem-1.0.2/ddfem.egg-info/requires.txt +0 -2
- {ddfem-1.0.2 → ddfem-1.0.4}/LICENSE +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/README.md +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/__init__.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/__init__.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/advection_diffusion.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/beam.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/cahn_hilliard.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/chemical_reaction.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/constant.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/five_circle_flat.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/forchheimer.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/hyperelasticity.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/linear_elasticity.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/plaplace.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/single_circle.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/triple_circle.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/examples/triple_circle_beam.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/__init__.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/arc.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/ball.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/box.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/domain.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/helpers.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/pie.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/plane.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/primitive_base.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/geometry/vesica.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/model2ufl.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/plot.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/DDM1.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/Fitted.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/Mix0.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/NNS.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/NS.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/__init__.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem/transformers/transformer_base.py +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem.egg-info/SOURCES.txt +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem.egg-info/dependency_links.txt +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/ddfem.egg-info/top_level.txt +0 -0
- {ddfem-1.0.2 → ddfem-1.0.4}/setup.cfg +0 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ddfem
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.4
|
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
|
7
|
-
Project-URL: Homepage, https
|
8
|
-
Project-URL: Issues, https
|
7
|
+
Project-URL: Homepage, https://gitlab.dune-project.org/dune-fem/ddfem
|
8
|
+
Project-URL: Issues, https://gitlab.dune-project.org/dune-fem/ddfem/-/issues
|
9
|
+
Project-URL: Documentation, https://ddfem.readthedocs.io/en/latest/index.html
|
10
|
+
Project-URL: Repository, https://gitlab.dune-project.org/dune-fem/ddfem.git
|
9
11
|
Classifier: Programming Language :: Python :: 3
|
10
12
|
Classifier: Operating System :: OS Independent
|
11
13
|
Requires-Python: >=3.9
|
@@ -13,6 +15,10 @@ Description-Content-Type: text/markdown
|
|
13
15
|
License-File: LICENSE
|
14
16
|
Requires-Dist: fenics-ufl==2022.2.0
|
15
17
|
Requires-Dist: numpy
|
18
|
+
Requires-Dist: setuptools<81
|
19
|
+
Provides-Extra: dune
|
20
|
+
Requires-Dist: dune-fem; extra == "dune"
|
21
|
+
Requires-Dist: pygmsh; extra == "dune"
|
16
22
|
Dynamic: license-file
|
17
23
|
|
18
24
|
# Diffuse Domain Finite Element Methods
|
@@ -7,22 +7,25 @@ from .domain import Domain
|
|
7
7
|
|
8
8
|
|
9
9
|
class DomainDune(Domain):
|
10
|
-
def __init__(self, omega, x, gridView):
|
10
|
+
def __init__(self, omega, x, gridView, filterTolerance=0):
|
11
11
|
super().__init__(omega)
|
12
12
|
self.x = x
|
13
13
|
self.gridView = gridView
|
14
|
+
self.fullSDF = self.gridFunction(self.omega(self.x), name="full-sdf")
|
15
|
+
if filterTolerance>0:
|
16
|
+
self.gridView = self._filter(tolerance=filterTolerance)
|
17
|
+
self.fullSDF = self.gridFunction(self.omega(self.x), name="full-sdf")
|
14
18
|
|
15
19
|
self._phi = None
|
16
20
|
self._bndProj = None
|
17
21
|
self._extProj = None
|
18
22
|
self._bndProjSDFs = {}
|
19
23
|
|
20
|
-
self.fullSDF = self.gridFunction(self.omega(self.x), name="full-sdf")
|
21
24
|
|
22
25
|
def gridFunction(self, expr, name):
|
23
26
|
start_ = time.time()
|
24
27
|
gf = dune.fem.function.gridFunction(expr, name=name, gridView=self.gridView)
|
25
|
-
print(f"{name} setup: {time.time() - start_}")
|
28
|
+
# print(f"{name} setup: {time.time() - start_}")
|
26
29
|
return gf
|
27
30
|
|
28
31
|
def phi(self, x):
|
@@ -67,11 +70,11 @@ class DomainDune(Domain):
|
|
67
70
|
)
|
68
71
|
|
69
72
|
self.gridView.hierarchicalGrid.adapt(mark)
|
70
|
-
print(self.gridView.size(0))
|
73
|
+
# print(self.gridView.size(0))
|
71
74
|
lowerTol /= 2
|
72
75
|
upperTol /= 2
|
73
76
|
|
74
|
-
def _filter(self, tolerance
|
77
|
+
def _filter(self, tolerance):
|
75
78
|
sd = self.fullSDF
|
76
79
|
tol = tolerance # * self.epsilon.value: issue here with epsilon being a UFL expression due to CSG approach
|
77
80
|
phiFilter = (
|
@@ -1,11 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ddfem
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.4
|
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
|
7
|
-
Project-URL: Homepage, https
|
8
|
-
Project-URL: Issues, https
|
7
|
+
Project-URL: Homepage, https://gitlab.dune-project.org/dune-fem/ddfem
|
8
|
+
Project-URL: Issues, https://gitlab.dune-project.org/dune-fem/ddfem/-/issues
|
9
|
+
Project-URL: Documentation, https://ddfem.readthedocs.io/en/latest/index.html
|
10
|
+
Project-URL: Repository, https://gitlab.dune-project.org/dune-fem/ddfem.git
|
9
11
|
Classifier: Programming Language :: Python :: 3
|
10
12
|
Classifier: Operating System :: OS Independent
|
11
13
|
Requires-Python: >=3.9
|
@@ -13,6 +15,10 @@ Description-Content-Type: text/markdown
|
|
13
15
|
License-File: LICENSE
|
14
16
|
Requires-Dist: fenics-ufl==2022.2.0
|
15
17
|
Requires-Dist: numpy
|
18
|
+
Requires-Dist: setuptools<81
|
19
|
+
Provides-Extra: dune
|
20
|
+
Requires-Dist: dune-fem; extra == "dune"
|
21
|
+
Requires-Dist: pygmsh; extra == "dune"
|
16
22
|
Dynamic: license-file
|
17
23
|
|
18
24
|
# Diffuse Domain Finite Element Methods
|
@@ -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 == 2022.2.0", "numpy" ]
|
10
|
+
version = "1.0.4"
|
11
|
+
dependencies = [ "fenics-ufl == 2022.2.0", "numpy", "setuptools < 81" ]
|
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" },
|
@@ -23,6 +23,12 @@ classifiers = [
|
|
23
23
|
license = "MIT"
|
24
24
|
license-files = ["LICEN[CS]E*"]
|
25
25
|
|
26
|
+
[project.optional-dependencies]
|
27
|
+
dune = ["dune-fem", "pygmsh"]
|
28
|
+
|
26
29
|
[project.urls]
|
27
|
-
Homepage = "https
|
28
|
-
Issues = "https
|
30
|
+
Homepage = "https://gitlab.dune-project.org/dune-fem/ddfem"
|
31
|
+
Issues = "https://gitlab.dune-project.org/dune-fem/ddfem/-/issues"
|
32
|
+
Documentation = "https://ddfem.readthedocs.io/en/latest/index.html"
|
33
|
+
Repository = "https://gitlab.dune-project.org/dune-fem/ddfem.git"
|
34
|
+
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|