Problems with executing Elmer/Ice examples

Extension of Elmer in computational glaciology

Problems with executing Elmer/Ice examples

Postby glebcher » 14 Apr 2018, 22:07

Hello,

I am a new Elmer/Ice user. The program (Elmer with Elmer/Ice) was just installed on my computer (OS Ubuntu 16.04 LTS), so I have never used it before. The tests for Elmer/Ice were started from command line with
Code: Select all
ctest -L elmerice
and were passed almost completely (41 of 42, except Contact test). The first question is whether this installation error is crucial and I would not be able to use the system effectively with it?

The second problem arose when I tried to execute my first Elmer/Ice example Toy flow-line model from Elmer/Ice courses. First, I put the directory TestGlacier with data and code to elmerice directory (the full path is home/home/elmerfem-release-8.3/elmerice/examples/TestGlacier). Then I perform in command line consequently
Code: Select all
gmsh -2 testglacier.geo 
ElmerGrid 14 2 testglacier.msh\ –autoclean –order 0.1 1.0 0.01
emacs Stokes_diagnostic.sif 
ElmerSolver Stokes_diagnostic.sif

I got two error messages (see attachments). The files testglacier.msh and Stokes_diagnostic.sif do exist.
Their full paths are
home/home/elmerfem-release-8.3/elmerice/examples/TestGlacier/SolutionFiles/testglacier.msh,
home/home/elmerfem-release-8.3/elmerice/examples/TestGlacier/Stokes_diagnostic.sif.
So I don't have any output and don't understand what is wrong. I would be very grateful for any help or advise.

Regards,
Gleb
Attachments
2.png
Reply to ElmerSolver Stokes_diagnostic.sif
(134.93 KiB) Not downloaded yet
1.png
Reply to ElmerGrid 14 2 testglacier.msh\ –autoclean –order 0.1 1.0 0.01
(110.06 KiB) Not downloaded yet
glebcher
 
Posts: 2
Joined: 07 Apr 2018, 17:58

Re: Problems with executing Elmer/Ice examples

Postby gagliar » 24 Apr 2018, 16:43

Hi Gleb,

The problem with the Contact test is not an issue and the fact that 41 of the 42 tests have passed indicates that you have a working Elmer/Ice program.

For the TestGlacier, when you untar the archive from the wiki (http://elmerice.elmerfem.org/wiki/lib/e ... 017.tar.gz), you should get a directory TestGlacier which contains at least the two files Stokes_diagnostic.sif and testglacier.geo

To create the mesh :
Code: Select all
gmsh -1 -2 testglacier.geo

should create testglacier.msh (if not, what is the error message?). Then,
Code: Select all
ElmerGrid 14 2 testglacier.msh –autoclean

should create the Elmer mesh (a directory named testglacier with 4 files mesh.* inside).
It seems that you have added a "\" after testglacier.msh that might have created a problem?

Then, if you don't have the Elmer mesh, the execution of ElmerSolver will not work. So, the second error is due to the first one.

Hope it helps,
Olivier
gagliar
 
Posts: 54
Joined: 04 Sep 2009, 16:34
Location: LGGE - Grenoble

Re: Problems with executing Elmer/Ice examples

Postby glebcher » Yesterday, 20:12

Dear Oliver,

thank you very much for your reply and advice. I have tried what you suggested. Nevertheless, I didn't succeed in solving my problem. In fact, directory TestGlacier already includes file testglacier.msh and directory testglacier, and when I perform
Code: Select all
gmsh -1 -2 testglacier.geo
it creates one more testglacier.msh file, but it contains no nodes and elements. The second command
Code: Select all
ElmerGrid 14 2 testglacier.msh –autoclean
doesn't create directory testglacier besides already existing one (you were right about odd symbol "\"). Finally,
Code: Select all
ElmerSolver Stokes_diagnostic.sif
can't find Stokes_diagnostic.sif. I attach a screenshot of all the commands and messages.

Regards,
Gleb
Attachments
3.png
(210.45 KiB) Not downloaded yet
glebcher
 
Posts: 2
Joined: 07 Apr 2018, 17:58

Re: Problems with executing Elmer/Ice examples

Postby gagliar » Yesterday, 20:41

Are you executing the commands in the directory that contains the files testglacier.geo and Stokes_diagnostic.sif, i.e. in the directory TestGlacier? If not, you should first move in this directory (e.g. cd home/home/elmerfem-release-8.3/elmerice/examples/TestGlacier/) and then execute the different commands.
Olivier
gagliar
 
Posts: 54
Joined: 04 Sep 2009, 16:34
Location: LGGE - Grenoble


Return to Elmer/Ice

Who is online

Users browsing this forum: No registered users and 1 guest