CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

paraFoam, for OpenFOAM 2.3.x on MacOS X?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2015, 22: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: 3
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, 23:30
Question
  #2
New Member
 
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 3
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, 04:48
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,437
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough
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, 19:27
Default
  #4
New Member
 
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 3
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with spaces in paraFoam execution chrisb2244 OpenFOAM Paraview & paraFoam 1 November 9, 2013 16:06
How to use paraFoam on a cluster andreas OpenFOAM Paraview & paraFoam 1 March 6, 2013 18:11
OpenFoam (Ubuntu): paraFoam via Xming+PuTTY raketenmaid OpenFOAM Paraview & paraFoam 4 February 5, 2013 06:20
Parafoam basic questions qtian OpenFOAM Paraview & paraFoam 0 July 20, 2007 11:52
ParaFoam OF 14 decomposed cases philippose OpenFOAM Paraview & paraFoam 4 April 18, 2007 05:17


All times are GMT -4. The time now is 15:30.