libantioch / antioch

C++ Chemical Kinetics, Thermodynaimics, and Transport Library
https://libantioch.github.io/
Other
23 stars 17 forks source link

Refactor IdealGasMicroThermo #257

Closed pbauman closed 6 years ago

pbauman commented 6 years ago

RIght now we force the user to externally construct a NASAEvaluator object and then hold on to it so that IdealGasMicroThermo only holds a reference to it. But since IdealGasMicroThermo is really an "Evaluator" class, it would be better to internally construct the NASAEvaluator and then take a reference to the NASAThermoMixture. All the Evaluator classes are lightweight construction, so this makes sense. The problem will be there's not way that I can see to make the class backward compatible because we'll have to change the template arguments. So we'll need to create a new class IdealGasThermo (other suggestions welcome) and then deprecate IdealGasMicroThermo.