|
[Sponsors] |
[OpenFOAM.org] Using OpenFOAM 2.3.0 from Deb pack in Ubuntu 14.04 + ParaView 5 from OpenFOAM 4.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2017, 11:58 |
Using OpenFOAM 2.3.0 from Deb pack in Ubuntu 14.04 + ParaView 5 from OpenFOAM 4.1
|
#1 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
Hi, I am new to Ubuntu as well as openFoam
I installed ubuntu 14.04 LTS and after that openfoam 2.3.1 then instead of installing paraviewopenfoam 410 I installed paraviewopenfoam 50. I thought it would give a better view for post processing. But it is not working. What I understood is because the openfoam 2.3 have inbuilt configuration for paraview 4.1 can someone teach me how to make openfoam 2.3 work with paraview 5.0, if it is possible? or do i have to install paraview 4.1? |
|
April 8, 2017, 08:34 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: If you only have ParaView 5 from the OpenFOAM 4.1 deb packages, then that means that you need to use the built-in reader, by running the following command:
Code:
paraFoam -builtin The file extension ".OpenFOAM" is meant to be open in ParaView with OpenFOAM's reader, which is part of OpenFOAM's own installation, because it links directly to "libOpenFOAM.so". You can have 2 OpenFOAM versions installed and switch between them as instructed here: http://openfoamwiki.net/index.php/In...with_the_Shell
__________________
|
|
April 10, 2017, 00:38 |
|
#3 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
Thanks...
But, It dint work I used the code >>>sudo apt-get install paraviewopenfoam50<<< in terminal to install paraview now, when i type the command paraFoam -builtin I got the message as follows >>> created temporary 'simple.foam' /opt/openfoam231/bin/paraFoam: 265: /opt/openfoam231/bin/paraFoam: paraview: not found <<< (simple is the folder in which i opened terminal) // I am having an amd radeon graphics card and last time when i was using paraview 4.1, it will only pick the intel graphics card,which is inbuilt. then, when i am doing some operation in paraview, it closes with a message that there was some error with intel graphics. So, I uninstalled ubuntu and re installed it plus openfoam231 and then instead of paraview410 installed paraview50 hoping it will work.. but then I saw there are files in openfoam231 which calls paraview410 and no files for 50 Thanks again... |
|
April 24, 2017, 15:11 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings ad2eb,
My apologies, I didn't think through all of the details when I wrote my previous post And sorry for the delay in getting back to you on this. In order for ParaView 5.0 from OpenFOAM 4 to be picked up on OpenFOAM 2.3.1, you need to edit the file "/opt/openfoam231/etc/config/paraview.sh" and change the version number... you can do that simply by running the following commands: Code:
sudo sed -i -e 's/ParaView_VERSION=4.1.0/ParaView_VERSION=5.0.1/' -e 's/paraviewopenfoam410/paraviewopenfoam50/' /opt/openfoam231/etc/config/paraview.sh Code:
wmSET Bruno |
|
April 25, 2017, 02:07 |
|
#5 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
Thank you for the response..
as again, there is a slight problem... but, this time I am sure your command did work properly when I tried to open paraFoam an error message came.. >>> FATAL ERROR: ParaView reader module libraries do not exist Please build the reader module before continuing: cd $FOAM_UTILITIES/postProcessing/graphics/PV5Readers ./Allwclean ./Allwmake <<< So I understood the problem (somewhat ) and I executed the first command >> cd $FOAM_UTILITIES/postProcessing/graphics/PV5Readers but then the error message was >>> bash: cd: /opt/openfoam231/applications/utilities/postProcessing/graphics/PV5Readers: No such file or directory <<< So I went to the folder and checked. I could find PV4Readers folder. I guess it is like this --> Along with openfoam231 package, 'PV5Readers' is not automatically downloaded. So, If I need PV5Readers, I need to separately get it. But, I don't know how to do it. Thanks again. (I know you are a very busy person and I really appreciate that you replied. ) Edit: I checked in github and other places. could not find PV5Readers folder. I could find PV3,PV4 and simply PVReaders folders. I even downloaded the source pack of 4.0 from https://openfoam.org/download/4-0-source/ . but even there, PV5Readers folder is not present. did I make some mistake..? Last edited by ad2eb; April 25, 2017 at 03:30. Reason: PV5Readers folder not present |
|
April 25, 2017, 08:23 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi ad2eb,
Did you follow the instructions I wrote in the other post? Namely what I wrote in post #2? Best regards, Bruno |
|
April 26, 2017, 06:48 |
|
#7 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
Yup..
I typed the first command in terminal, then had to enter my sudo password.. then typed the second command do i want to redo it..? or will redoing it create any problem..? |
|
April 30, 2017, 13:50 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick request: Please post the contents of the file "/opt/openfoam231/etc/config/paraview.sh", so that I can take a look at what it has right now in your installation.
|
|
May 2, 2017, 07:03 |
|
#9 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
here it is:-
Code:
#----------------------------------*-sh-*-------------------------------------- # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | # \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM. # # OpenFOAM is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. # # File # config/paraview.sh # # Description # Setup file for paraview-[3-4].x # Sourced from OpenFOAM-<VERSION>/etc/bashrc or from foamPV alias # # Note # The env. variables 'ParaView_DIR' and 'ParaView_MAJOR' # are required for building plugins #------------------------------------------------------------------------------ # clean the PATH cleaned=`$WM_PROJECT_DIR/bin/foamCleanPath "$PATH" "$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake- $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/paraview-"` && PATH="$cleaned" # determine the cmake to be used unset CMAKE_HOME for cmake in cmake-2.8.12.1 cmake-2.8.8 cmake-2.8.4 cmake-2.8.3 cmake-2.8.1 do cmake=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$cmake if [ -r $cmake ] then export CMAKE_HOME=$cmake export PATH=$CMAKE_HOME/bin:$PATH break fi done #- ParaView version, automatically determine major version #export ParaView_VERSION=3.12.0 #export ParaView_VERSION=4.0.1 export ParaView_VERSION=5.0.1 export ParaView_MAJOR=detect # Evaluate command-line parameters for ParaView _foamParaviewEval() { while [ $# -gt 0 ] do case "$1" in ParaView*=*) # name=value -> export name=value eval "export $1" ;; esac shift done } # Evaluate command-line parameters _foamParaviewEval $@ # set MAJOR version to correspond to VERSION # ParaView_MAJOR is "<digits>.<digits>" from ParaView_VERSION case "$ParaView_VERSION" in "$ParaView_MAJOR".* ) # version and major appear to correspond ;; [0-9]*) # extract major from the version ParaView_MAJOR=`echo $ParaView_VERSION | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` ;; esac export ParaView_VERSION ParaView_MAJOR paraviewInstDir=$WM_THIRD_PARTY_DIR/ParaView-$ParaView_VERSION paraviewArchName=ParaView-$ParaView_VERSION # Reset the name of the binary install directory for version 3 if [ `echo $ParaView_VERSION | sed -e 's/^\([0-9][0-9]*\).*$/\1/'` -eq 3 ] then paraviewArchName=paraview-$ParaView_VERSION fi export ParaView_DIR=/opt/paraviewopenfoam50 # set paths if binaries or source are present if [ -r $ParaView_DIR -o -r $paraviewInstDir ] then export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview-$ParaView_MAJOR if [ ! -d $ParaView_INCLUDE_DIR -a -d $ParaView_DIR/include/paraview ] then export ParaView_INCLUDE_DIR=$ParaView_DIR/include/paraview fi ParaView_LIB_DIR=$ParaView_DIR/lib/paraview-$ParaView_MAJOR if [ ! -d $ParaView_LIB_DIR -a -d $ParaView_DIR/lib/paraview ] then ParaView_LIB_DIR=$ParaView_DIR/lib/paraview fi export PATH=$ParaView_DIR/bin:$PATH export LD_LIBRARY_PATH=$ParaView_LIB_DIR:$LD_LIBRARY_PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-$ParaView_MAJOR if [ "$FOAM_VERBOSE" -a "$PS1" ] then echo "Using paraview" echo " ParaView_DIR : $ParaView_DIR" echo " ParaView_LIB_DIR : $ParaView_LIB_DIR" echo " ParaView_INCLUDE_DIR : $ParaView_INCLUDE_DIR" echo " PV_PLUGIN_PATH : $PV_PLUGIN_PATH" fi # add in python libraries if required paraviewPython=$ParaView_DIR/Utilities/VTKPythonWrapping if [ -r $paraviewPython ] then if [ "$PYTHONPATH" ] then export PYTHONPATH=$PYTHONPATH:$paraviewPython:$ParaView_LIB_DIR else export PYTHONPATH=$paraviewPython:$ParaView_LIB_DIR fi fi else unset PV_PLUGIN_PATH fi unset _foamParaviewEval unset cleaned cmake paraviewInstDir paraviewPython # ----------------------------------------------------------------------------- thank you for your time ^^ Last edited by wyldckat; May 8, 2017 at 20:00. Reason: posted a few minutes apart and added [CODE][/CODE] markers |
|
May 8, 2017, 20:02 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Sorry, I had a complicated+busy week and weekend
The file looks like it is properly written and defined. Please run the following command, to confirm if the ParaView 5.0.1 from the OpenFOAM 4.1 Deb package is installed or not: Code:
ls -l /opt/paraviewopenfoam50/bin/paraview |
|
May 10, 2017, 09:55 |
|
#11 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
Thanks...
(Its okay that you are responding ) when I typed, this is the output --> -rwxr -xr-x 1 root 84653 Jun 25 2016 /opt/paraviewopenfoam50/bin/paraview <-- I don't understand that what it means by that anyways |
|
May 27, 2017, 08:14 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Sorry, only today have I finally managed to come by and look into this.
Please activate the OpenFOAM 2.3.1 environment, go into the case folder you want to use and then run: Code:
paraFoam -builtin Because if you only run: Code:
paraFoam Edit: I forgot to mention that my previous request was for seeing if ParaView 5 was really installed or not, which is why it gave a bit of cryptic information. The "-rwxr -xr-x 1 root" means that "root" has "rwx" access (read-write-execute), while all in group and others "r -xr-x" have read-execute permissions only, which is enough for you to run ParaView 5 as a normal user. Last edited by wyldckat; May 27, 2017 at 08:16. Reason: see "Edit:" |
|
May 28, 2017, 15:30 |
|
#13 |
New Member
Adeeb
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
builtin command is working
thanks... also, I installed paraviewopenfoam410 and slightly modified your code to change paraview.sh now parafoam itself is working After that i tried to install fglrx catalyst and screwed up my ubuntu need to re install from scratch thanks for your help next time, will try in a better way |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 2.4 on Ubuntu 14.04 - gcc not found? | Jam Racing 2015 | OpenFOAM Installation | 17 | July 11, 2015 09:17 |
[OpenFOAM.org] Installation of OpenFOAM 2.3.1 on Ubuntu 14.04 | stephie | OpenFOAM Installation | 5 | February 14, 2015 12:05 |
Installing 2.3.0 on Ubuntu 14.04 LTS | siw | OpenFOAM Installation | 6 | July 5, 2014 07:16 |
How to Install Openfoam 2.2.2 in Ubuntu 14.04? | satty_00 | OpenFOAM Installation | 7 | May 18, 2014 11:04 |
Ubuntu Deb Pack Installation problem | neel | OpenFOAM Installation | 1 | May 3, 2013 12:30 |