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

cd
git clone https://github.com/gustafson/CalculiX
cd CalculiX
git checkout ubuntu
./ubuntu-install.sh

Update on new release

cd ~/CalculiX
git pull
./ubuntu-install.sh

Notes

  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
wget https://www.openaircraft.com/assets/examples/beamlin.zip
unzip beamlin.zip
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

Issues

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 23.10 LTS Mantic Minotaur but should also work with 22.04 LTS Jammy Jellyfish, 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 23.10
Release:	23.10
Codename:	mantic

Support the maintenance!

Please donate to support the maintenance of this code!