Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views5 pages

Abaqus18 On Ubuntu18.04LTS

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

ABAQUS 2018 and Fortran Compilers on Ubuntu 18.

04LTS
Georgios TZORTZOPOULOS

06/02/2019

Installation steps of Abaqus 2018 on Ubuntu 18.04LTS


In this guide, I will explain you from scratch, the steps which are required in order to install
Abaqus 2018 on a recently installed Ubuntu 18.04LTS on Windows 10 OS.

1. Install prerequisites
(a) First you have to update all the packages and libraries of Ubuntu 18.04LTS:

sudo apt-get update


sudo apt-get upgrade

(b) Then you should install some basic packages and libraries in order to successfully install
Abaqus and to edit some files afterwards:

sudo apt-get install gedit csh tcsh ksh gcc g++ gfortran libstdc++5 build-essential
make libjpeg62 libmotif-dev libglu1-mesa

(c) Finally, you should install Xming (or equivalent):

https://sourceforge.net/projects/xming/

2. Edit all Linux.sh files


Apart from Ubuntu, you should edit some installation files as well. Go to the downloaded
folders of Abaqus 2018 and search for all Linux.sh files. Open them with an editor and edit
them as it follows:

(a) Find the 9th line:

DSY_OS_Release=‘lsb_release --short --id |sed ’s/ //g’‘

(b) And edit it as below:

DSY_OS_Release="CentOS"

1
(c) Also, enter a new line below the 11th line:

export DSY_Skip_CheckPrereq=1

So, the Linux.sh files should look like the one below:

3. Run installation of Abaqus 2018


After all these steps, it is time to run the installation of Abaqus:

export DISPLAY=:0

cd /directory_of_downloaded_folders_Abaqus18/AM_SIM_Abaqus_Extend.AllOS/1/

sudo ./StartGUI.sh

Follow the instructions (use the default options) and install the parts that you are interested
in. If you face problems with FLEXNET License, just continue the installation without
activation and you will fix this problem later (see: step 5).
4. Make Abaqus available from any directory
After you have finished with the installation of Abaqus 2018, it is wise to make Abaqus
available from any directory:

sudo ln /var/DassaultSystemes/SIMULIA/Commands/abq2018 /usr/bin/abaqus

2
Therefore, in order to run Abaqus CAE, just enter the following command wherever you are:

sudo abaqus cae

If you see a warning in the cmd says that ”Your system needs to be reconfigured to allow
OpenGL rendering to a pixmap or Pbuffer;...”, then you should use the following command
in order not to face any transparency problems during the execution of the GUI:

sudo abaqus cae -mesa

5. FLEXNET License issues


If you have faced any problems during the installation with the FLEXNET License or when
you run the previous command, then follow these instructions. When you run the previous
command an error occurred regarding to two files:

abaqus_v6.env
custom_v6.env

In order to fix this, type in the command line:

sudo gedit /usr/DassaultSystemes/SimulationServices/V6R2018x/linux_a64/


SMA/site/custom_v6.env

In the new window which was opened, edit the 6th and 7th lines:

license_server_type=FLEXNET
abaquslm_license_file="your_license"

where "your_license" is your license in the form: "27000@maroon.abaqus.com".


When you are ready, save the file and close the window. Then run again Abaqus CAE.
Probably, you will not face any problem with the installation and licensing again.

Compiling and Linking steps of GFortran with Abaqus 2018


As you may have noticed, in the first step you installed gfortran in Ubuntu 18.04LTS. So, now,
I will give you the instructions in order to compile and link User Subroutines written in Fortran
with Abaqus 2018.

1. You need to open and edit the lnx86_64.env file because the default Fortran compiler in
Abaqus 2018 is ifort and not gfortran:

sudo gedit /usr/DassaultSystemes/SimulationServices/V6R2018x/linux_a64/


SMA/site/lnx86_64.env

3
2. So, you should perform the following changes in this file. Let’s start from the 12th line. It is
like this:

fortCmd = "ifort" # <-- Fortran compiler

and it should be like this:

fortCmd = "gfortran" # <-- Fortran compiler

3. The 26th line is like this:

compile_fortran = [fortCmd,
’-V’,
’-c’, ’-fPIC’, ’-auto’, ’-mP2OPT_hpo_vec_divbyzero=F’,
’-extend_source’,
’-fpp’, ’-WB’, ’-I%I’, ’-I’+abaHomeInc, ’%P’]

And it should be like this:

compile_fortran = [fortCmd,
’-c’, ’-fPIC’, ’-extend_source’,
’-Warray-bounds’, ’-I%I’]

4. The 54th line is like this:

link_sl = [fortCmd,
’-V’,
’-cxxlib’, ’-fPIC’, ’-threads’, ’-shared’,’-Wl,--add-needed’,
’%E’, ’-Wl,-soname,%U’, ’-o’, ’%U’, ’%F’, ’%A’, ’%L’, ’%B’,
’-parallel’,
’-Wl,-Bdynamic’, ’-shared-intel’]

And it should be like this:

link_sl = [fortCmd,
’-fPIC’, ’-pthread’, ’-shared’,
’%E’, ’-Wl,-soname,%U’, ’-o’, ’%U’, ’%F’, ’%A’, ’%L’, ’%B’,
’-Wl,-Bdynamic’,
’-lifport’, ’-lifcoremt’]

5. Your lnx86_64.env file should look like this, now:

4
6. Now save the file and close the gedit window. Then, go to the folder where your Fortran
Subroutine (.f file) is saved and enter the command:

sudo abaqus make library=name_of_fortran_file.f

7. In order to use the shared object (.so file) that you created open the lnx86_64.env again
and add to the end of the code the following line:

usub_lib_dir = ’path_to_.so_file’

Be careful, you should not point the .so file in the path above, but only the folder which is
contained. In this way, it’s not necessary to find the path for every single job. Just run the
job without any changes in the job properties regarding the user subroutine file.

You might also like