# Archives

### Dolfin-x: An upgraded version of Dolfin

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 […]

### Variational Calculus: Deriving the strong and weak form

There are many ways in which we can obtain the weak form and the strong form. We focus on the Variational Principles to derive them because FEniCS works on the variational form

### Built-in meshes in FEniCS

In FEniCS, we can either work with the inbuilt meshes or we can also import the mesh file generated in another pre-processing tool as a xdmf format. In order to create inbuilt meshes, firstly, dolfin module is imported as: Matplotlib library is used to display the mesh plots. The different types of inbuilt meshes in […]

### Boundary conditions in FEniCS

Boundary conditions (B.C.) are constraints necessary for the solution of a boundary value problem. A boundary value problem is a differential equation (or system of differential equations) to be solved in a domain on whose boundary a set of conditions is known. Boundary value problems are extremely important as they model a vast amount of […]

### Vector and Matrix Operations in PETSc (via petsc4py)

Through this post, you will learn how to do basic vector and matrix operations through petsc4py and how to solve a small linear problem using petsc4py. In addition, FEniCS PETSc formats and conversions are also briefly mentioned.

### Data Structure of FEM in FEniCS

Storing the element connectivity, element nodes, nodal degrees of freedom etc.. are of significant importance in any numerical package which implements finite element analysis. And this constitutes the data structure of FEM. In this post, I will try to explain how FEniCS does this.

### Demystifying DOCKER – II : The FEniCS Workflow

Part I : Demystifying DOCKER â€“ I : The What and How Now that the idea and use of docker is clear, and that docker is installed and running; let us see how to make use of it to run FEniCS based codes in your system. FEniCS is a popular open-source computing platform for solving […]

### Demystifying DOCKER – I : The What and How

Docker is a set of coupled software-as-a-service and platform-as-a-service products that use operating-system-level virtualization to develop and deliver software in packages called containers. The software that hosts the containers is called Docker Engine. If you are like me and didn’t understand any word of the above sentence, WELCOME, you are in the right place !!! […]

### How to visualize which part of mesh is with which processor

In our research we come across many high scale problem which need to be solved, and it is very important that the approach should be efficient. One of the way by which we can run a program parallelly. In our lab we commonly use Python language and FEniCS for computation. How to do parallelization for […]

### FEniCS is incredible!

I have been using FEniCS in my research for the past two years, and I have to say that it is just pure gold in scientific computing with differential equations. It helps you think way beyond the constructions of domain-specific implementations of finite element method. You will not understand its powers until you have faced […]