|November 26, 2013, 08:05||
Run time selectibility: factory vs marcros
Join Date: Mar 2009
Posts: 117Rep Power: 13
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.
|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|