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
- 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
- You could optionally install the Pardiso library without the Intel Math Kernel Library (MKL)
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 &
- In paraview, you must use the “Legacy Exodus Reader (LegacyExodusReader)”.
- Subsequently, under variables within the properties browser, (selected from view menu and typically shown in the lower left corner), toggle U, S, and E.
- Click “apply” at the top Change the “solid color” (near top) to “S”.
- Change “Surface” to “Surface with Edges”
- 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 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!