Dolfin-plot doesn't work on python 3

Hi,

I’m just reading through the FeniCS book and found the command (e.g.)

dolfin-plot BDM tetrahedron 3

This dosen’t work any longer since it depends on python-soya which ist outdatet and not convertible (I failed) to python 3.

Maybe this can be repaired by someone.

The current development of visualization is done in dolfin-X, were the aim is support visualization of arbitrary order CG and DG elements. The idea would then be to interpolate more fancy elements, such as BDM and Nedelec elements, i not the appropriate CG/DG space. Related to: Pyvista demos by jorgensd · Pull Request #1161 · FEniCS/dolfinx · GitHub

I would suggest having a look at DefElement: Brezzi–Douglas–Marini
Which has proper definitions and visualization of the basis functions of most Finite elements.

Or you could have a look at: Periodic Table of the Finite Elements

Thank you.

I have several literature where the elements are described. I just wanted to point to the outdatet software wich is described in the quite expensive FEniCS book, which is rather new (2016).

Best regards.

Which FEniCS book are you referring to?
You can always access the earlier versions of the software Which had these capabilities using docker, see: Download – FEniCS Project

The original FEnics book was released in 2012; and as Documentation – FEniCS Project describes:
" The book was published in 2012, which means that some of the examples presented in the book may use old interfaces that are no longer supported by FEniCS. However, the book still gives a good description of the design of FEniCS."

The FEniCS tutorial, released in 2016 is an open access book, available at: The FEniCS Tutorial – FEniCS Project and the code in the book is compatible with the 2016.2.0 version in docker or if you install the software from source.

Currently, I am updating the FEniCS tutorial to work with the latest version of dolfin (dolfin-x) available at: The FEniCS-X tutorial — FEniCS-X tutorial

I refer to the book

Automated Solution of Differential Equations by the Finite Element Method: The FEniCS Book (Lecture Notes in Computational Science and Engineering, 84, Band 84)

… wich is obviously from 2012 and not 2016 - sorry.

I’m just through the first 1/5 of the book. I got it because it is much more detailed and extensive then the small free book. It’s a pity, that it is outdated now in some parts of the code examples.

Best regards

Michael

As you say, the book is quite extensive, and it would require a massive amount of work to keep the code up to date (and make a new release for every dolfin release).
I would use the large range of documented demos: Demos — DOLFIN documentation
to supplement the outdated code in the book.

I would claim that what has changed the most Since 2012 is visualization. There is a large variety of tools, such as vedo and pyvista which has alot more support for fancy visualization than dolfin had.

You can also use Paraview to read pvd and xdmf files, to do visualization/postsprocessing in a GUI.

Thank you. I will do so and hope that eventually the (very good) book is updated.

hello,dokken.
The book Automated Solution of Differential Equations by the Finite Element Method was published in 2012, and it is no longer compatible with the current fenics. Is there a new similar book or a new version of the book?

1 Like

As stated in the previous post, it requires a lot of work to keep such an extensive book up to date.

In 2016, the FEniCS tutorial was published, compatible with the 2016.2.0 version of FEniCS

Since 2020 Ive been maintaining the FEniCSx tutorial which is compatible with the latest release of Dolfinx (v0.5.2).