CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Run time selectibility: factory vs marcros

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

LinkBack Thread Tools Display Modes
Old   November 26, 2013, 08:05
Default Run time selectibility: factory vs marcros
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 15
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:
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


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
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 04:34
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
Choosing the apt time step size for a transient run saisanthoshm88 CFX 1 March 31, 2012 16:11
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 12 September 17, 2007 17:48

All times are GMT -4. The time now is 17:14.