Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed May 24, 2024
1 parent d756a24 commit 15d8f76
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def main():

# Before calling report_structural_issues, we'll effectively disable Pyomo
# logging messages. This is not recommended in general, but we do it here
# to supress unit inconsistency errors that otherwise flood our screen.
# to suppress unit inconsistency errors that otherwise flood our screen.
# This model has unit inconsistency errors as it was created in IDAES 1.7,
# before we enforced that models use units.
logging.getLogger("pyomo").setLevel(logging.CRITICAL)
Expand All @@ -149,7 +149,7 @@ def main():
dt.report_structural_issues()
dt.display_underconstrained_set()
dt.display_overconstrained_set()
# The overconstrained system decomposes into smaller indepedent blocks, which
# The overconstrained system decomposes into smaller independent blocks, which
# are easier to debug.

# After some thought, we decide we need to make particle porosity a variable,
Expand Down Expand Up @@ -201,7 +201,7 @@ def main():
# Let's check the structural diagnostics again.
dt = DiagnosticsToolbox(model2)
dt.report_structural_issues()
# Lood good!
# Looks good!

# Now let's try to solve
free_degrees_of_freedom(model2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ def initialize(blk, state_args=None, hold_state=False,
hold_state : flag indicating whether the initialization routine
should unfix any state variables fixed during
initialization (default=False).
- True - states varaibles are not unfixed, and
- True - states variables are not unfixed, and
a dict of returned containing flags for
which states were fixed during
initialization.
- False - state variables are unfixed after
initialization by calling the
relase_state method
release_state method
Returns:
If hold_states is True, returns a dict containing flags for
which states were fixed during initialization.
Expand Down Expand Up @@ -386,7 +386,7 @@ def initialize(blk, state_args=None, hold_state=False,

def release_state(blk, flags, outlvl=0):
"""
Method to relase state variables fixed during initialization.
Method to release state variables fixed during initialization.
Keyword Arguments:
flags : dict containing information of which state variables
were fixed during initialization, and should now be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def initialize(blk, outlvl=idaeslog.NOTSET,
* 5 = Final initialization status and exceptions
* 6 = No output
optarg : solver options dictionary object (default=None)
solver : str indicating whcih solver to use during
solver : str indicating which solver to use during
initialization (default = "ipopt")
Returns:
None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,18 @@ def initialize(blk, state_args=None, hold_state=False,
flow_mass, temperature, and mass_frac_comp
outlvl : sets output level of initialization routine
optarg : solver options dictionary object (default=None)
solver : str indicating whcih solver to use during
solver : str indicating which solver to use during
initialization (default = "ipopt")
hold_state : flag indicating whether the initialization routine
should unfix any state variables fixed during
initialization (default=False).
- True - states varaibles are not unfixed, and
- True - states variables are not unfixed, and
a dict of returned containing flags for
which states were fixed during
initialization.
- False - state variables are unfixed after
initialization by calling the
relase_state method
release_state method
Returns:
If hold_states is True, returns a dict containing flags for
which states were fixed during initialization.
Expand Down Expand Up @@ -349,7 +349,7 @@ def initialize(blk, state_args=None, hold_state=False,

def release_state(blk, flags, outlvl=0):
"""
Method to relase state variables fixed during initialization.
Method to release state variables fixed during initialization.
Keyword Arguments:
flags : dict containing information of which state variables
were fixed during initialization, and should now be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def build(self):
self.add_outlet_port(name="solid_outlet", block=self.solid_phase)

# =========================================================================
""" Add performace equation method"""
""" Add performance equation method"""
self._apply_transformation()
self._make_performance()

Expand Down Expand Up @@ -560,7 +560,7 @@ def _make_performance(self):
# Add performance equations

# ---------------------------------------------------------------------
# Geometry contraints
# Geometry constraints

# Bed area
@self.Constraint(doc="Bed area")
Expand Down Expand Up @@ -593,7 +593,7 @@ def solid_phase_length(b):
return (b.solid_phase.length == b.bed_height)

# ---------------------------------------------------------------------
# Hydrodynamic contraints
# Hydrodynamic constraints

# Gas superficial velocity
@self.Constraint(self.flowsheet().config.time,
Expand Down Expand Up @@ -657,7 +657,7 @@ def gas_phase_config_pressure_drop(b, t, x):
"the pressure drop correlation. Please contact the IDAES"
" developers with this bug.".format(self.name))
# ---------------------------------------------------------------------
# Reaction contraints
# Reaction constraints

# Build homogeneous reaction constraints
if gas_phase.reaction_package is not None:
Expand Down Expand Up @@ -809,7 +809,7 @@ def initialize(blk, gas_phase_state_args={}, solid_phase_state_args={},
property package) (default = {}).
outlvl : sets output level of initialisation routine
optarg : solver options dictionary object (default={'tol': 1e-6})
solver : str indicating whcih solver to use during
solver : str indicating which solver to use during
initialization (default = 'ipopt')
Returns:
Expand All @@ -830,7 +830,7 @@ def initialize(blk, gas_phase_state_args={}, solid_phase_state_args={},
solid_phase = blk.config.solid_phase_config

# Keep all unit model geometry constraints, derivative_var constraints,
# and property block constraints active. Additionaly, in control
# and property block constraints active. Additionally, in control
# volumes - keep conservation linking constraints and
# holdup calculation (for dynamic flowsheets) constraints active

Expand Down Expand Up @@ -1581,7 +1581,7 @@ def solid_phase_length(b):
self.add_outlet_port(name="solid_outlet", block=self.solid_phase)

# =========================================================================
""" Add performace equation method"""
""" Add performance equation method"""
self._apply_transformation()
self._make_performance()

Expand Down

0 comments on commit 15d8f76

Please sign in to comment.