Skip to content

Commit

Permalink
Fix typos in documentation strings for ion-exchange membrane type and…
Browse files Browse the repository at this point in the history
… channel length
  • Loading branch information
tristantc committed Dec 9, 2024
1 parent de6d633 commit ecea6f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gdplib/reverse_electrodialysis/REDprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def build_model():
doc="High- and Low-concentration streams", initialize=['HC', 'LC'], ordered=True
)

m.iem = pyo.Set(doc='Ion-excahnge membrane type', initialize=['AEM', 'CEM'])
m.iem = pyo.Set(doc='Ion-exchange membrane type', initialize=['AEM', 'CEM'])

m.nr = pyo.Param(
doc="Max. # of RED stacks",
Expand Down Expand Up @@ -367,7 +367,7 @@ def CRFm(m):
default=0.456,
)
m.L = pyo.Param(
doc="Channel's lenght = IEMs [m]",
doc="Channel's length = IEMs [m]",
initialize=stack_param.length.values[0],
default=0.383,
)
Expand Down
8 changes: 4 additions & 4 deletions gdplib/reverse_electrodialysis/REDstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def build_REDstack():
ordered=True,
)

m.iem = pyo.Set(doc='Ion-excahnge membrane type', initialize=['AEM', 'CEM'])
m.iem = pyo.Set(doc='Ion-exchange membrane type', initialize=['AEM', 'CEM'])

m.port = pyo.Set(
doc='Inlet and Outlet RU Ports', initialize=['rm', 'rs'], ordered=True
Expand Down Expand Up @@ -115,7 +115,7 @@ def build_REDstack():
# initialize=width,
)
m.L = pyo.Param(
doc="Channel's lenght = IEMs [m]",
doc="Channel's length = IEMs [m]",
within=pyo.NonNegativeReals,
default=0.383,
initialize=stack_param.length.values[0],
Expand Down Expand Up @@ -268,7 +268,7 @@ def _int_trap_rule(x, v):

def _int_trap_rule_sol(m, x, sol, v):
"""
This function computes the integral of a function using the trapezoidal rule for the hihg and low concentration channels.
This function computes the integral of a function using the trapezoidal rule for the high and low concentration channels.
Parameters
----------
Expand Down Expand Up @@ -1044,7 +1044,7 @@ def _Rcpx(m, x):

def _Jcond_b(m, x):
"""
This function sets the bounds of the conductive molar flux wich depends on the discretized electric current density.
This function sets the bounds of the conductive molar flux which depends on the discretized electric current density.
Parameters
----------
Expand Down

0 comments on commit ecea6f4

Please sign in to comment.