-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adding sparging system to saltproc #50
Conversation
Hello @mehmeturkmen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-02-23 17:53:23 UTC |
@mehmeturkmen Thank you for your effort! I am glad someone adding more features to SaltProc. |
@katyhuff @andrewryh I have made necessary changes according to all the comments you made in the first review. I redefined the Sparger and Separator classes as child classes from Process parent class. I think this was what was in your mind @katyhuff. As you said, it simplified the "if" statement. If this is not what you implied, let's discuss the point where I don't understand. There is still one thing bothering me: the use of Sparging system as an option in saltproc. Existing use of saltproc allows a user to use own-defined sparger/separator efficiencies in input file. This definition can be a fixed value or an equation. With this PR, saltproc will evolve to automatically calculate sparger and separator's efficiencies for target isotopes. I think existing flexibility should be maintained. In the previous review, I suggested an empty string definition in input file to activate the saltproc for the calculation of the sparging efficiency. Maybe this time we should use none values associated with key target isotopes in input file to enable the option. Along with your suggestions, I will add an "if" statement before line 168 in app.py. |
I will not have a chance to review this before Friday. https://travis-ci.org/github/arfc/saltproc/builds/759722725 It will help my confidence in the review if you can make sure the tests pass (by fixing the code, not deleting the tests, please). Ideally, it would be best to also add tests to the test suite that cover the new functionality you have added. |
Ok. I am going to add new tests. Because of the reason I mentioned in previous comment, the test fails. I'll also fix it. |
With new patches, test files for sparger and separator are available. I also tested the results of latest saltproc with the results of existing one. They were totally the same.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late response.
Tests passed, the new classes and methods are very well defined.
At some point, in separate PR, please rebuild the documentation, so users would be aware about these new capabilities.
Thanks
Good point @andrewryh. Any suggestion for the best place to put? I am making necessary informative changes in app,py documentation but how about overview file? I can mention about the new feature of the saltproc by opening a new section inside it like "New". |
It is already up and running: https://github.com/arfc/saltproc/tree/master/doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you memo, I think this is a definite improvement!! After this is merged, please make a pr to the gh-pages branch that rebuilds the docs.
This PR holds a sensitivity analysis script to seek an optimal sparging system.
sensitivity.py
underscripts/Sensitivity/
calculates removal efficiencies considering various design parameters for bubble generator and bubble separator, compares results to a defined reference design and illustrates results in terms of change in removal efficiencies with a change in design parameters.In addition to above, this PR adds a sparging component into the function
read_processes_from_input in app.py
where removal efficiencies are read for each chemical isotope fromjson
input file. The function calls a separate scriptsparging.py
which defines aSparger Class
for bubble generator and aSeparator Class
for bubble separator, and uses efficiency equations reported by ORNL-TM-2245 and ORNL-TM-4533. The modified function updates removal efficiencies of chemical isotopes for the sparging system. If the efficiencies are entered as {} in the json input file, the code will calculate the efficiencies itself.