Walkthrough of Installation

Hi,

Can anyone walk me through the installation of Fenicsx step by step? I have no idea how to build the C++ core and I need to use it for my PDES class this weekend. Any help would be super super appreciated.

I would suggest having a look at: GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment

In general, I would not recommend installing it from source (especially if you haven’t done it before).

There are many other ways of obtaining FEniCSx, see GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment

Would installing it through the environment give me all the packages necessary?

Alexander Brower

You have not specified what environment you are considering.

If you mean conda:
It installs all required dependencies to run DOLFINx (including petsc and adios2).

You can see all the deps that are installed at fenics-dolfinx-feedstock/meta.yaml at main · conda-forge/fenics-dolfinx-feedstock · GitHub

Okay, I am trying to download and use Fenicsx on my personal windows laptop. I plan on working in Spyder or Visual Studio Code. I saw conda is not recommended for windows since the packages aren’t supported through conda. So I did the following:

  1. I installed docker and ran
    docker run -ti dolfinx/dolfinx:stable

My question now is where do I go from here? How do I finish installing the rest of the fenics/dolfin packages to be able to successfully work in Sypder or VS Code.

I’m sorry for all the questions, I’ve never had to go through such a process. I appreciate the help.

Alexander Brower

In the terminal this spawns, you can run any script with dolfinx in it. Everything is installed.

As you probably want to write scripts on your own computer, you should mount a volume (share a directory of your computer with the docker container).
See for instance Installation problems - #16 by dokken
and all subsequent posts

Alright, I will try this out and let you know how it goes. Thanks for all the help, I really appreciate it.

Alexander Brower