|
[Sponsors] |
November 26, 2013, 07:05 |
Run time selectibility: factory vs marcros
|
#1 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
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. |
|
|
|
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 |