Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New unit: Molar flow #25

Closed
mschmitz2 opened this issue Jul 14, 2022 · 4 comments
Closed

New unit: Molar flow #25

mschmitz2 opened this issue Jul 14, 2022 · 4 comments

Comments

@mschmitz2
Copy link
Contributor

mschmitz2 commented Jul 14, 2022

Molar flow (i.e. AmountOfSubstance/ Duration e.g. mol/s) is a unit that would be of interest for me.

Specifically, I ran into needing to compute MassFlow / MolarMass, which I then noticed I could not cast to anything appropriate.

Thanks for the amazing work!

@MadsKirkFoged
Copy link
Owner

It sounds like something that needs to be added!
I'll have a look at it after the summer holidays :-)

@mschmitz2
Copy link
Contributor Author

No hurry. I took inspiration from your source code and defined a couple of units myself.

Example of unit in question, with minimal number of units (SI & mol/s): MolarFlowUnit.zip.

@MadsKirkFoged
Copy link
Owner

MadsKirkFoged commented Aug 16, 2022

I have added the MolarFlow in the newest version .
Can you test it out and see if it matches your expectations?

AmountOfSubstance Mole = new AmountOfSubstance(10, AmountOfSubstanceUnit.Mole);
Duration Time = new Duration(5, DurationUnit.Second);
MolarFlow MF = Mole / Time;

@mschmitz2
Copy link
Contributor Author

Works as expected for all my current uses. Can get rid of my implementation. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants