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

Openfoam mac: Compiling custom libraries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2011, 16:43
Question Openfoam mac: Compiling custom libraries
  #1
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
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, 17:05
Default
  #2
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19
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, 04:11
Default
  #3
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
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, 12:01
Default
  #4
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
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


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
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 07:25
Compiling with static libraries tracing OpenFoam jens_klostermann OpenFOAM Installation 2 September 16, 2008 05:37
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 09:54


All times are GMT -4. The time now is 13:58.