Compiling OpenFOAM 1.7.0 on Fedora 13

On June 26, 2010, OpenFOAM 1.7.0 has been released. But It does not provides any compiled packages but Ubuntu/Debian binary packages.

I have been using OpenFOAM for years without compiling the whole OpenFOAM and ThirdParty packages. It’s time to do it myself.

Before compiling the packages, you must prepare some necessary packages on your system:

binutils-static # it provides libiberty.a and others

python-devel # if you want the python support in paraview

qt-devel # I suppose you like it. Yes, it provides qmake-qt4

cmake # it is mandatory for compiling paraview

flex

Please use yum to install them:

sudo yum install -y binutils-static python-devel qt-devel cmake flex

Of course, I believe you have gcc 4.4-x which is recommended by OpenFOAM.

the $HOME/OpenFOAM directory is supposed as your OpenFOAM installation folder. And I guess you have downloaded the source packages files.

1) enter into the OpenFOAM installation folder and unpack the zipped files

tar xvf /path/OpenFOAM-1.7.0.gtgz
tar xvf /path/ThirdParty-1.7.0.gtgz

2) setting the environment variables

adding the line to your $HOME/.bashrc

. $HOME/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc

and type . $HOME/.bashrc to execute the file and make the OpenFOAM variables available.

3) Check the system
execute foamSystemCheck

4) Build the source

cd $WM_PROJECT_DIR
./Allwmake

5) Compile ParaView 3.8.0 and PV3FoamReader module

cd $WM_THIRD_PARTY_DIR
./Allclean
./makeParaView

compiling PV3blockMeshReader and PV3FoamReader ParaView plugins as usual for OpenFOAM utilities:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

6) Test Installation

foamInstallationTest

ISSUES:
Most of the time, the compilation would have errors like
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/xyz/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/potentialFoam
/usr/bin/ld: Make/linux64GccDPOpt/potentialFoam.o: undefined reference to symbol ‘Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)’
/usr/bin/ld: note: ‘Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)’ is defined in DSO /home/xyz/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so so try adding it to the linker command line
/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [/home/xyz/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/potentialFoam] Error 1
make[2]: Leaving directory `/home/xyz/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/basic/potentialFoam’
make[1]: *** [potentialFoam] Error 2

This error is caused by DSO links. The DSO link library should be stated explicitly in Fedora 13. So the file ./Make/options in the solver directory should be edited with the DSO library.

Make a batch file in your home bin directory, named patchFoamLib, with the content

#! /bin/sh

sed -i '$ s|$|\ \\|' $1
sed -i '$ a\ \ \ \ $(FOAM_MPI_LIBBIN)/libPstream.so'  $1

and make it executable. In the Terminal, use the command

patchFoamLib Make/options

if you want to patch the file of options in one time, use the command

cd $WM_PROJECT_DIR/applications/solvers/
find . -iname 'options' -execdir patchFoamLib {}\;

I hope this would help you compile your own OpenFOAM successfully.

On July 30, Laurence R. McGlashan [2] suggested editing the wmake/rules/linux64Gcc/general file, which is easier than editing the all options files:

PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so

This would be a better solution.

Sometimes, if errors happen with like this, there’s a need a manual editing for options file with the missing library. if the error reports the missing link is libincompressibleTurbulenceModels, the following should be added to the EXE_LIBS options (you know I mean this is in file options)

-lincompressibleTurbulenceModels

Or other OpenFOAM model libraries.

Reference
[1] OpenFOAM. Source pack installation. http://www.openfoam.com/download/source.php, <2010-06-30>
[2] http://www.cfd-online.com/Forums/openfoam-installation/78360-openfoam-1-7-x-fedora-13-a.html, <2010-07-30>

Oxis — Advancing Oxidative Stress Technologies

Oxis, is a corporation working on research, development and sale of products that is against the harmful effects of “oxidative stress”.

ERGO, abbrev for Ergothioneine, is the super antioxidant for nutraceutical, cosmeceutical and therapeutics. ERGO can help you anti aging, ERGO is naturally occurring, water soluble, amino acid multifaceted antioxidant produced by microbes in the soil and most commonly found in various species of mushrooms and grapes, meats and dairy products. Oxis synthesizes highly-purified ERGO, and three patents were active and two is pending. ERGO improves the body’s own intrinsic defenses against oxidative stress. ERGO is also conserving and maintaining the levels of other antioxidants such as Vitamin E, Vitamin C and glutathione, all of them are important for antioxidant. ERGO prevents diseases of oxidative stress/inflammation associated with damage from free radical and reactive oxygen species. So ERGO is beneficial for your healthy balance. And more about ERGO, please visit http://www.oxis.com

Though the Oxis stock is very low and can be named penny stocks, but it has great potential to get higher price.

Oxis on Twitter

Oxis on facebook



Rénovation Lyon

Lyon est une ville romantique. Maisons à Lyon est très belle. Cependant, la plupart des gens ont besoin de décorer leurs maisons ou des appartements dans plusieurs années, renovation lyon peut vous fournir une bonne rénovation et de l’affinage. Ils prendront soin de votre maison ou un appartement. artisan lyon vais vous donner un prix compétitif aussi. tout ce que vous gagné maisons, un appartement, ou même des magasins et des clubs, renovation rhone se fait sentir.

translated by Google Language tools, the original English is

Lyon is a romantic city. Houses in Lyon is very beautiful. However, most people need decorate their houses or apartments in several years, renovation lyon can provide you good renovation and refining. They will take care of your houses or apartments. artisan lyon will give you a competitive price too. whatever you won houses, apartment, or even shops and clubs, renovation rhone is experienced.

Family Album USA, Unit 2 Act II

The Blind date, Act II

Samsok: Ah, Ms Stewart. Welcome. How are you?
Susan: Fine, Samsok. and you?
Samsok: Fine. Thank you.
Susan: This is my friend, Harry Bennett.
Harry: Pleased to meet you.
Samsok: Very nice to meet you. Any friend of Ms Stewart’s is welcome in Samsok’s. Follow me, please.
Harry: I like it.
Susan: I do too. I come here often.
Samsok: Special place for special people.
Susan: Thank you, Samsok.
Harry: Well, nice restaurant.
Samsok: Would you like something to drink?
Susan: I’d like a glass of ginger ale with ice. Harry, what would you like?
Harry: Do you have dry white wine?
Samsok: How about California chablis?
Harry: Chablis is fine.
Samsok: what would you like to eat?
Susan: I’d like the mee krob. Harry, would you like to see the menu?
Harry: No, it’s ok. I’d like the mee krob, also. What is it?
Susan: Crispy fried noodles. I love them.
Samsok: May I bring you salad?
Susan: Oh, yes. What do you recommend today?
Samsok: I recommend rose petal salad, special for new friends.
Susan: rose petal salad?
Harry: Why not?
Samsok: I’ll take care of everything.

Susan: I hope you’re hungry.
Harry: What? Oh, yes, starving. Well, I..
Susan: Well, I..
Harry: What do you do at Universe Toy Company?
Susan: I’m the vice-president of new toy development.
Harry: Terrific.
Susan: I know you are a CPA.
Harry: That’s true. Harry Bennett, Certified Public Accountant. I love numbers. I do some work for Smith and Dale, your company’s accounting firm.
Susan: And so…..
Harry: Here we are.
Susan: Yes.
Harry: I have a daughter.
Susan: I know. How old is she?
Harry: Nine years old.
Susan: That’s a nice age. What’s her name?
Harry: Michelle.
Susan: Do you have a picture of her?
Susan: She’s very pretty.
Harry: Thank you.
Samsok: Rose petal salad. There’s a phone call for you, Mr Bennett.
Harry: Excuse me, Susan.
Susan: I hope nothing is wrong.
Samsok: I’ll get the rest of dinner. Excuse me.

Harry: Please forgive me, Susan, but… I have to leave. I feel terrible, but…
Susan: What’s the matter?
Harry: My daughter isn’t feeling well.
Susan: Oh, no! Is it serious?
Harry: I don’t know. The baby-sitter says she has a stomachache and she’s crying. I’ll have to go home. Will you forgive me.
Susan: Of course. I’m so sorry for Michelle. And you didn’t have a chance to eat.
Harry: Oh, it’s ok. Let me take you home first.
Susan: No, no. Please, go ahead.
Harry: It’s our first date.
Susan: We’ll make another. Please don’t worry.
Harry: I’ll phone you.
Susan: I hope your daughter is all right. Goodbye.
Harry: Goodbye.

Hawaii Plastic Surgeon

Making the outer you match the inner you. The Hawaii Plastic Surgeon will help you discover true you. Dr Larry Schlesinger has performed over 17,000 cosmetic surgery procedures, having 28 years of cosmetic surgery experience in Hawaii.

“Writing Successful Science Proposals” Received

In March, I ordered a book “Writing Successful Science Proposals” on Amazon.com. Now, I have received it. I was waiting it for days so that I forgot to notice the date when it arrived since the delivery mark is very unclear. I am very pleased to receive a book ordered on the Internet and sent from overseas.

I was surprised why Amazon.com uses such a big box packaging a small book when I got the parcel. Although the box is pressed, I thought the book would be good.
amazon package

When I opened it, the book looked very small compared to the box:
package opens

Oh, right! Amazon is Amazon. The book is based on a little harder paperboard and they are covered together by a film.
book contained in a film

So, the book is OK. Thanks Amazon.com.
the book



Get Adobe Flash playerPlugin by wpburn.com wordpress themes