CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Creating shortcut for HelyxOS

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By UPengineer
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2013, 06:33
Default Creating shortcut for HelyxOS
  #1
New Member
 
Kramer
Join Date: Aug 2013
Posts: 9
Rep Power: 3
UPengineer is on a distinguished road
Hello,

I am very new to both OpenFOAM and linux. I have been using HelyxOS v1.0.3 GUI for OpenFOAM 2.2.1 on Ubuntu 12.04.

I have been trying to create a shortcut to the HelyxOS on my desktop instead of manually entering in the path every time I would like to open HelyxOS, and also because others (even less linux proficient than I) will be using it in the future.

One method I have been attempting to try is by creating a text file on my desktop as below:

[Desktop Entry]
Name=HelyxOS
Exec=~/Documents/Engys/HelyxOS/v1.0.3/helyxOS.sh
Terminal=true
Type=Application


I also made sure to "allow executing file as program" in the permission tab of the properties. The problem with this is that when I double click to open and click "Run in Terminal" the terminal will pop up for 1 second and then nothing will happen.

After this I then did more research and attempted to create a launcher from gnome, meaning.
gnome-desktop-item-edit --create-new ~/Desktop

which prompted me with:

"Type"
"Name"
"Command"
"Comment"

which I filled out with:

Type --> Application
Name --> HelyxOS
Command --> /home/[User]/Documents/Engys/HelyxOS/v1.0.3/helyxOS.sh
Comment --> [None]


The problem with this is that it does not open HelyxOS from the terminal so I get the old
"Error loading VTK Librares" which also seems to happen if I try opening HelyxOS from the
folder itself with the terminal.

The only way I have been able to successfully run HelyxOS is by starting in the terminal:

>> cd Documents/Engys/HelyxOS/v1.0.3/
>> ./helyxOS.sh


Please help me understand what I am doing incorrectly.

Thank you

wyldckat likes this.
UPengineer is offline   Reply With Quote

Old   October 26, 2013, 11:46
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings UPengineer and welcome to the forum!

Many thanks for sharing this idea! Here's what I suggest and should fix the problem:
  1. If you are using OpenFOAM 2.2.1 from the Deb packages for Ubuntu, make sure you have got the symbolic link for "libmpi.so.1" ready to be used for HelyxOS:
    Code:
    cd Engys/HelyxOS/v1.0.3/
    ln -s $MPI_ARCH_PATH/lib/libmpi.so "ext/libmpi.so.1"
  2. Edit the script "Engys/HelyxOS/v1.0.3/helyxOS.sh" and change the contents from this:
    Code:
    #!/bin/bash -x
    
    THIS_FILE=`readlink -f $0`
    THIS_FOLDER=`dirname $THIS_FILE`
    
    export HELYX_LAUNCHER=$THIS_FILE
    source $THIS_FOLDER/bin/launcher.conf
    
    launch "HelyxOS"
    To this:
    Code:
    #!/bin/bash
    
    source /opt/openfoam221/etc/bashrc
    
    THIS_FILE=`readlink -f $0`
    THIS_FOLDER=`dirname $THIS_FILE`
    
    cd "${0%/*}"
    
    export HELYX_LAUNCHER=$THIS_FILE
    source $THIS_FOLDER/bin/launcher.conf
    
    launch "HelyxOS"
    This will ensure that the script is launching in a working OpenFOAM environment and that it's being launched from the correct folder (just in case ).
  3. Edit the file "Engys/HelyxOS/v1.0.3/bin/launcher.conf" and comment out the first export lines, namely by changing this code:
    Code:
    #!/bin/bash
    
    THIS_FILE=`readlink -f $0`
    THIS_FOLDER=`dirname $THIS_FILE`
    To this:
    Code:
    #!/bin/bash
    
    #THIS_FILE=`readlink -f $0`
    #THIS_FOLDER=`dirname $THIS_FILE`

And the rest is as you documented, namely for the desktop link!

Best regards,
Bruno
UPengineer likes this.
wyldckat is offline   Reply With Quote

Old   October 29, 2013, 00:51
Default
  #3
New Member
 
Kramer
Join Date: Aug 2013
Posts: 9
Rep Power: 3
UPengineer is on a distinguished road
Hello Bruno,

Thank you very much for your quick reply! I followed steps 1 through 3 as suggested. Fortunately HelyxOS appears to be working now from the Desktop without any library errors.

Unfortunately though I am unable to mesh in HelyxOS because I get multiple errors from HelyxOS for not being able to find blockMesh or snappyHexMesh as seen below in the terminal.


Code:
 
CASE: /home/kramer/OpenFOAM/kramer-2.2.1/run/New_Attempt
NP:   -1
/home/kramer/OpenFOAM/kramer-2.2.1/run/New_Attempt/mesh.run: line 7: blockMesh: command not found
/home/kramer/OpenFOAM/kramer-2.2.1/run/New_Attempt/mesh.run: line 8: snappyHexMesh: command not found
kramer@ubuntu:~/Documents/Engys/HelyxOS/v1.0.3$

I have never experienced these errors before. I feel that it is due to not correctly following step 1 since I just copied and pasted without knowing what
$MPI_ARCH_PATH is. I do not know if you mean that specific path, or the corresponding path on my system.

Thank you again anyway. Once I get this issue solved navigating to HelyxOS will be a lot more convenient in the future. I really appreciate your time and help.

Cheers,

Kramer

Last edited by UPengineer; October 29, 2013 at 01:24. Reason: New problems
UPengineer is offline   Reply With Quote

Old   November 2, 2013, 17:27
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Kramer,

The problem you're seeing is likely because you missed something in step #2, namely this line:
Code:
source /opt/openfoam221/etc/bashrc
This assumed that you have OpenFOAM 2.2.1 installed at "/opt/openfoam221".

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 2, 2013, 21:20
Default [Solved]
  #5
New Member
 
Kramer
Join Date: Aug 2013
Posts: 9
Rep Power: 3
UPengineer is on a distinguished road
Hello again wyldckat!

I had actually figured that out yesterday when I went back through each step that you had sent. It is functioning perfectly! I am very impressed with your knowledge on the software and C++ code.
Thank you for all your help.

Sincerely,

Kramer
UPengineer is offline   Reply With Quote

Reply

Tags
helyxos, launher, openfoam, shortcut

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in creating a wedge type mesh Joscha OpenFOAM Native Meshers: blockMesh 22 May 14, 2015 05:10
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Problems with Meshing: Collapsed Cells Emmanuel Resch CD-adapco 1 July 30, 2007 03:02


All times are GMT -4. The time now is 13:39.