CalculiX Extras for Ubuntu

These instructions compile version 2.20 of CalculiX

Clone, install dependencies, and compile

Note this will require sudo privileges

Initial build

git clone
cd CalculiX
git checkout ubuntu

Update on new release

cd ~/CalculiX
git pull


  1. The script above installs the Intel Math Kernel Library (MKL) - This makes blas, lapack, and arpack redundant (also installed above) and may provide faster solutions - It is closed source non-free and may violate some code licensing restrictions - It does, however, have the the Pardiso library (which can optionally be used by ccx for improved solver speed) - The Makefile (see below) assumes this has been installed
    • You could optionally install the Pardiso library without the Intel Math Kernel Library (MKL)
      • (There is no need if you have installed the Intel MKL library)
      • This may provide faster solutions
      • Further, it is closed source non-free and may violate some code licensing restrictions
      • You will need to edit the Makefile to address this path

Run a test job

cd ~/CalculiX
mkdir test
cd test
ccx beamlin -o exo

Visualize with Paraview

paraview beamlin.exo &
  1. In paraview, you must use the “Legacy Exodus Reader (LegacyExodusReader)”.
  2. Subsequently, under variables within the properties browser, (selected from view menu and typically shown in the lower left corner), toggle U, S, and E.
  3. Click “apply” at the top Change the “solid color” (near top) to “S”.
  4. Change “Surface” to “Surface with Edges”
  5. Spin the model in the window

Optionally install netcdf-bin

It is sometimes useful to examine the metadata (and other data) from the exodus file without using paraview. This can be done with netcdf-bin:

sudo apt-get install netcdf-bin
ncdump beamlin.exo


Please report issues/bugs with CalculiX Extras via github. Note issues/bugs with CalculiX (exclusive of CalculiX Extras) should be discussed on the CalculiX discourse group.

This was most recently tested using 22.04 LTS Jammy Jellyfish but should also work with 20.04.5 LTS Focal Fossa and 18.04.6 LTS Bionic Beaver.

You may check your install using the following:

lsb_release -a

For example:

pete@ubuntu:~/CalculiX$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

Support the maintenance!

Please donate to support the maintenance of this code!