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

Openfoam mac: Compiling custom libraries

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 13, 2011, 15:43
Question Openfoam mac: Compiling custom libraries
  #1
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 6
atareen64 is on a distinguished road
Dear Foamers,

I installed the mac port of openfoam on my imac (OF 1.7.x) and it works like a charm.
Can anybody please tell me how I can compile my own libraries on the mac port? i.e. change solvers to my needs and things like that? Please please help, or if you know somebody who has answered this question already, kindly redirect me.

I used to the following link to install OF on my mac.
http://macof17x.blogspot.com/p/quick-setup.html

Warmest regards,
Ammar.
atareen64 is offline   Reply With Quote

Old   April 13, 2011, 16:05
Default
  #2
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 10
benk is on a distinguished road
If you're able to run the tutorial problems, then it should be as simple as editing the solver, then in the solver directory type: "wmake" to compile and then in the case directory of the problem, type the case name.

Normally it's best to copy the solver to your run directory (~/OpenFOAM/user-1.7.x/run) before editing it though.
benk is offline   Reply With Quote

Old   April 14, 2011, 03:11
Default
  #3
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
Quote:
Originally Posted by atareen64 View Post
Dear Foamers,

I used to the following link to install OF on my mac.
http://macof17x.blogspot.com/p/quick-setup.html
afaik there is no source code involved, so... do as the the setup told you but instead of automatically mounting an .dmg-image, create your own CASE_SENSITIVE partition, get the sources through macports and compile them with the patches from Bernard.

neewbie
mvoss is offline   Reply With Quote

Old   April 14, 2011, 11:01
Default
  #4
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 6
atareen64 is on a distinguished road
Thank you Benk!

Newbie, actually I have access to all the source code with this mac port and wmake works, so I have feeling the compilation of my own libraries should be similar to compiling OF libraries on a linux. Although I haven't tried it, I'll try it soon and repost.

Thank you!
atareen64 is offline   Reply With Quote

Reply

Tags
mac, openfoammac

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
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Compiling with static libraries tracing OpenFoam jens_klostermann OpenFOAM Installation 2 September 16, 2008 04:37
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 16:39.