CCX on Android Devices

Today smart phones have revolutionized Engineering Computations. Computer Aided Engineering (CAE) is now more easy and accessible with help of android tablets and phones.

CalculiX CrunchiX Solver – ccx is one of the most powerful Multiphysics GNU Finite Element Solver. This post is about how to compile and run gnu ccx on android. The code tested on HTC Incredible S and Android version 2.3.3.

If you are familiar with ccx or you can execute abaqus inp files using ccx, then, this script is helpful to you. Following steps show how to compile and run ccx on android.

1. Install Prerequisite Apps in Android:

a. Required android apps:

  1. GNURoot Wheezy by Corbin Champion
  2. GNURoot by Corbin Champion
  3. Free disk space on sdcard (better to have more than 6GB) and internal memory (better to have more than 500MB).

b. Required packages on Rootfs of GNURoot (Wheezy arm os):

  1. make
  2. gfortran
  3. gcc
  4. wget
  5. sed
  6. bzip2

2. Compiling ccx:

  1. Open GNUROOT
  2. Launch rootfs as fake root
  3. Download the script by following command:

    Or you can use tar files of cxbuild4mob. Untar and use it. Do not forget to go through readme file inside tar folder. Link of tar file is:
  4. Make script executable and then run it. Estimate downloading and compilation time for ccx is about 3 hours.

3. How to use ccx on Android:

  1. Open GNURoot

    GNURoot
    Fig. 1: GNURoot
  2. Check Launch as Fake Root option then press Launch Rootfs button.

    Rootfs
    Fig 2: Rootfs with Fake Root option checked
  3. Change current directory to folder where inp file exists. Verify by ls command and then run it under ccx.

    inp file
    Fig 3: Verify inp file.
  4. Check for errors in ccx log.

    Output log
    Fig. 4: Output Log of ccx.
  5. Verify output files.
    Ouput files of ccx
    Fig. 5: Output files of ccx

     

4. References:

  1. CalculiX CrunchiX
  2. GNURoot

One Reply to “CCX on Android Devices”

Leave a Reply