...................................................................................................................................................................................................................................................................................
1. Using launchpad to install Elmer in Ubuntu (This can install GUI of Elmer along with other modules)
There is this way to install ElmerNonGui in Ubuntu 14.04 (also tested in Ubuntu 16.04) as mentioned in this reference
a. First add ppa repository of elmer
Code: Select all
$ sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
Code: Select all
$ sudo apt-get update
(i) For Ubuntu 14.04, Ubuntu 16.04
Code: Select all
$ sudo apt-get install elmerfem-csc
Complete features using ElmerGUI
Code: Select all
$ sudo apt-get install elmerfem-csc-eg
Non-GUI features
Code: Select all
$ sudo apt-get install elmerfem-csc
[1]. https://github.com/ElmerCSC/elmerfem/wiki/Packages
[2]. viewtopic.php?f=2&t=5607
This will finish the installation of elmer in Ubuntu.
The xml files for solvers of installed ElmerGUI has to be copied from edf-extra to edf directory.
For this, we need to find the location of ElmerGUI,
d. Type and find out the location of ElmerGUI
Code: Select all
$ whereis ElmerGUI
Code: Select all
ElmerGUI: /usr/bin/ElmerGUI /usr/lib/ElmerGUI /usr/share/ElmerGUI
e. Copy the xml files from edf-extra directory to edf directory as root user:
Code: Select all
$ sudo -s
Code: Select all
$ cp -r /usr/share/ElmerGUI/edf-extra/* /usr/share/ElmerGUI/edf/
..........................................................................................................................................................................................................................................................................................
2. Using Cmake (This can install GUI of Elmer along with other modules)
The detail steps for installing Elmer using Cmake are provided in this link
viewtopic.php?f=2&t=3742&sid=6fb6416993 ... 8318f7a65d
............................................................................................................................................................................................................................................................................................
3. Compiling manually (The methods provided here describe only the compilation of ElmerNonGUI)
The following links have been referred for installation and compilation of elmer in Ubuntu 14.04 (64 bits)
http://www.elmerfem.org/elmerwiki/index ... r_on_Linux
http://www.elmerfem.org/elmerwiki/index ... u_12.04%29
http://ascend4.org/Building_Elmer_on_Ubuntu_12.04
https://subversion.apache.org/packages.html#debian
viewtopic.php?f=3&t=3585&p=12259&sid=73 ... 65d#p12259
viewtopic.php?f=2&t=2446(about path of libhuti.a)
viewtopic.php?f=2&t=3488&sid=6fb6416993 ... 8318f7a65d (the corresponding procedure in Ubuntu 12.04).
viewtopic.php?f=2&t=3581&sid=6fb6416993 ... 8318f7a65d (list of dependencies for installation of Elmer)
I would like to thank Matthias and Rasmus for their effort in providing the idea of selecting the "compile.sh" script for Elmer in Ubuntu 14.04. Also, i am learning new things through the ongoing discussions with Teobo.
Note:
- i. For the context of here , the scripts with "$" in their front mean that they are to be typed in the terminal and if they are without it "they are to be pasted in a file" and then will be implemented.
- ii. Find the number of processors of CPU by typing
in the terminal. For this context, it was 4.
Code: Select all
$nproc
this number has to be used later in step 4 below within the compile script as[/b]Code: Select all
make -j 4
- iii. Before installation, make sure that the dependencies for Elmer Installation (except that come along with Elmer package), as mentioned here, have been already installed in the Ubuntu machine. Some of them can be installed as following and some might already be existing in the computer.
Code: Select all
$sudo apt-get install libblas-dev liblapack-dev libatlas-dev libarpack2-dev \ libparpack2-dev libmpich2-dev libhypre-dev mpi-default-dev mpi-default-bin
1. Check out for the subversion
Code: Select all
$ sudo apt-get install subversion
$ sudo apt-get install libapache2-svn
2. Get the elmerfem source via the subversion
Code: Select all
$ svn checkout http://svn.code.sf.net/p/elmerfem/code/trunk elmerfem
Code: Select all
$ svn checkout https://svn.code.sf.net/p/elmerfem/code/trunk elmerfem
Code: Select all
$ cd elmerfem
Code: Select all
#!/bin/sh -f
# Compile Elmer modules and install it
#
# The elmer path is in home directory
export ELMER_HOME=$HOME/elmerinst/
export TCLTK_INCPATH="/usr/include/tcl8.4"
# replace these with your compilers:
export CC=gcc
export CXX=g++
export FC=gfortran
export F77=gfortran
modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter fem"
for m in $modules; do
cd $m
./configure --prefix="$ELMER_HOME" --with-tcltk="-ltcl8.4 -ltk8.4" --with-mpi-inc-dir="/usr/include/mpi"
make clean
make -j 4
make install
cd ..
done
5. Run the script as follows. This will make an installation directory "elmerinst" within the Home directory and it is the path to elmer.
Code: Select all
$ chmod u+x compile.sh
$ ./compile.sh
- In the terminal, type the following;
Code: Select all
$ gedit ~/.bashrc
Code: Select all
export ELMER_HOME=$HOME/elmerinst
#export ELMER_POST_HOME=$ELMER_HOME/share/elmerpost
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ELMER_HOME/lib
export PATH=$PATH:$ELMER_HOME/bin
Steps for Running of the ElmerNonGui Tutorial/ Elmer Tests
It is assumed that the elmerfem and elmerinst folders are in the home directory.
1. Make an elmer project directory
Code: Select all
$mkdir elmer_project
Code: Select all
$cp -r $HOME/elmerfem/fem/tests/CavityLid/ $HOME/elmer_project/CavityLid
Code: Select all
$cd ~/elmer_project/CavityLid/
Code: Select all
$ElmerGrid 1 2 square.grd
Code: Select all
$gedit case.sif
Code: Select all
Post File = case.vtu
Save the edited file.
6. Run the ElmerSolver command
Code: Select all
$ElmerSolver > anyname.log 2>&1
Code: Select all
$paraview
Code: Select all
$sudo apt-get install paraview
The following reply to this post describes the steps for running ElmerNonGUI in Ubuntu 14.04.
Yours
Anil Kunwar