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

[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2014, 14:58
Default
  #81
New Member
 
Juimo Pierre
Join Date: Aug 2012
Posts: 13
Rep Power: 13
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: 15
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
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 14
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,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I guess it's the same error as:

http://www.cfd-online.com/Forums/ope...tml#post491039
alexeym is offline   Reply With Quote

Old   May 23, 2014, 06:25
Default
  #85
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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: 4,225
Rep Power: 51
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,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 14
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: 4,225
Rep Power: 51
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: 13
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: 12
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: 13
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: 12
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,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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: 13
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: 13
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: 4,225
Rep Power: 51
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: 13
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: 4,225
Rep Power: 51
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


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
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 08:23.