Calculix container. Base image for us to adapt and edit.
1.4K
First must download and install docker this is easy...
(This is all built from https://github.com/parallelworks/Dockerfiles/tree/master/calculix as the base image)
docker pull e2grnddockerhub/calculixparallel
Put examples ccx_2.14-.test.tar.bz2 and unpack (http://www.dhondt.de/ under test examples) into local folder, e.g. C:\Users\dbrown\git\calculix\caclulixLocal
docker run --rm -t -i -v C:\Users\dbrown\git\calculix\caclulixLocal:/shared e2grnddockerhub/calculixparallel
On windows you can use the following to link the current directory to the docker container: docker run --rm -t -i -v %cd%:/shared e2grnddockerhub/calculixparallel
Navigate to the shared folder ./shared and find the examples there. (They should be both locally on your working folder on your machine as well as in the docker container. Note this will create a temporary docker container that will be deleted once you type exit)
To run CalculiX using multi-threads set the following variables: np=X export OMP_NUM_THREADS=$np export CCX_NPROC_RESULTS=$np # for subroutine calcs export CCX_NPROC_EQUATION_SOLVER=$np export NUMBER_OF_CPUS=$np
where X is the number of threads. By default CalculiX runs with 1 CPU.
Can also find examples at https://github.com/mkraska/CalculiX-Examples.git (These need a usable cgx! Can maybe put in GUI web browser docker image..to do list...)
ccx_2.12_MT -i jobname (e.g. beamp)
Can change this to simply ccx by doing:
Get the directory location
which ccx_2.12_MT
To set link
ln -s /opt/CalculiX-2.12-executables/ccx_2.12_MT /opt/CalculiX-2.12-executables/ccx
To check
ls -l /opt/CalculiX-2.12-executables/
To visualize use (might need to have gui version of docker for this....) cgx_2.12
A copy of the CalculiX source files are under /opt/ccx-212-patch-PW/ The CalculiX and CalculiX GraphiX executables (ccx_2.12, and cgx_2.12) are added to the path (/usr/bin)
!Do not link locally when doing this, the local link will delete the container when you exit! Instead use: docker run -i -t e2grnddockerhub/calculixparallel
Compile spooles
cd /opt/ccx-212-patch-PW/spooles.2.2/
make lib
cd MT/src/ make
Compile ARPACK
cd /opt/ccx-212-patch-PW/ARPACK/
make lib
removes the object files, but keep the library
make clean
Compile ccx_2.12_MT
cd /opt/ccx-212-patch-PW/src
make
cp /opt/ccx-212-patch-PW/src/ccx_2.12_MT /opt/CalculiX-2.12-executables/
NOTE: Do not forget to commit changes to the container, the image, and push the new version to the docker hub! These changes will not be saved otherwise.
Content type
Image
Digest
Size
292 MB
Last updated
about 8 years ago
docker pull e2grnddockerhub/calculixparallel