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

[OpenFOAM.org] paraFoam, for OpenFOAM 2.3.x on MacOS X?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2015, 21:33
Question paraFoam, for OpenFOAM 2.3.x on MacOS X?
  #1
New Member
 
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11
ajmas is on a distinguished road
Does anyone know how to get paraFoam running on MacOS X?

I have started with the successful build from the Git repo https://github.com/OpenFOAM/OpenFOAM-2.3.x and followed the "Getting Started" instructions on OpenFOAM Ubuntu download page: http://www.openfoam.org/download/ubuntu.php

When I try running paraFoam I get:

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

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake
Running the two commands then results in:

Code:
WARN: PV4 readers not building: ParaView_VERSION=
I then try the following:

export ParaView_DIR="${PARAVIEW_APP_DIR}/Contents/MacOS"
export ParaView_VERSION=4.3.1
export PV_PLUGIN_PATH=“${PARAVIEW_APP_DIR}/Plugins/“

and this kinda builds, but fails with a bunch of errors, starting with:

Code:
SOURCE=vtkPV4Readers.C ;  g++-mp-4.8 -m64 -fsignaling-nans  -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100 -I -IlnInclude -I. -I/Volumes/OpenFOAM-Development-2.3.x/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM-Development-2.3.x/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc48DPOpt/vtkPV4Readers.o
vtkPV4Readers.C:35:35: fatal error: vtkDataArraySelection.h: No such file or directory
 #include "vtkDataArraySelection.h"
                                   ^
compilation terminated.
make: *** [Make/darwinIntel64Gcc48DPOpt/vtkPV4Readers.o] Error 1
A quick search for the header vtkDataArraySelection.h does not reveal it anywhere in the OpenFOAM project anywhere?

Can anyone provide any suggestions as to how to resolve this?
ajmas is offline   Reply With Quote

Old   March 14, 2015, 22:30
Question
  #2
New Member
 
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11
ajmas is on a distinguished road
Okay I have patched the paraFoam command to simply ignore the "libPV${version}FoamReader_SM" check and call the paraview command in /Applications/paraview.app/Contents/MacOS, but now I get the following error, during launching of Paraview:

Code:
created temporary 'cavity.OpenFOAM'
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Any ideas?
ajmas is offline   Reply With Quote

Old   March 15, 2015, 03:48
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Preview's built-in reader uses foam extension (not OpenFOAM). So I guess in addition to

Code:
created temporary 'cavity.OpenFOAM'
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
you also got a dialog asking to select a reader to the file. You can try to use "paraFoam -builtin" command. Or change lines 70-73 to

Code:
# reader extension
extension=foam

requirePV=0
Though in this case you will have certain problems with uniformFixedValue types of BCs (built-in reader does not know this kind of boundary conditions and actively complains about it).

And finally vtkDataArraySelection.h is a part of VTK library that is used by Paraview. Do you have ThirdParty folder with Paraview sources?
alexeym is offline   Reply With Quote

Old   March 15, 2015, 18:27
Default
  #4
New Member
 
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11
ajmas is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Though in this case you will have certain problems with uniformFixedValue types of BCs (built-in reader does not know this kind of boundary conditions and actively complains about it).

And finally vtkDataArraySelection.h is a part of VTK library that is used by Paraview. Do you have ThirdParty folder with Paraview sources?
I don't the instructions I was following suggested I didn't need them, since MacPorts and Paraview.app provided everything I needed. It would appear these may need some updating to make OpenFOAM 2.3.x play nicely with paraview.app.
ajmas is offline   Reply With Quote

Reply

Tags
building, mac os x, parafoam


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
[OpenFOAM] Unable to launch parafoam & boonhow ParaView 5 March 23, 2022 08:09
[OpenFOAM.com] paraFoam cannot open due to Qt issues - [Solved/Information] u2berggeist OpenFOAM Installation 2 July 2, 2018 17:03
[OpenFOAM] How to use paraFoam on a cluster andreas ParaView 1 March 6, 2013 17:11
[OpenFOAM] OpenFoam (Ubuntu): paraFoam via Xming+PuTTY raketenmaid ParaView 4 February 5, 2013 05:20
[OpenFOAM] ParaFoam OF 14 decomposed cases philippose ParaView 4 April 18, 2007 05:17


All times are GMT -4. The time now is 11:44.