Dolfin-x: An upgraded version of Dolfin
- Post by: Shubham Saurabh
- January 31, 2022
- No Comment
FEniCSx is the new version of FEniCS that is currently actively developed. Dolfin-x is the computational environment of FEniCS and implements the FEniCS problem-solving environment in Python and C++.
New features in Dolfin-x in addition to existing features of Dolfin include:
- Variational formulations with complex numbers support
-
Support for quadrilateral and hexahedral elements
-
Higher-order mesh support
Installation: A Docker image with Dolfin-x :
- Turn on the Docker Desktop application
-
Open Terminal
-
Run the command
docker pull dolfinx/dolfinx:latest
This will install a docker image of Dolfin-x in your system.
Running Dolfin-x
- Open Docker Desktop application
-
Open Terminal
-
There are two ways(real and complex builds) with which we can run the code using Dolfin-x:
(a) To run code through real build of Dolfin-x, use the following command-
Suppose we want to work in codes
folder of E drive
of the PC
docker run -p 8888:8888 -v E:/codes:/root/ -w /root/ dolfinx/lab:latest
(b) To run code through the complex build of Dolfin-x, use the following command-
To access the same codes
folder of E drive
of the PC
docker run -v E:\codes\:/root/shared -w "/root/shared" --rm --env LD_LIBRARY_PATH=/usr/local/dolfinx-complex/lib --env PATH=/usr/local/dolfinx-complex/bin:/usr/local/gmsh-4.6.0-Linux64-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env PKG_CONFIG_PATH=/usr/local/dolfinx-complex/lib/pkgconfig --env PETSC_ARCH=linux-gnu-complex-32 --env PYTHONPATH=/usr/local/dolfinx-complex/lib/python3.8/dist-packages -p 8888:8888 dolfinx/lab
Categories: Computing, FEniCS, FEniCSx, Programming, Scientific Computing
Tagged: cmder, coding, container, docker, dockerfile, FEniCS, FEniCSx, finite element, programming, python