Skip to content

Commit

Permalink
addes osm ref and sea water options for ro example
Browse files Browse the repository at this point in the history
  • Loading branch information
avdudchenko committed Sep 12, 2024
1 parent 2d4401c commit bac1d57
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 337 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def build_vapor_pressure_constraint(rkt_output_object):


def build_osmotic_constraint(rkt_output_object):
# reference https://help.syscad.net/PHREEQC_Reverse_Osmosis
user_output_var = rkt_output_object.pyomo_var
build_properties = rkt_output_object.pyomo_build_options.properties
build_options = rkt_output_object.pyomo_build_options.options
Expand Down
2 changes: 2 additions & 0 deletions src/reaktoro_pse/core/reaktoro_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def scalingTendencyDirect(self, property_index):
return required_props

def osmoticPressure(self, property_index):

# reference https://help.syscad.net/PHREEQC_Reverse_Osmosis
"""build osmoric pressure constraint, as its not available from reaktoro"""
required_props = PyomoBuildOptions()
required_props.register_property(
Expand Down
Loading

0 comments on commit bac1d57

Please sign in to comment.