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

[Helyx OS] OpenFOAM 4.1 and 6 are not being picked up by Helyx-OS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2019, 05:31
Default OpenFOAM 4.1 and 6 are not being picked up by Helyx-OS
  #1
New Member
 
AIf1
Join Date: Aug 2019
Posts: 5
Rep Power: 6
AIf1 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I've finally tested building OpenFOAM 4.x on Ubuntu 18.04 and the instructions are now available here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

The fix needed for building ParaView can be applied with this command:
Code:
sed -ibck -e 's/\[3456\]/[34567]/' ParaView-5.0.1/VTK/CMake/{GenerateExportHeader,vtkCompilerExtras}.cmake
Thanks to this post indicating that we can still build the old ParaView 5.0.1 with GCC 7:

This way it's not necessary to use an older GCC version
Hi. Thanks for the valuable guide. I have installed ubuntu 18.04 and OF6. Then after linking to HelyxOs i tried to mesh a box. But i get blockmesh not found error. Been redoing installation for past 2 days but keep getting same error
AIf1 is offline   Reply With Quote

Old   August 15, 2019, 18:52
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quote:
Originally Posted by AIf1 View Post
Then after linking to HelyxOs i tried to mesh a box. But i get blockmesh not found error. Been redoing installation for past 2 days but keep getting same error
Quick questions:
  1. Go to the command line, activate the OpenFOAM environment you built/installed and then run:
    Code:
    blockMesh
    the "M" must be upper case. Does it still give you the same error message?
  2. If it's a matter of configuring Helyx-OS, then go to the menu Edit -> Preferences and configure the paths to the installation folders where OpenFOAM and ParaView are installed at. Take a look at the installation instructions given here: https://openfoamwiki.net/index.php/I...tu_16.04_64bit - look at steps #11 and #12. You can find the installation path to ParaView by running this command:
    Code:
    which paraview
__________________
wyldckat is offline   Reply With Quote

Old   August 15, 2019, 22:41
Default
  #3
New Member
 
AIf1
Join Date: Aug 2019
Posts: 5
Rep Power: 6
AIf1 is on a distinguished road
Hi. Thanks for replying. I can execute blockMesh command in terminal without error. I have tried the path locations more than 7 times, but same error. PV can be launched easily by clicking PV button in helyx os. Tried ubuntu 18 earlier with Of6 and now ubuntu 16 with Of41. Same error. My ubuntu is on Oracle virtual box.
Last year i did not have problem at all using helyx os, but i was not using Virtual box. (Old laptop corrupted disk and i hate to dual boot nowadays.)
AIf1 is offline   Reply With Quote

Old   August 25, 2019, 07:34
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quick questions:
  1. Which installation instructions did you follow to install OpenFOAM 6?
  2. Which installation instructions did you follow to install Helyx-OS?
__________________
wyldckat is offline   Reply With Quote

Old   August 26, 2019, 06:57
Default
  #5
New Member
 
AIf1
Join Date: Aug 2019
Posts: 5
Rep Power: 6
AIf1 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick questions:
  1. Which installation instructions did you follow to install OpenFOAM 6?
  2. Which installation instructions did you follow to install Helyx-OS?
For helyx-os http://engys.github.io/HELYX-OS/installation/

For of6 https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

For of41 https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

Last edited by wyldckat; August 26, 2019 at 16:09. Reason: corrected link for OF6
AIf1 is offline   Reply With Quote

Old   August 26, 2019, 16:17
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quick question: With your OpenFOAM 4.1 installation active, namely after you run:
Code:
of41
what does the following command give you?
Code:
which blockMesh
For example, for me it gives something like this:
Code:
/home/ofuser/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/blockMesh
Then I use the following path:
Code:
/home/ofuser/OpenFOAM/OpenFOAM-4.1
in Helyx-OS, namely in the "Paths -> Core Folder" text entry.
wyldckat is offline   Reply With Quote

Old   August 27, 2019, 06:22
Default
  #7
New Member
 
AIf1
Join Date: Aug 2019
Posts: 5
Rep Power: 6
AIf1 is on a distinguished road
as attached. Same core folder has been chosen all this while. Yet same error blockMesh command not found when i click create mesh in Helyx-os.
Thanks for looking into this.
Attached Images
File Type: png of41.PNG (113.5 KB, 19 views)
AIf1 is offline   Reply With Quote

Old   August 27, 2019, 17:13
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quick answer: OK, now I have all of the necessary pieces... the detail is that you built with 64-bit labels, by using an activation command such as this:
Code:
source $HOME/OpenFOAM/OpenFOAM-4.x/etc/bashrc WM_LABEL_SIZE=64 FOAMY_HEX_MESH=yes
This is because this makes it easier to have multiple builds of OpenFOAM for the same version, without having to edit files.

The problem is that this command activates these options without modifying any configuration files, but Helyx-OS relies on the configuration being written to the respective files.

There are a few ways to fix this in a way that is consistent with Helyx-OS, but the simplest is to do the following commands:
Code:
of41
foam
echo "export WM_LABEL_SIZE=64" > etc/prefs.sh
echo "export FOAMY_HEX_MESH=yes" >> etc/prefs.sh
Explanation: These commands will create a file named "prefs.sh" inside of the folder "OpenFOAM-4.1/etc", with the following lines:
Code:
export WM_LABEL_SIZE=64
export FOAMY_HEX_MESH=yes
This file "prefs.sh" is called by OpenFOAM's "etc/bashrc".

Similarly, you can do the same for the OpenFOAM 6 installation.

If you had built the 32-bit labels version, you would not have had this issue...

Keep in mind that 64-bit labels are only needed when you have reaaaaally big meshes, namely with a number of cells/faces/points that goes beyond 2 to the power of 31.
__________________
wyldckat is offline   Reply With Quote

Old   August 28, 2019, 01:26
Default
  #9
New Member
 
AIf1
Join Date: Aug 2019
Posts: 5
Rep Power: 6
AIf1 is on a distinguished road
Thank you. That worked! You are superman!

The 64 bit was following step 7 uname -m which prompted me towards that 64bit.
(My last year's laptop was old one using 32bit hence never had any problem until the disk corrupted).
AIf1 is offline   Reply With Quote

Reply


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
[OpenFOAM.org] OpenFOAM 4.1 on Fedora 24 JonW OpenFOAM Installation 5 November 10, 2017 08:57
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
OpenFOAM 4.1 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 0 October 13, 2016 06:42
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04


All times are GMT -4. The time now is 14:09.