CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Version 15 on Mac OS X (https://www.cfd-online.com/Forums/openfoam-installation/57216-version-15-mac-os-x.html)

xiaohezhu July 22, 2008 11:25

Hello everyone, this is the f
 
Hello everyone,
this is the first time for me to use message board,I hope someone can help me .
I want to download openfoam-1.5,but I tried many times and failed.I can't link the source pack and binary pack.Could any one send me this software?I just need the source pack and binary pack double precision.Thanks.

podallaire July 22, 2008 11:48

Hi Zhanting, you need to do
 
Hi Zhanting,

you need to download two files available from OpenFOAM website :

- OpenFOAM-1.5.General.gtgz
- ThirdParty.General.gtgz

Follow the instructions to unpack those files. After, you can apply the patches provided by Bernhard - just follow the instructions in this thread. As mentionned, you need to create a case-sensitive image file to run OpenFoam on a Mac; use DiskUtility to do so. You'll need to move the *.gtgz file in the image before decompressing.

Good luck !

PO

lin July 22, 2008 12:03

Hi Zhanting If I got y
 
Hi Zhanting
If I got your meaning correctly,it's because some kind problems internet connection.You fail to download the files. I have downloaded the files and upload to a file-share server. If you left your email address,I could send you the link.

gschaider July 22, 2008 12:06

Thanks for mentioning it, PO:
 
Thanks for mentioning it, PO: paraview ALWAYS builds itself as a bundle. To get the paraFoam script to work one has to put a symbolic link to the actual binary (which is in paraview.app/Contents/MacOSX/paraview or so) in the paraview-bin-directory

Bernhard

xiaohezhu July 22, 2008 22:09

Hi Pierre,linzhenhua, Thank y
 
Hi Pierre,linzhenhua,
Thank you!

Now my problem is that I can't link the following files
- OpenFOAM-1.5.General.gtgz
- ThirdParty.General.gtgz

so I can't unpack those files .Maybe there is some problem with my internet.

my email box is zhangting198642@163.com. I just need the source pack OpenFOAM-1.5.General.gtgz
and binary pack double precision OpenFOAM-1.5.linuxGccDPOpt.gtgz .Thanks .

podallaire July 22, 2008 23:23

Bernhard, is there a way to
 
Bernhard,

is there a way to "bundle" with paraview.app the 3 libs (libvtkPV3Foam.dylib, libPV3FoamReader_SM.dylib and libPV3FoamReader.dylib) in order to have a standlone paraview.app ? The doc says that plugins can be loaded automatically from paraview.app/Contents/MacOS/plugins but I'm not sure where libvtkPV3Foam.dylib should be copied - in paraview.app/Contents/MacOS ? I tried without success ...

Here is what I tried tonight :

1) sh Applications/Client/CreateBundle.sh to create the final paraview.app
2) After moving my paraview.app in /Applications, I created /Applications/paraview.app/Contents/MacOS/plugins where I copied the PV3 libs.
3) When trying to launch paraview.app (double-click), it crashes ...
4) I moved /Applications/paraview.app/Contents/MacOS/plugins/libvtkPV3Foam.dylib to /Applications/paraview.app/Contents/MacOS
5) Crashes again when trying to launch the app

Thanks

PO

kjmaki July 22, 2008 23:51

Dear FOAMers, I am trying t
 
Dear FOAMers,

I am trying to build 1.5 on my mac (10.5.4), and the build process stops on the OpenFOAM library. I have applied the 3 patches supplied by Bernard above in this thread. It appears that pointFields is dependent upon cpuTime.H, and is looking for it in the OpenFOAM/lnInclude directory, but I see that cpuTime.H resides in the OSspecific/Unix directory. Here is the output from the compile log:

+ wmake libo OSspecific/Unix
'/Users/kjmaki/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libOSspecific.o' is up to date.
+ wmake libso OpenFOAM
make: *** No rule to make target `/Users/kjmaki/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/cpuTime.H', needed by `fields/GeometricFields/pointFields/pointFields.dep'. Stop.

Then, a little further down the line, I get the all-to-familiar "library not found" errors such as:

+ wmake libso dynamicFvMesh
ld: library not found for -ltriSurface
collect2: ld returned 1 exit status
make: *** [/Users/kjmaki/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libdynamicFvMesh.dylib ] Error 1
+ wmake libso topoChangerFvMesh
ld: library not found for -lfiniteVolume
collect2: ld returned 1 exit statusmake: *** [/Users/kjmaki/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libtopoChangerFvMesh.d ylib] Erro
r 1

Has anyone else had this problem, or could someone suggest how I might fix this?

Thanks for your help!

Kevin

podallaire July 23, 2008 01:19

Kevin - are you compiling in a
 
Kevin - are you compiling in a case-sensitive image (just want to make sure) ?

gschaider July 23, 2008 05:28

@the bundling issue: one of th
 
@the bundling issue: one of the plugin-dylibs needs the OF-Libraries. Usually the won't be in the DYLIB_LIBRARY_PATH for applications started from the GUI (and I DON'T RECOMMEND ADDING THEM). Therefor they will only work for a paraview started from a shell with the correct paths set

@kevins compilation problem: what is strange is that it looks for cpuTime.H in the OpenFOAM/lnInclude when it has moved to OSspecific/Unix/lnInclude in 1.5. You're sure that there are no residuals from a pre-1.5-installation? Just to make sure remove all dep-files with
find $FOAM_SRC -name "*.dep" -exec rm {} \;
and recompile (check the command before using it, the message board software is surly going to do something very ugly to it)

Bernhard

kjmaki July 23, 2008 07:56

Dear PO and Bernard, Thanks
 
Dear PO and Bernard,

Thanks for your help!

I think the issue was that I had some remnants from my 1.4.1 installation.

Kevin

fra76 July 23, 2008 15:49

Hi all, After a couple of fai
 
Hi all,
After a couple of failed attempts, I've carefully followed the steps suggested by Pierre-Olivier, with Bernhard's patches, but I'm still having the same problem when wmake tries to resolve dependencies. For example:

Making dependency list for source file solidBodyMotionFvMesh/solidBodyMotionFunctions/solidBodyMotionFunction/newSolidB odyMotionFunction.C
could not open file lduMesh.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file fvBoundaryMesh.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file surfaceInterpolation.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file DimensionedField.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file volFieldsFwd.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file surfaceFieldsFwd.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file slicedVolFieldsFwd.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file slicedSurfaceFieldsFwd.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file fvPatchFvMeshTemplates.C for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file solidBodyMotionFunction.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file addToRunTimeSelectionTable.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file volFields.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file mathematicalConstants.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C
could not open file transformField.H for source file solidBodyMotionFvMesh/solidBodyMotionFvMesh.C


When it compiles, however, the -I options seem correct:

SOURCE=solidBodyMotionFvMesh/solidBodyMotionFunctions/solidBodyMotionFunction/ne wSolidBodyMotionFunction.C ; g++-4.2 -DdarwinIntel -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Volumes/OpenFOAM/OpenFOAM-1.5/src/triSurface/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.5/src/dynamicMesh/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntelDPOpt/newSolidBodyMotionFunction.o



The compilation is still going, but I'm afraid it will fail again. I guess I have something wrong in some environment variable, but I cannot find anything strange...

Any suggestion?

podallaire July 23, 2008 16:00

Hi Francesco, I'm not sure
 
Hi Francesco,

I'm not sure what is the problem. Here are some thoughts ...

A) Did you "link" the OpenFOAM-1.5 and Thirdparty directories in your ~/OpenFOAM/ ?

Here is what I made before compiling :

1) mkdir ~/OpenFOAM (might already exists in your case)
2) ln -s /Volumes/OpenFOAM/OpenFOAM-1.5 ~/OpenFOAM/OpenFOAM-1.5
3) ln -s /Volumes/OpenFOAM/ThirdParty ~/OpenFOAM/ThirdParty

Bernhard - if those links are not set, can it affect the compilation ?

B) Did you extract the *.tgz in /Volumes/OpenFOAM directly (case-sensitive) ?

PO

fra76 July 23, 2008 16:17

Hi Pierre Olivier, what I'm u
 
Hi Pierre Olivier,
what I'm used to do, in order to have multiple installations on the same (linux, up to now) machine, is to create specific files to be sourced when needed.
In this case, I've created a file containing:

export FOAM_INST_DIR=/Volumes/OpenFOAM
export WM_PRECISION_OPTION=DP
export WM_NCOMPPROCS=2
. /Volumes/OpenFOAM/OpenFOAM-1.5/etc/bashrc

and the I've sourced it.

Now, for example, FOAM_INST_DIR is /Volumes/OpenFOAM, FOAM_SRC is /Volumes/OpenFOAM/OpenFOAM-1.5/src, WM_THIRD_PARTY_DIR is /Volumes/OpenFOAM/ThirdParty and so on.

I extracted the *.gtgz files directly in that directory, from the command line, to avoid any possible case problem in the file names.

Francesco

podallaire July 23, 2008 16:24

... hey, in fact, those "Makin
 
... hey, in fact, those "Making dependency list" and "could not open file" messages are ok - it's just "getting" the needed source files to compile.

everything is fine !

fra76 July 23, 2008 17:49

Just to say that I was a bit p
 
Just to say that I was a bit pessimistic.
It works!
I'll do some tests as soon as possible...

Thanks mate!

egp July 23, 2008 18:04

I can confirm PO's observation
 
I can confirm PO's observation. I got the same messages, and everything compiled and appears to be running just fine.

Eric

fra76 July 24, 2008 15:52

Paraview compiled as well! Tha
 
Paraview compiled as well! Thanks for all the suggestions above!

The only issue I've found is that I don't have the time step selection. I can only visualize the first saved time step, but not the others. I've tried only on the simpleFoam/pitzDaily tutorial, but it should not make any difference.

Does anyone else have the same problem?

Francesco

podallaire July 24, 2008 16:18

I don't have this problem.
 
I don't have this problem.

I tried with a case where I have 0, 300, 500 and 800 as my time steps and it worked.

Regards,

PO

fra76 July 25, 2008 15:06

Found, time selection is there
 
Found, time selection is there, it's simply different from previous releases...

Thanks,
Francesco

kjmaki July 28, 2008 01:48

Dear FOAMers, I am close to
 
Dear FOAMers,

I am close to being able to use paraFoam on my mac, but still no cigar. I applied Bernard's patch. I installed qt 4.3.4. I have built paraview3.3-cvs with no failure. Then I went to $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader and did the Allwclean and Allwmake. Finally, I placed a link in the OpenFOAM/OpenFOAM-1.5/bin directory to the location of the paraview executale.

When I launch paraFoam from a case directory, it fails giving me the message

"terminate called after throwing an instance of 'std::length_error'"

After sifting through the forums, I have investigated the following items.

1. I have only one PV library

ls lib/darwinIntelDPOpt/*PV*
lib/darwinIntelDPOpt/libvtkPV3Foam.dylib

I should have one other paraview 3 library, right?

2. I have tried to load this library via the plugin loader in paraview, and it says no because it is not a valid Qt plugin.

Does anyone have any suggestions?

Thanks!

Kevin


All times are GMT -4. The time now is 14:42.