# Archives

### Steps to install Salome

Step 1: Go to the official website of Salome https://www.salome-platform.org/?page_id=15 and download the setup. Step 2: Right-click on the setup and select run as administrator. Step 3: The license agreement window appears on the screen. Select on the accept the agreement button and then select the next button. Step 4: After that, select the destination […]

### Steps to install Docker Desktop

Step 1: Go to the docker desktop official website https://www.docker.com/products/docker-desktop/ and click on download docker desktop for windows. Step 2: Once the setup has been installed, then right-click on the setup and click on the run as administrator. Step 3: The docker desktop installation process is started. The configuration window appears on the screen, click […]

### Reasons and solutions for the optimization algorithm convergence

Various reasons are responsible when the optimization algorithm’s convergence is not ensured. Some of the following steps are beneficial in fixing this issue:  Ensure that the objective function and the constraints are appropriately formulated. Ensure that the objective and constraint functions are continuous and differentiable at least up to the second order. If the objective […]

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

### Tuple in Python

Tuple is a type of data structure, which is a finite ordered sequence of entities or objects of different data types including numbers, strings, boolean, lists and other tuples. An $n$- tuple is typically an $n$ order tuple containing $n$ elements. Properties of tuple : Ordered – the items are defined in a definite positions […]

### Calculus with Sympy

Sympy is a python package through which we can perform calculus operations in mathematics like differentiation, integration, limits, infinite series, and so on. It is a python library used mainly for symbolic mathematics. The installation of this library is simple by using the following command: pip install sympy In order to write any symbolic expressions, […]

### Obtaining volume, centre of gravity and inertia matrix from STL file

In order to get the details about the volume, centre of gravity and inertia matrix from the STL file of the geometry, we use the numpy-stl python library. It is an efficient and simple library to make work with STL files. The installation of this library is done using command:pip install numpy-stlAfter installing this package, […]

### 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.

### Practice problems for coding

Anything that has not been tried before seems a nightmare to start, may be that can be said for the coding as well. But, one has to start at some point and possibly this can be a good time to do so; here we will be discussing about two of the very standard yet simple […]

### Understanding loops in Python

Patterns can be printed in python using simple for loops. The first outer loop is used to handle number of rows and the Inner nested loop is used to handle the number of columns. Manipulating the print statements, different number patterns, alphabet patterns or star patterns can be printed. By printing different patterns, you can build […]