Using launchpad to install Elmer in Ubuntu 16.04

Discussion about building and installing Elmer
Post Reply
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Using launchpad to install Elmer in Ubuntu 16.04

Post by annier »

Installation of Elmer in Ubuntu 16.04 using Launchpad or ppa repository (This can install GUI of Elmer along with other modules)
There is this way to install ElmerNonGui in Ubuntu 14.04 and 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
b. Get update

Code: Select all

$ sudo apt-get update
c. Install elmer
Ubuntu 14.04, Ubuntu 16.04

Code: Select all

$ sudo apt-get install elmerfem-csc
Ubuntu 18.04
Without ElmerGUI

Code: Select all

$ sudo apt-get install elmerfem-csc

or,
With ElmerGUI

Code: Select all

$ sudo apt-get install elmerfem-csc-eg

References:
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
This will produce a promt message in the same terminal as:

Code: Select all

ElmerGUI: /usr/bin/ElmerGUI  /usr/lib/ElmerGUI  /usr/share/ElmerGUI  
The edf-extra and edf directories are located in /usr/share location.

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/
f. Run ElmerSolver and ElmerGUI commands:

Code: Select all

$ ElmerGUI
Take one example solver input file of Elmer with mesh define and run ElmerSolver.

Code: Select all

$ ElmerSolver anyname.sif
g. For running Elmer in parallel, use the following command

Code: Select all

$ mpiexec -n 4  ElmerSolver_mpi anyname.sif
If ElmerGUI opens and ElmerSolver starts resulting in solution of the solver input file, then the installation is successful.


Yours Sincerely,
Anil Kunwar
Last edited by annier on 02 Dec 2018, 13:19, edited 2 times in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
shubh_shinde
Posts: 19
Joined: 13 Aug 2017, 23:58
Antispam: Yes

Re: Using launchpad to install Elmer in Ubuntu 16.04

Post by shubh_shinde »

Hi Anil,
I am using Ubuntu 17.04
after sudo apt-get install elmerfem-csc it says

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package elmerfem-csc

Kindly suggest,
Shubham
axjjienn
Posts: 7
Joined: 10 Aug 2017, 23:45
Antispam: Yes
Location: San Francisco, CA USA

Re: Using launchpad to install Elmer in Ubuntu 16.04

Post by axjjienn »

Hey Shubham,

What do you get when you

Code: Select all

sudo apt-cache search elmerfem-csc
?

Also, are you sure you did a

Code: Select all

sudo apt-get update
before trying to install the package?

-Alejandro
dacts23
Posts: 1
Joined: 28 Aug 2017, 01:15
Antispam: Yes

Re: Using launchpad to install Elmer in Ubuntu 16.04

Post by dacts23 »

I am also using Ubuntu 17.04, when I do a cache search of elmerfem-csc I get nothing, but doing one with just "elmer", I get:
  • libgeo-helmerttransform-perl - Transformations between coordinates in different datums
  • elmer-doc - Elmer multiphysics FEA package documentation

What I did was:

Code: Select all

sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa


I made sure I did a

Code: Select all

sudo apt-get update && sudo apt-get install elmerfem-csc
but I only get E: Unable to locate package elmerfem-csc

hopefully someone knows how to solve this issue

-David
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Using launchpad to install Elmer in Ubuntu 16.04

Post by annier »

Hi Shubham and David,
The message E: Unable to locate package elmerfem-csc means Ubuntu cannot find the Elmer package in launchpad and so i guess till now Elmer version 8.3 is still unavailable for Ubuntu 17.04 owing to the present status of "yet to complete pass in build status". (The Elmer team in my guess, is trying to find the reason for it and they will make it available as soon as or after it passes the build up). However, it can be available for Ubuntu 16.04 or earlier.
For more information, please visit the following site:
https://launchpad.net/~elmer-csc-ubuntu ... /+packages
You can install it once the build status is ticked mark.
Now,
Either (Permanent Measure)
1. Wait for the Elmer team to complete build status in Ubuntu 17.04. It means Elmer version 8.3 has yet to complete pass in building in Ubuntu 17.04.

Or, (Temporary Measure)
Download earlier versions of Elmer (For an example Elmer 8.2) and install in Ubuntu 17.04:
Steps:
1. Download elmerfem-csc-8.2 from https://launchpad.net/~elmer-csc-ubuntu ... hive-extra
2. Install the ppa repository using

Code: Select all

sudo dpkg -i the-file-package-name.deb 
*the file package name is the file name of debian package of elmerfem-csc-8.2 that we download from the website.
3. Update and install elmerfem as

Code: Select all

sudo apt-get update && sudo apt-get install elmerfem-csc
4. Once, the build status shows completion and you want to install the version 8.3, you can do so after/by removing elmerfem's older ppa using dpkg -r command.


Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Post Reply