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

paraFoam Error on Mac 10.8.2 (mountain lion)

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

Like Tree1Likes
  • 1 Post By infinitedreamer540

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2013, 05:45
Default paraFoam Error on Mac 10.8.2 (mountain lion)
  #1
New Member
 
Mike
Join Date: May 2013
Posts: 1
Rep Power: 0
hkmamike is on a distinguished road
I have a working recompiled OpenFoam on my OSX 10.8.2 (I followed the instructions http://www.optimulation.com/2013/03/...n-lion-10-8-3/)

Then I downloaded the paraview4.0.0 and placed it into my /Applications folder

I tried running the cavity test run with the commands in the OpenFoam/OpenFOAM-2.2.0/tutorials/incompressible/icoFoam/cavity directory:

Code:
blockMesh (produced initial value input files)
icoFoam (produced text results)
paraFoam
And this last code is where I have the problem. This produced the error message:

Code:
###############################
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
###############################
I am aware that the same exact error message has been discussed, but as far as I know, no solution has been provided for mac users.

When I open up the directory:
/OpenFoam-v2.2/applications/utilities/postProcessing/graphics/PV3Readers/

and open the Allwmake executable with a text editor, I found the following content:

Code:
###############################
#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory
#set -x

if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then
    [ -n "$PV_PLUGIN_PATH" ] || {
        echo "$0 : PV_PLUGIN_PATH not valid - it is unset"
        exit 1
    }

    # ensure CMake gets the correct C++ compiler
    [ -n "$WM_CXX" ] && export CXX="$WM_CXX"

    wmake libso vtkPV3Readers
    PV3blockMeshReader/Allwmake
    PV3FoamReader/Allwmake
else
    echo "ERROR: ParaView not found in $ParaView_DIR"
fi

# ----------------------------------------------------------------- end-of-file

#################################
so apparently the error was produced by the false conditionals involving $ParaView_DIR and $PV_PLUGIN_PATH.

When I echoed these two variables in the terminal, I found them to be empty.

Now, there is one source on this forum that I found that is relevant (post #8):
http://www.cfd-online.com/Forums/ope...d-problem.html

However, when I searched for the mac equivalent folder:

/OpenFOAM-2.2.0/platforms/darwininteL64GccDPOpt/lib

no paraview-3.12 or any version variation can be found.

The closest thing that I was able to find was:

/Applications/paraview.app/Contents/MacOS/paraview

Now my question is: How do I fix this problem and run paraFoam on OSX? do I simply need the correct paths for the two variables listed? if so, what are they?

Please advise.

Last edited by wyldckat; October 16, 2013 at 16:11. Reason: Added [CODE][/CODE]
hkmamike is offline   Reply With Quote

Old   June 8, 2013, 18:14
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Mike and welcome to the forum!

Check these instructions: http://openfoamwiki.net/index.php/Ho...using_ParaView - namely section "Installing and using ParaView"

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 22:23
Default FATAL ERROR: ParaView reader module libraries do not exist
  #3
New Member
 
Mike Page
Join Date: Aug 2013
Posts: 4
Rep Power: 13
mpage is on a distinguished road
I tried the same link but eventually ended up installing the binary paraView 4.0 app

My .alias file now looks like:
alias paraview="/Applications/paraview.app/Contents/MacOS/paraview"
alias paraView="/Applications/paraview.app/Contents/MacOS/paraview"
alias parax="touch case.foam && paraview --data=case.foam &"
alias paraFoam="paraFoam -builtin"

paraview will launch just fine but if i try to run paraview from paraFOAM I get the above message about missing pv3reader libraries

Are these libs built at the same time as paraview?

Since I have the paraview 4.0 in my Applications folder and being pointed to by the .alias file, how can I jump ahead in the paraview build process and just do the pv3reader libraries? or can I?

Thanks
mpage is offline   Reply With Quote

Old   September 10, 2013, 17:41
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Mike and welcome to the forum!

There is no building/compiling involved for ParaView on Mac OS X. You only need to install it, from the package provided at http://www.paraview.org

As for having this working properly, does is work if you run:
Code:
parax
instead of paraFoam?

If not, then what happens if you run the following two commands?
Code:
alias parax
alias paraFoam
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 10, 2013, 17:56
Default testing parax
  #5
New Member
 
Mike Page
Join Date: Aug 2013
Posts: 4
Rep Power: 13
mpage is on a distinguished road
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ > parax
[1] 2218
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ > dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid

[1]+ Done touch case.foam && /Applications/paraview.app/Contents/MacOS/paraview --data=case.foam
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ > alias parax
alias parax='touch case.foam && paraview --data=case.foam &'
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ > alias paraFoam
alias paraFoam='paraFoam -builtin'
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ >
mpage is offline   Reply With Quote

Old   September 10, 2013, 18:13
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Mike,

This seems strange...
What happens if you run ParaView directly from the command line? Namely if you simply run:
Code:
/Applications/paraview.app/Contents/MacOS/paraview
Does it crash?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 10, 2013, 18:16
Default Testing parax
  #7
New Member
 
Mike Page
Join Date: Aug 2013
Posts: 4
Rep Power: 13
mpage is on a distinguished road
Nope. The paraview window comes up as expected and stays until I dismiss it.
mpage is offline   Reply With Quote

Old   September 10, 2013, 18:42
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
OK, try replacing the 4 lines you have in ".alias" with this single one:
Code:
alias paraFoam="touch case.foam && /Applications/paraview.app/Contents/MacOS/paraview --data=case.foam"
Then source the file:
Code:
source ~/.alias
Then go into a tutorial case where you have at least already generated the mesh and run:
Code:
paraFoam
If all goes well, it should work as intended.
__________________
wyldckat is offline   Reply With Quote

Old   September 13, 2013, 13:47
Default PV3Reader libraries missing
  #9
New Member
 
Mike Page
Join Date: Aug 2013
Posts: 4
Rep Power: 13
mpage is on a distinguished road
Still the same problem:


Code:
 /Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ > paraFOAM
+ unset FOAM_ABORT
+ unset regionName optTouch
+ export LC_ALL=C
+ LC_ALL=C
+ extension=OpenFOAM
+ requirePV=1
+ '[' 0 -gt 0 ']'
+ '[' 1 -eq 1 -a '!' -f /Users/mpage/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64GccDPOpt/lib/paraview-3.12/libPV3FoamReader_SM.so ']'
+ cat

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

+ exit 1
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ > ls -l /Users/mpage/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64GccDPOpt/lib/paraview-3.12/libPV3FoamReader_SM.so
ls: /Users/mpage/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64GccDPOpt/lib/paraview-3.12/libPV3FoamReader_SM.so: No such file or directory
/Users/mpage/OpenFOAM/mpage-2.2.x/run/tutorials/incompressible/icoFoam/cavity $ >

Last edited by wyldckat; October 16, 2013 at 16:12. Reason: Added [CODE][/CODE]
mpage is offline   Reply With Quote

Old   September 14, 2013, 09:10
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Mike,

Mmmm... Perhaps you didn't notice this very important detail:
Quote:
Originally Posted by http://openfoamwiki.net/index.php/Howto_install_OpenFOAM_v21_Mac#Create_a_disk_image
It is important to set as Format: Mac OS Extended (Case-sensitive,Journaled). The sparse image will grow with the place used inside the image. Create a sparse image with the following settings (examples, you could change the values):
The file system for installing OpenFOAM has to be case-sensitive because OpenFOAM relies very deeply in case-sensitivity. In your case, you should run:
Code:
paraFoam
Not:
Code:
paraFOAM
One of the reasons for this is to instil in the user's mind that OpenFOAM and CFD is extremely sensitive to details! One dot in the wrong place and the simulation results you get are likely to be simply be garbage unless you're trying to create art

Therefore, please try using the exact command:
Code:
paraFoam
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 16, 2013, 00:58
Default ParaView/paraFoam installation trouble
  #11
New Member
 
Rachel R.
Join Date: Aug 2013
Posts: 2
Rep Power: 0
infinitedreamer540 is on a distinguished road
Hi guys,

I'm having the exact same problem; however, I'm much less familiar with open source software (and Terminal in general, I should clarify...) and have no idea what a .alias file is, or how to create/edit one. I've followed the instructions on the page http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac and have all the OpenFOAM commands working properly up until the ParaView installation. Is anyone able to clarify those instructions, please?

dreamer

ps. I should probably also add that I've searched all the corners of the internet that google will give me access to without any luck in finding a solution. >.<
infinitedreamer540 is offline   Reply With Quote

Old   September 21, 2013, 16:31
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Rachel and welcome to the forum!

I've updated the instructions: http://openfoamwiki.net/index.php/Ho...using_ParaView - let me know if it's now easier to understand.

As for understanding how the terminal works: http://linuxcommand.org/learning_the_shell.php

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 21, 2013, 23:24
Default
  #13
New Member
 
Rachel R.
Join Date: Aug 2013
Posts: 2
Rep Power: 0
infinitedreamer540 is on a distinguished road
Thanks so much, Bruno! The clarifications were perfect, and I have paraFoam working seamlessly now. There was just one thing I had noticed: the wiki says to use the code

Quote:
ls -s /Applications/ParaView\ 3.14.0.app/Contents/MacOS/paraview $WM_PROJECT_DIR/bin/paraview
however, that one didn't work for me. Instead, I googled around a bit and tried ln -s instead of ls -s, for the following code:

Quote:
ln -s /Applications/ParaView\ 3.14.0.app/Contents/MacOS/paraview $WM_PROJECT_DIR/bin/paraview
and then everything else you had outlined, and it runs beautifully.

Thanks again for your help!

Rachel
wyldckat likes this.
infinitedreamer540 is offline   Reply With Quote

Old   October 16, 2013, 14:10
Default Installation problem
  #14
New Member
 
Join Date: Oct 2013
Posts: 2
Rep Power: 0
IdFx is on a distinguished road
Hello,
I m a french student in university of Rouen. I have to install paraFoam and can't make it!
I have this error message :

ew-host-4:OpenFOAM-2.2.0 IdFx$ ./Allwmake
./Allwmake: line 4: wmakeCheckPwd: command not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.


Do you have a solution to help me please?
Thank you
IdFx is offline   Reply With Quote

Old   October 16, 2013, 16:05
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 IdFx and welcome to the forum!

There is absolutely no need to build ParaView/paraFoam on Mac OS X! Simply follow the instructions provided here: http://openfoamwiki.net/index.php/Ho...using_ParaView - namely in section "3 Installing and using ParaView".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 16, 2013, 16:09
Default
  #16
New Member
 
Join Date: Oct 2013
Posts: 2
Rep Power: 0
IdFx is on a distinguished road
Thank's fo your reply
It's not when I want to instal paraview this error appears when I try to install openFoam when the tutorial.
all seems to be good and when i try to install openFoam it doesn't work
i have to work on openfoam to study fluid modelisation for my 2nd master degree.
IdFx is offline   Reply With Quote

Old   October 16, 2013, 16:13
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
If the problem is with building OpenFOAM 2.2, then please read this thread: http://www.cfd-online.com/Forums/ope...-mac-os-x.html
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
mac, mountain lion, openfoam, parafoam, paraview

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
2.1 installation on Mountain Lion help please! PeteH OpenFOAM Installation 4 April 23, 2013 11:23
installation on mac os x lion achyutan OpenFOAM Installation 1 February 28, 2013 09:15
Installing OpenFoam 2.1.1 on OS X 10.8.2 (Mountain Lion) TomGEO OpenFOAM Installation 11 December 11, 2012 12:08
[OpenFOAM] Save animation bug in paraFoam on Mac OSX deinstein ParaView 3 May 1, 2010 16:29


All times are GMT -4. The time now is 18:38.