r/CFD • u/Overunderrated • Jul 03 '19
[July] Software Engineering for CFD
As per the discussion topic vote, July's monthly topic is software engineering for CFD.
Previous discussions: https://www.reddit.com/r/CFD/wiki/index
15
Upvotes
View all comments
Show parent comment
1
u/AgAero Jul 18 '19
If I'm reading this correctly, that seems to be the anti-pattern of 'defining a class with at most one other function besides init'. Do you have entire classes devoted to creating reader objects for each bit of constant data?
Is there another way around this you think? You can throw things together into a struct of course and just pass that around, but maybe there's no benefit to doing so.
I run into similar issues regularly and haven't decided on a 'better' way to do things yet.