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

Compile OF 2.3 on Mac OS X .... the patch

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

Like Tree8Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 18, 2014, 14:58
Default
  #81
New Member
 
Juimo Pierre
Join Date: Aug 2012
Posts: 13
Rep Power: 5
Roskiki is on a distinguished road
it is the same solution

1- in fact it's just addition of a line "-lincompressibleTransportModels \" and
" -linterfaceProperties" in Make/option
2- wmake

source alexeym
Roskiki is offline   Reply With Quote

Old   May 18, 2014, 19:49
Default
  #82
Member
 
J.-H. Wang
Join Date: Oct 2010
Posts: 72
Rep Power: 7
f0208secretx is on a distinguished road
Quote:
Originally Posted by Roskiki View Post
it is the same solution

1- in fact it's just addition of a line "-lincompressibleTransportModels \" and
" -linterfaceProperties" in Make/option
2- wmake

source alexeym
Thanks Roskiki and alexeym, it compiles now.

For the complete record, I changed the options file in the following folders manually,
$FOAM_APP/solvers/multiphase/driftFluxFoam/Make
$FOAM_APP/solvers/multiphase/interFoam/Make
$FOAM_APP/solvers/multiphase/interDyMFoam/Make
$FOAM_APP/solvers/multiphase/porousInterFoam/Make
$FOAM_APP/solvers/multiphase/LTSInterFoam/Make

For each of the options file, I added
Code:
-lincompressibleTransportModels \
-linterfaceProperties \
in the list of EXE_LIBS.

Thanks for the help.


JHW
f0208secretx is offline   Reply With Quote

Old   May 23, 2014, 03:57
Default ...paraview
  #83
New Member
 
frantov
Join Date: Nov 2011
Posts: 10
Rep Power: 6
frantov is on a distinguished road
Hello
I have successfully installed OF 2.3 in MacOS, cases are running But cant get Paraview to run. I can open it independently, but I guess Im missing a way to link it. Hope someone can help.

when I write in terminal: paraFoam, this is what I got:

>> paraFoam
created temporary 'OpenFOAM-2.3.0.foam'
/Users/frantov/OpenFOAM/OpenFOAM-2.3.0/bin/paraFoam: line 265: paraview: command not found
frantov is offline   Reply With Quote

Old   May 23, 2014, 04:53
Default
  #84
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,377
Rep Power: 23
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

I guess it's the same error as:

Compiling Solver: Clang error linker commander failed
alexeym is offline   Reply With Quote

Old   May 23, 2014, 06:25
Default
  #85
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by frantov View Post
Hello
I have successfully installed OF 2.3 in MacOS, cases are running But cant get Paraview to run. I can open it independently, but I guess Im missing a way to link it. Hope someone can help.

when I write in terminal: paraFoam, this is what I got:

>> paraFoam
created temporary 'OpenFOAM-2.3.0.foam'
/Users/frantov/OpenFOAM/OpenFOAM-2.3.0/bin/paraFoam: line 265: paraview: command not found
Currently the patch assumes that you've got the official Paraview-binaries installed as ParaView in your applications folder (/Applications/ParaView.app on the shell). If it doesn't find that it will do nothing. Otherwise it will create an alias to the paraview-binary.

paraFoam won't work though as the filter distributed with OpenFOAM needs a source-installation of paraview. But paraview has a fine built-in OpenFOAM-filter. That's why I currently don't bother to install it from source
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 23, 2014, 18:26
Default
  #86
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,377
Rep Power: 23
alexeym will become famous soon enoughalexeym will become famous soon enough
Dear Bernhard,

I'm not quite sure that the problem is in desire to build Paraview from sources. To illustrate the problem, I've created test.sh and test1.sh files (it's more or less vanilla OS X 10.9, maybe Macports installs its own version of bash). test.sh is:

Code:
#!/bin/sh

alias lha='ls -lha'
test1.sh is

Code:
#!/bin/sh

lha
Analog of 'source $WM_PROJECT_DIR/etc/bashrc' is 'source test.sh' and analog of paraFoam is ./test1.sh (as during first step alias is created and during second step we are trying to execute created alias). The result is the same as in error messages of the people reported here:

Code:
$ . test.sh 
$ ./test1.sh 
./test1.sh: line 3: lha: command not found
IIRC I had this problem with 2.1.1 patch but I've create symlink to paraview in $PATH, so the problem was solved (surely paraview.app was installed in binary form).

If I change test.sh to:

Code:
#!/bin/sh

lha() {
    ls -lha
}

export -f lha
then ./test1.sh will return listing of cwd.

Maybe it's worth changing alias to function in future patches? Also there was an issue with driftFluxFoam.

Last edited by alexeym; May 24, 2014 at 04:32.
alexeym is offline   Reply With Quote

Old   May 24, 2014, 11:08
Default
  #87
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexeym View Post
Dear Bernhard,

I'm not quite sure that the problem is in desire to build Paraview from sources. To illustrate the problem, I've created test.sh and test1.sh files (it's more or less vanilla OS X 10.9, maybe Macports installs its own version of bash). test.sh is:

Code:
#!/bin/sh

alias lha='ls -lha'
test1.sh is

Code:
#!/bin/sh

lha
Analog of 'source $WM_PROJECT_DIR/etc/bashrc' is 'source test.sh' and analog of paraFoam is ./test1.sh (as during first step alias is created and during second step we are trying to execute created alias). The result is the same as in error messages of the people reported here:

Code:
$ . test.sh 
$ ./test1.sh 
./test1.sh: line 3: lha: command not found
IIRC I had this problem with 2.1.1 patch but I've create symlink to paraview in $PATH, so the problem was solved (surely paraview.app was installed in binary form).

If I change test.sh to:

Code:
#!/bin/sh

lha() {
    ls -lha
}

export -f lha
then ./test1.sh will return listing of cwd.

Maybe it's worth changing alias to function in future patches? Also there was an issue with driftFluxFoam.
OK. Wasn't aware that the alias doesn't work because I usually use paraview as paraview. Mainly because paraFoam doesn't bring me any additional benefits as only the built-in reader works (the one tht comes with the OpenFOAM-sources NEEDs a paraview-installation from sources). But I'll have a look at converting the alias to a function.

About driftFluxFoam. There is a problem with it not linking, right? Adding -ltwoPhaseMixture to Make/options fixes that. It's not in the patch because the solver has been added only recently and I don't rush out a new version of the patch every time something changes (especially in cases like this where nothing else depends on the compilation failure).
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 25, 2014, 12:41
Default
  #88
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,377
Rep Power: 23
alexeym will become famous soon enoughalexeym will become famous soon enough
Quote:
Originally Posted by gschaider View Post
Mainly because paraFoam doesn't bring me any additional benefits as only the built-in reader works
Well, at least if creates *.foam file for you and pass necessary flags to paraview. Also it's a workflow one gets used to on Linux.

Quote:
(the one tht comes with the OpenFOAM-sources NEEDs a paraview-installation from sources).
Not exactly. By default yes, but paraFoam has -builtin flag for built-in paraview OpenFOAM reader. Also one can edit lines 71 and 73 of paraFoam file to permanently remove the requirement of PV3Readers compilation.
alexeym is offline   Reply With Quote

Old   May 26, 2014, 06:20
Default parafoam solved
  #89
New Member
 
frantov
Join Date: Nov 2011
Posts: 10
Rep Power: 6
frantov is on a distinguished road
Hi All
problem was solved after reinstalling everything. I think I messed up with the creation of the .sparseimage file.
Thanks a lot
F
frantov is offline   Reply With Quote

Old   May 26, 2014, 19:34
Default
  #90
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexeym View Post
Well, at least if creates *.foam file for you and pass necessary flags to paraview. Also it's a workflow one gets used to on Linux.



Not exactly. By default yes, but paraFoam has -builtin flag for built-in paraview OpenFOAM reader. Also one can edit lines 71 and 73 of paraFoam file to permanently remove the requirement of PV3Readers compilation.
OK. We're entering the territory where differences between solutions are 5 key-strokes and the main reason why people do things one way or another is habit. For me the main reason is that I used the built-in reader before paraFoam had a -builtin-flag. PyFoam adds a .foam-file to every case it touches and for me "paraview --data=foo.foam" is almost as simple as "paraFoam --builtin"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 19, 2014, 16:59
Default Parallel running on Mavericks 10.9.1
  #91
New Member
 
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 5
maCrobo is on a distinguished road
Has anyone tried parallel running on a single machine?

I've started to use the program for a few weeks on Mavericks (10.9.1). Today, I wanted to see how to perform a parallel run on a i7 quad core. I know it is possible, but I get some errors.

I would like to get some feedback on that; has anyone tried and succeeded?
maCrobo is offline   Reply With Quote

Old   June 19, 2014, 17:04
Default
  #92
New Member
 
Reamonn Mac Reamoinn
Join Date: Mar 2014
Posts: 7
Rep Power: 4
RMacReamoinn is on a distinguished road
Quote:
Originally Posted by maCrobo View Post
Has anyone tried parallel running on a single machine?

I've started to use the program for a few weeks on Mavericks (10.9.1). Today, I wanted to see how to perform a parallel run on a i7 quad core. I know it is possible, but I get some errors.

I would like to get some feedback on that; has anyone tried and succeeded?
I have an MacBook Pro with i7 quad core. I ran one of the tutorials that utilises parallel processing and it ran fine.
RMacReamoinn is offline   Reply With Quote

Old   June 19, 2014, 17:39
Default
  #93
New Member
 
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 5
maCrobo is on a distinguished road
Quote:
Originally Posted by RMacReamoinn View Post
I have an MacBook Pro with i7 quad core. I ran one of the tutorials that utilises parallel processing and it ran fine.
What tutorial?
maCrobo is offline   Reply With Quote

Old   June 19, 2014, 17:50
Default
  #94
New Member
 
Reamonn Mac Reamoinn
Join Date: Mar 2014
Posts: 7
Rep Power: 4
RMacReamoinn is on a distinguished road
If I remember correctly it was the wingMotion tutorial in the incompressible/pimpleDyMFoam/ directory.
RMacReamoinn is offline   Reply With Quote

Old   June 20, 2014, 01:04
Default
  #95
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,377
Rep Power: 23
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

Quote:
Originally Posted by maCrobo View Post
I've started to use the program for a few weeks on Mavericks (10.9.1). Today, I wanted to see how to perform a parallel run on a i7 quad core. I know it is possible, but I get some errors.
Can you post error message(s)? I've run it in parallel on a single machine and it was OK.
alexeym is offline   Reply With Quote

Old   June 22, 2014, 10:28
Default
  #96
New Member
 
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 5
maCrobo is on a distinguished road
Well, I'm sorry that I didn't reply sooner, but the problem was not in the program itself but in some cell distortion I got after scaling the mesh with different ratios in different directions.

I took the engineFoam tutorial, scaled its mesh to (0.7 0.7 0.5) to make it closer to my cylinder, split the domain in 4 parts and it diverged. Using 2 subdomains solved the problem.
I know I should have made a new mesh, but I did't know a fast way for it.
As far as the tutorials I made a stupid mistake.

Bye.
maCrobo is offline   Reply With Quote

Old   July 5, 2014, 15:43
Default
  #97
Member
 
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 5
dav.dap83 is on a distinguished road
I am encountering some problems in compiling.

Every time it attempts to compile something, it writes:

Code:
ld: library not found for -lPstream
collect2: ld returned 1 exit status
dav.dap83 is offline   Reply With Quote

Old   July 9, 2014, 16:47
Default
  #98
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by dav.dap83 View Post
I am encountering some problems in compiling.

Every time it attempts to compile something, it writes:

Code:
ld: library not found for -lPstream
collect2: ld returned 1 exit status
The problem must have happened before (during compilation of Pstream). A LITTLE bit of context would be helpful
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 12, 2014, 07:45
Default Pre-compiled disk images of version 2.3.x for Mac 10.9?
  #99
New Member
 
Juimo Pierre
Join Date: Aug 2012
Posts: 13
Rep Power: 5
Roskiki is on a distinguished road
Pre-compiled disk images of version 2.3.x for Mac 10.9?
Roskiki is offline   Reply With Quote

Old   August 12, 2014, 15:03
Default
  #100
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Roskiki View Post
Pre-compiled disk images of version 2.3.x for Mac 10.9?
None that I know of (but I haven't looked very much for precompiled versions to be honest). Closest thing I know of is found at https://sourceforge.net/projects/ope...am-extend-3.1/ (but of course that is the other fork).
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 110 April 21, 2016 11:54
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 07:40.