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

Run time selectibility: factory vs marcros

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2013, 07:05
Default Run time selectibility: factory vs marcros
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
Dear OpenFOAM Developers,

I would like to ask a question about OpenFOAM code structure. I have read and with an exception of implementation details understood this article:
http://openfoamwiki.net/index.php/Op...tion_mechanism
Using this and by mimicing the structure of libraries supplied in the distribution I also implemented a few of my own libraries.

So I understand that currently run time selection is achieved through macros. In many other places OF extensively uses templates. Is it possible and has there been any effort to achieve run time selection through templates? I believe that a factory design pattern has exactly this purpose. Please note that I ask chiefly out out of curiosity and to have a discussion about alternatives.
AlmostSurelyRob 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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34
Choosing the apt time step size for a transient run saisanthoshm88 CFX 1 March 31, 2012 16:11


All times are GMT -4. The time now is 05:20.