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

Creating shortcut for HelyxOS

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 2 Post By UPengineer
  • 2 Post By wyldckat
  • 1 Post By UPengineer
  • 1 Post By wyldckat
  • 1 Post By UPengineer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2013, 06:33
Default Creating shortcut for HelyxOS
  #1
New Member
 
Kramer
Join Date: Aug 2013
Posts: 11
Rep Power: 12
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 and chaitanyaarige like this.
UPengineer is offline   Reply With Quote

Old   October 26, 2013, 11:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 and chaitanyaarige like this.
__________________
wyldckat is offline   Reply With Quote

Old   October 28, 2013, 23:51
Default
  #3
New Member
 
Kramer
Join Date: Aug 2013
Posts: 11
Rep Power: 12
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
chaitanyaarige likes this.

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

Old   November 2, 2013, 16:27
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
chaitanyaarige likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 2, 2013, 20:20
Default [Solved]
  #5
New Member
 
Kramer
Join Date: Aug 2013
Posts: 11
Rep Power: 12
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
chaitanyaarige likes this.
UPengineer is offline   Reply With Quote

Reply

Tags
helyxos, launher, openfoam, shortcut


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
[blockMesh] Problems in creating a wedge type mesh Joscha OpenFOAM Meshing & Mesh Conversion 28 August 3, 2019 07:59
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Problems with Meshing: Collapsed Cells Emmanuel Resch Siemens 1 July 30, 2007 03:02


All times are GMT -4. The time now is 06:19.