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

Update Dye Desal Flowsheet Parameters #1528

Merged
merged 39 commits into from
Dec 13, 2024

Conversation

MarcusHolly
Copy link
Contributor

@MarcusHolly MarcusHolly commented Nov 19, 2024

Fixes/Resolves:

Builds off #1485 to update various parameters values based on feedback.

Changes proposed in this PR:

  • Updates various parameter values
  • Updates currency from USD_2020 to USD_2023
  • Updates testing assertions

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@MarcusHolly MarcusHolly added the Priority:Normal Normal Priority Issue or PR label Nov 19, 2024
@MarcusHolly MarcusHolly self-assigned this Nov 19, 2024
@ksbeattie ksbeattie marked this pull request as ready for review November 21, 2024 21:07
Comment on lines 1599 to 1651
# Dye removal
# dye_removed = value(m.fs.gac.gac_removed[0].flow_mass_phase_comp["Liq", "dye"])
# dye_total = value(
# m.fs.gac.process_flow.properties_in[0].flow_mass_phase_comp["Liq", "dye"]
# )
# removal_percentage = (dye_removed / dye_total) * 100
# print(f"\nDye removal is {removal_percentage} %")

# Adsorption Capacity: q = (C_o - C_e)V/m
# inlet_dye = value(
# m.fs.gac.process_flow.properties_in[0].conc_mass_phase_comp["Liq", "dye"]
# )
# print(f"GAC inlet dye concentration is {inlet_dye}")
# outlet_dye = value(
# m.fs.gac.process_flow.properties_out[0].conc_mass_phase_comp["Liq", "dye"]
# )
# print(f"GAC outlet dye concentration is {outlet_dye}")
# solution_volume = value(
# m.fs.gac.process_flow.properties_in[0].flow_vol_phase["Liq"]
# * m.fs.gac.operational_time
# )
# adsorbent_mass = value(
# m.fs.gac.process_flow.properties_in[0].flow_mass_phase_comp["Liq", "dye"]
# * m.fs.gac.operational_time
# )
# adsorption_capacity = (
# 100 * (inlet_dye - outlet_dye) * solution_volume / adsorbent_mass
# )
# print(f"GAC adsorption capacity is {adsorption_capacity} %")

# ro_elec = value(m.fs.ro_costing.aggregate_flow_costs["electricity"])
# zo_elec = value(m.fs.zo_costing.aggregate_flow_costs["electricity"])
#
# print(f"RO Electricity: {ro_elec}")
# print(f"ZO Electricity: {zo_elec}")
#
# ro_vopex = value(m.fs.ro_costing.total_variable_operating_cost)
# zo_vopex = value(m.fs.zo_costing.total_variable_operating_cost)
#
# print(f"RO VOPEX: {ro_vopex}") # aggregate flow costs (electricity)
# print(f"ZO VOPEX: {zo_vopex}")
#
# ro_fopex = value(m.fs.ro_costing.total_fixed_operating_cost)
# zo_fopex = value(m.fs.zo_costing.total_fixed_operating_cost)
#
# print(f"RO FOPEX: {ro_fopex}") # MLC + aggregate fixed operating costs (unit model dependent)
# print(f"ZO FOPEX: {zo_fopex}")
#
# ro_mlc = value(m.fs.ro_costing.maintenance_labor_chemical_operating_cost)
# zo_mlc = value(m.fs.zo_costing.maintenance_labor_chemical_operating_cost)
#
# print(f"RO MLC: {ro_mlc}")
# print(f"ZO MLC: {zo_mlc}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep this around ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope - I'll get rid of this

Copy link
Contributor

@agarciadiego agarciadiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lbianchi-lbl lbianchi-lbl enabled auto-merge (squash) December 13, 2024 05:15
@lbianchi-lbl lbianchi-lbl merged commit c86c183 into watertap-org:main Dec 13, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Normal Normal Priority Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants