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

Boron removal unit test harness #1415

Merged
merged 11 commits into from
Jun 9, 2024
5 changes: 2 additions & 3 deletions watertap/unit_models/boron_removal.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ def build(self):
units=pyunits.mol / pyunits.m**3,
doc="Resulting molarity of Borate",
)

# Variables for volume and retention time
self.reactor_volume = Var(
initialize=1,
Expand Down Expand Up @@ -802,10 +801,10 @@ def initialize_build(
)

def outlet_pH(self, time=0):
return -log10(value(self.conc_mol_H[time]) / 1000)
return -log10(self.conc_mol_H[time] / (1000 * (pyunits.mol / pyunits.m**3)))

def outlet_pOH(self, time=0):
return -log10(value(self.conc_mol_OH[time]) / 1000)
return -log10(self.conc_mol_OH[time] / (1000 * (pyunits.mol / pyunits.m**3)))

def propogate_initial_state(self):
units_meta = self.config.property_package.get_metadata().get_derived_units
Expand Down
Loading