Add a Python implementation of the mixed Poisson example
This example program does the same as poisson-mfem.cc, but using the Python interface. The only difference is the type of the stiffness matrix. The C++ example uses a 2x2 matrix of BCRSMatrix objects, but that is not easy to replicate in Python unless we start writing Python bindings for dune-istl. This new Python example uses a single flat matrix instead.
Merge request reports
Activity
This is currently a snapshot only, and far from working. In particular, it needs the Raviart-Thomas bindings from !440 (merged), and lots of other fixes.
added 51 commits
-
2ffea8dc...6cafc0bd - 48 commits from branch
master
- 9f37fc46 - Modernize poisson-mfem.cc a tiny bit
- 54d4bc4e - Add a Python implementation of the mixed Poisson example
- b9ed6556 - WIP: poisson pq2.py
Toggle commit list-
2ffea8dc...6cafc0bd - 48 commits from branch
added 1 commit
- 0c22b3d4 - [python][examples] Avoid warning due to implicit conversion of 1-dim vector to scalar
added 2 commits
added 8 commits
-
4400bd66...125baf28 - 4 commits from branch
master
- 1712bd62 - Modernize Poisson examples a tiny bit
- cbce504c - Add a Python implementation of the mixed Poisson example
- bb476615 - WIP: poisson pq2.py
- 7cb7374c - Ensure proper type range type in contravariant Piola-transfomation
Toggle commit list-
4400bd66...125baf28 - 4 commits from branch
added 13 commits
-
04fa1350...03dc66b6 - 5 commits from branch
master
- 6bd14a8f - Modernize Poisson examples a tiny bit
- d5225afd - Add a Python implementation of the mixed Poisson example
- 636b8792 - WIP: poisson pq2.py
- cde6d6dc - [python][examples] Implement boundary marking in poissson-mfem
- a8494a8e - [python][examples] Fix boundary indicator functions in poisson-mfem
- b4fe4712 - [python][examples] Incorporate constraints in poisson-mfem
- 8d7255a0 - poisson-mfem.cc: Remove bogus comment
- cfbe66e8 - [python] Use new method LocalView::element()
Toggle commit list-
04fa1350...03dc66b6 - 5 commits from branch
I implemented non-zero flux BC for the
poisson-mfem
example and modified this example according to !463 (merged).The flux BC are now use a manually provided normal field instead of the so far missing bindings for
FaceNormalGridFunction
.added 20 commits
-
e5dd7fa4...2f917b12 - 16 commits from branch
master
- a245ea95 - Modernize Poisson examples a tiny bit
- 3bde530f - [python] Export Tree::finiteElement as a method
- ff79a401 - [python][examples] Add a Python implementation of the mixed Poisson example
- 9039bd86 - WIP: poisson pq2.py
Toggle commit list-
e5dd7fa4...2f917b12 - 16 commits from branch
added 5 commits
Toggle commit listenabled an automatic merge when the pipeline for 65724bda succeeds
added 4 commits
Toggle commit list