FEniCS installation at ESCO2016

Together with my friends Jan Blechta, Simon Funke and Carl Lundholm, I’m doing a FEniCS demo session at ESCO 2016. Since internet access is a bit shaky at the conference location (and shared by many participants), we will try to distribute and install FEniCS via USB sticks. (If you happen to have good internet access, try the official FEniCS installation instructions.)

The USB stick contains 4 files:

  • DockerToolbox-1.11.2.exe (Docker installation for Windows)
  • DockerToolbox-1.11.2.pkg (Docker installation for Mac)
  • fenics.tar (the FEniCS Docker image)
  • fenicsproject (the FEniCS Docker script)

To install FEniCS on your laptop, follow these instructions:

  1. Install Docker. Windows users, click the Docker Toolbox exe file, Mac users, click the pkg file, and Linux users, run the command curl -fsSL https://get.docker.com/ | sh.
  2. Start Docker. Windows and Mac users, just start the Docker Toolbox and you should get a Unix terminal window. Linux users should be good to go and can skip this step.
  3. Install the FEniCS Docker image. Identify the path to the USB stick and load the FEniCS image into Docker by running something like docker load -i /Volumes/USB\ DISK/fenics.tar. This might take some time since the FEniCS image needs to be copied from the USB stick.
  4. Install the FEniCS Docker script. Identify the path to the USB stick and copy the FEniCS Docker script onto your system by running something like sudo cp /Volumes/USB\ DISK/fenicsproject /usr/local/bin.

If you followed these steps, you could potentially have a working Docker/FEniCS installation on your machine. The fenicsproject script provides many different ways to work with FEniCS in Docker. For the demo session, we will create a FEniCS Jupyter notebook. To start a FEniCS notebook, just run the following command:

Then just follow the instructions and you should have a FEniCS notebook running in your web browser.

Troubleshooting

  • If running on Windows, cd into some directory not containing spaces in the name before running the fenicsproject command (so stay our of My Documents).
  • If running on Windows, you might need to enable virtualization in BIOS.

 

Recent Posts

Recent Comments

Meta

logg Written by:

Anders Logg is Professor of Computational Mathematics at Chalmers University of Technology. His research interests are adaptive finite element methods, high-level automating software systems for solution of PDE, domain-specific languages and compilers in scientific computing, and applications in biomedicine, general relativity, and architecture. Logg is head of the unit for Computational Mathematics and excellence profile leader within Chalmers Area of Advance the Built Environment. He is director of the Swedish Network for Mathematics in Industry and member of the EMS Applied Mathematics Committee and the Swedish National Committee for Mathematics. He is co-founder and a core developer of the FEniCS Project, a leading open-source software for automated solution of PDE. Logg works part-time as scientific advisor to Fraunhofer-Chalmers Centre and Simula Research Laboratory.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *