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

MultiThreading support in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2008, 16:19
Default Hello all, I'm attaching th
  #1
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Hello all,
I'm attaching the sources for a general multi-threading class (using pthreads) for use with OpenFOAM. The current capability is quite minimal, but I'm welcome to suggestions on class extensions.
Basically, the class accepts functions (or static class member-functions) and issues a number of threads corresponding to a user-specified dictionary entry. With all the multi-core processors these days, I'm sure this functionality would be quite useful.
multiThreader.tar.gz
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   December 15, 2008, 19:54
Default Hello again... I've made su
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Hello again...

I've made substantial modifications to the multiThreader class to incorporate thread-pools.
The tarball also contains a brief code snippet which demonstrates use of the class. Feedback is appreciated.

multiThreader.tar.gz
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue 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
OpenFOAM 15 on AIX system does not support this version besto OpenFOAM Installation 3 October 29, 2008 05:23
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen jaswi OpenFOAM 0 August 3, 2007 14:11
How do you like your support? for the cfd users Main CFD Forum 8 November 2, 2006 16:39
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 09:54
Support for Mac Steve Main CFD Forum 1 January 28, 2004 09:22


All times are GMT -4. The time now is 15:04.