illinois-ceesd / mirgecom

MIRGE-Com is the workhorse simulation application for the Center for Exascale-Enabled Scramjet Design at the University of Illinois.
Other
12 stars 19 forks source link

Add function to compute mole fractions from mass and vice-versa #1041

Closed tulioricci closed 4 months ago

tulioricci commented 4 months ago

Questions for the review:

MTCam commented 4 months ago

I don't think the interface is descriptive enough to be readily understood by other users. Not a reason to block it. The only thing I could think of to "improve" it would be:

mass_fractions_from_mole_fractions and mole_fractions_from_mass_fractions

This is readily understood at the call site, but a bit more cumbersome. You can fix this or leave it.