-
Notifications
You must be signed in to change notification settings - Fork 51
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
[WIP] ADM1 Model #627
[WIP] ADM1 Model #627
Conversation
@andrewlee94 @luohezhiming I will be committing to this model bit by bit. Right now, I have some version of the property model in place and getting to work on the reaction model (added stoich parameters and stoichiometric coefficients for a couple of the reactions so far). Feel free to check out what I have so far. |
Codecov Report
@@ Coverage Diff @@
## main #627 +/- ##
==========================================
- Coverage 94.81% 94.27% -0.54%
==========================================
Files 217 216 -1
Lines 20357 19691 -666
==========================================
- Hits 19301 18564 -737
- Misses 1056 1127 +71
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Excellant work, will continue reviewing it.
watertap/property_models/anaerobic_digestion/adm1_properties.py
Outdated
Show resolved
Hide resolved
Co-authored-by: luohezhiming <98901358+luohezhiming@users.noreply.github.com>
* cleaned up tutorials * fixed tutorials
…g#785) * passing options through * fixing docstring
…g#780) * Register 3 of the recently merged flowsheet UI modules * Remove nonessential CI checks and integration tests while WIP * Use str() instead of .name to generate the key for the exported object * Try setting default value for is_readonly based on obj if not specified * Ensure obj is a supported Pyomo object * Store model_export key as instance attr to access it when obj is None * Add check to ensure valid Pyomo object if specified * Tweak is_readonly definition and validator with more explicit failure * Register next batch of UI modules from watertap-org#767, watertap-org#769, watertap-org#772, watertap-org#775 * Fix wrong module name * Add UI module from watertap-org#776 * Apply fix for test failure due to USD_2018 and USD_2020 units * Revert "Remove nonessential CI checks and integration tests while WIP" This reverts commit 24f362e. * Try setting USD_20XX units the other way round * Tweak expected results to make tests pass * Add logic to map flowsheet names to pytests markers to be applied * Add requires_idaes_solvers as optional FlowsheetExport field * Apply marker based on requires_idaes_solver attribute * Apply marker per-parametrized-testfunction instead of per-testclass * Register swine_wwt entry point * Increase FlowsheetExport API default version number * Revert mostly-clueless attempts at addressing hrcs costing failures * Add explicit conversion of watertap_costing exprs for hrcs_ui export() * fixing 1690 for macOS * Remove requirement for IDAES solver after changes from watertap-org#786 Co-authored-by: Bernard Knueven <Bernard.Knueven@nrel.gov>
* Add support for Python 3.10 * Try to see if 3.10 dep resolution errors are due to dev dependencies * Try if Python 3.10 incompatibility is due to scipy * Try disabling other requirements * Reduce number of jobs while debugging * Try changing python_requires constraint * Restore h5py requirement * Restore scipy requirement * Revert "Reduce number of jobs while debugging" This reverts commit a3917fd. * Restore nbformat requirement * Update setup.py Co-authored-by: bknueven <30801372+bknueven@users.noreply.github.com> Co-authored-by: bknueven <30801372+bknueven@users.noreply.github.com>
* save work * save unfinished work- nonohmic, diffusion layer in places * save work * save work, initial solvable version! * save work * membrane diffusion and water osmosis under polarizaiontion refined * save work, all working property * first finalized ed1d refinement with tests * save work * save work * save work, all components in * save work, solving debug * update by main * update from main * typo corr
* save work * save unfinished work- nonohmic, diffusion layer in places * save work * save work, initial solvable version! * save work * membrane diffusion and water osmosis under polarizaiontion refined * save work, all working property * first finalized ed1d refinement with tests * typo correction * improve fs opt * test opt bound * rename i_lim configvalue * typo fix and rename set
* save work * save work * refinement key content added * format debug * format debug * format debug * improvement * improvement * add figure * add figure * add figure * fix a reused letter * fix a reused letter * rewording to avoid confusion * minor format improvement
* ed doc init * ed doc work save * doc saving * text draft * add figure_png * format, index added * modify figure cap * fix build issues * fix building issue 2nd * LaTex format fix * LaTex format 2 * LaTex debug 3 * LaTex debug * Addresses review comments from @aladshaw3 * LaTex debug * another hopfully last math display fix * equation fix * added extension content * add image * format fix * change cotrol vol block names * typo corr Co-authored-by: Austin Ladshaw <ladshawap@ornl.gov>
* Replace doctest directive with code-block directive * Add testcode directives * Use keyword arguments instead of default dict * Use keyword arguments * Add deprecation warnings to testoutput * Remove deprecate warning from testoutput * Use keyword argument * Display output from example * Add traceback exception to testoutput * Use keyword arguments * Fix example for RO model * Fix state_block and RO model setup * Add ellipsis to testoutput for property model example Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>
* Add GLSD AD model * Add tests for flowsheet * Update watertap/data/techno_economic/anaerobic_digestion_reactive.yaml Co-authored-by: Adam Atia <aatia@keylogic.com> * Update watertap/examples/flowsheets/case_studies/wastewater_resource_recovery/GLSD_anaerobic_digester/GLSD_anaerobic_digestion.py Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * Revise file * Revise subtype * Update watertap/examples/flowsheets/case_studies/wastewater_resource_recovery/GLSD_anaerobic_digester/GLSD_anaerobic_digestion_global_costing.yaml Co-authored-by: Adam Atia <aatia@keylogic.com> * Revise test values Co-authored-by: Adam Atia <aatia@keylogic.com> Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com>
* Add gui * Add gui for 1669 * Register GUI
* Changes GUI cost factors from None to TIC * Start addressing some test failures * fix AMO flowsheet costing tests * fix ZO model unit tests * Fixes HTGZO testing failure * add direct_capital_cost * black * using direct_capital_cost * patch hydrothermal_gasification_zo test * adding helpful comment * kick off GHA * fixing location of _add_cost_factor Co-authored-by: tarnold17 <travis.arnold17@gmail.com> Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov> Co-authored-by: Bernard Knueven <Bernard.Knueven@nrel.gov>
* TDS yaml removal_frac_mass_comp to 0, update test * fix tds removal to 0.9 in muni ex for test pass
…ram objects (watertap-org#798) * Restore re-raising exceptions within FlowsheetInterface.build() * Ensure more explicit errors are generated during validation * Tweak validation checks * Reduce number of checks while WIP * Remove redundant higher-precedence option * Fix and refactor fsapi unit test * Ensure all "dynamic default" validators have always=True This issue was detected by test_actions[model_export_dict_data_kwarg] * Enable fsapi export for Param objects * Fix entry points for Python 3.7 * Remove duplicated export * Fix typo in attribute name * Fix conversion between incompatible units * Extend is_readonly logic to support Param objects * Revert "Reduce number of checks while WIP" This reverts commit 8fa3c7e. * Tweak Codecov thresholds
* Test that each ZO model has a ZO doc * Adds files that were missed in original commit * Incorporates Ludovico's suggestions * Minor changes to address comments * Excel updatted properly now * Constructed wetlands rst update * revert changes made in last commit * Revert "revert changes made in last commit" This reverts commit 91711ed. * hardcoding list place Co-authored-by: Bernard Knueven <Bernard.Knueven@nrel.gov>
Remove one more get_solver() deprecation
Address most of IDAES v2 deprecations
Fixes/Resolves:
Summary/Motivation:
Implement Anaerobic Digestion Model No. 1 (ADM1) for detailed wastewater treatment processes.
Checklist:
Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: