Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
schedule:
# run Sundays at 3:00 am UTC (10 pm ET/7 pm PT)
- cron: '0 3 * * 0'
repository_dispatch:
# to run this, send a POST API call at repos/IDAES/idaes-pse/dispatches with the specified event_type
# e.g. `gh repos/IDAES/idaes-pse/dispatches -F event_type=ci_run_tests`
Expand Down Expand Up @@ -59,7 +62,7 @@ jobs:
pip install --progress-bar off black[jupyter]==24.3.0
- name: Run Black to verify that the committed code is formatted
run: |
black --check .
black --check --diff .

spell-check:
name: Check Spelling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To start, we inidcate that the choice to place an atom is fixed so that each canvas site is required to have an atom. This simplifies the problem significantly and results in a model that will seek to find the optimal labeling of metals on the nanocluster. "
"To start, we indicate that the choice to place an atom is fixed so that each canvas site is required to have an atom. This simplifies the problem significantly and results in a model that will seek to find the optimal labeling of metals on the nanocluster. "
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/archive/matopt/surface_design_src.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"source": [
"First, we introduce two rules to fix special sites in the design. \n",
"We fix the bottom two layers of atoms to exist, creating underlying bulk layers above which we will introduce nanostruced defets.\n",
"We also fix an arbitrary atom in the top layer, breaking symmetry of the design space and resulting in easier to solve opitmization problems without actually restricting the designs that can be possibly represented. "
"We also fix an arbitrary atom in the top layer, breaking symmetry of the design space and resulting in easier to solve optimization problems without actually restricting the designs that can be possibly represented. "
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/archive/power_gen/sofc/sofc.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def scale_flowsheet(m):
m.fs.flash.control_volume.properties_out[0].mole_frac_comp, 1e1
)

# hide missing scaling factor wornings
# hide missing scaling factor warnings
scaling_log = idaeslog.getLogger("idaes.core.util.scaling", level=idaeslog.ERROR)

iscale.calculate_scaling_factors(m)
Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/mod/hda/hda_ideal_VLE.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# at the URL "https://github.com/IDAES/idaes-pse".
##############################################################################
"""
Example ideal parameter block for the VLE calucations for a
Example ideal parameter block for the VLE calculations for a
Benzene-Toluene-o-Xylene system.
"""

Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/mod/methanol/methanol_state_block_VLE.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# at the URL "https://github.com/IDAES/idaes-pse".
##############################################################################
"""
Property package for ideal VLE calucations for the methanol synthesis problem.
Property package for ideal VLE calculations for the methanol synthesis problem.
Correlations from Turkay and Grossmann paper. See Latex files for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/mod/power_gen/steam_turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def _add_tags(self):
format_string="{:.3f}",
display_units=pyo.units.kJ / pyo.units.mol,
)
# Tag some important model quntities
# Tag some important model quantities
self.tags = iutil.ModelTagGroup()
self.tags["power"] = iutil.ModelTag(
doc=f"Steam turbine electric power output",
Expand Down
4 changes: 3 additions & 1 deletion idaes_examples/mod/properties/reaction_property_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def build(self):
units=pyunits.mol / pyunits.m**3 / pyunits.s / pyunits.Pa**2,
)

self.k_eq = Param(initialize=10000, doc="Equlibrium constant", units=pyunits.Pa)
self.k_eq = Param(
initialize=10000, doc="Equilibrium constant", units=pyunits.Pa
)

self.reaction_rate = Var(
self.params.rate_reaction_idx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"\n",
"- Import external pre-built steady-state flowsheets using the IDAES unit model library\n",
"- Define and add costing blocks using the IDAES Process Costing Framework\n",
"- Fomulate and solve a process economics optimization problem\n",
"- Formulate and solve a process economics optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"\n",
"- Import external pre-built steady-state flowsheets using the IDAES unit model library\n",
"- Define and add costing blocks using the IDAES Process Costing Framework\n",
"- Fomulate and solve a process economics optimization problem\n",
"- Formulate and solve a process economics optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"\n",
"- Import external pre-built steady-state flowsheets using the IDAES unit model library\n",
"- Define and add costing blocks using the IDAES Process Costing Framework\n",
"- Fomulate and solve a process economics optimization problem\n",
"- Formulate and solve a process economics optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"\n",
"- Import external pre-built steady-state flowsheets using the IDAES unit model library\n",
"- Define and add costing blocks using the IDAES Process Costing Framework\n",
"- Fomulate and solve a process economics optimization problem\n",
"- Formulate and solve a process economics optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/notebooks/docs/power_gen/ngcc/ngcc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2809,7 +2809,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Assert results approximately agree with baseline reoprt\n",
"# Assert results approximately agree with baseline report\n",
"assert pyo.value(m.fs.net_power_mw[0]) == pytest.approx(646)\n",
"assert pyo.value(m.fs.gross_power[0]) == pytest.approx(-690e6, rel=0.001)\n",
"assert pyo.value(100 * m.fs.lhv_efficiency[0]) == pytest.approx(52.8, abs=0.1)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Assert results approximately agree with baseline reoprt\n",
"# Assert results approximately agree with baseline report\n",
"assert pyo.value(m.fs.net_power_mw[0]) == pytest.approx(646)\n",
"assert pyo.value(m.fs.gross_power[0]) == pytest.approx(-690e6, rel=0.001)\n",
"assert pyo.value(100 * m.fs.lhv_efficiency[0]) == pytest.approx(52.8, abs=0.1)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Assert results approximately agree with baseline reoprt\n",
"# Assert results approximately agree with baseline report\n",
"assert pyo.value(m.fs.net_power_mw[0]) == pytest.approx(646)\n",
"assert pyo.value(m.fs.gross_power[0]) == pytest.approx(-690e6, rel=0.001)\n",
"assert pyo.value(100 * m.fs.lhv_efficiency[0]) == pytest.approx(52.8, abs=0.1)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Assert results approximately agree with baseline reoprt\n",
"# Assert results approximately agree with baseline report\n",
"assert pyo.value(m.fs.net_power_mw[0]) == pytest.approx(646)\n",
"assert pyo.value(m.fs.gross_power[0]) == pytest.approx(-690e6, rel=0.001)\n",
"assert pyo.value(100 * m.fs.lhv_efficiency[0]) == pytest.approx(52.8, abs=0.1)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
" units=pyunits.mol / pyunits.m**3 / pyunits.s,\n",
" )\n",
"\n",
" self.k_eq = Param(initialize=10000, doc=\"Equlibrium constant\", units=pyunits.Pa)"
" self.k_eq = Param(initialize=10000, doc=\"Equilibrium constant\", units=pyunits.Pa)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
" units=pyunits.mol / pyunits.m**3 / pyunits.s,\n",
" )\n",
"\n",
" self.k_eq = Param(initialize=10000, doc=\"Equlibrium constant\", units=pyunits.Pa)"
" self.k_eq = Param(initialize=10000, doc=\"Equilibrium constant\", units=pyunits.Pa)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
" units=pyunits.mol / pyunits.m**3 / pyunits.s,\n",
" )\n",
"\n",
" self.k_eq = Param(initialize=10000, doc=\"Equlibrium constant\", units=pyunits.Pa)"
" self.k_eq = Param(initialize=10000, doc=\"Equilibrium constant\", units=pyunits.Pa)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
" units=pyunits.mol / pyunits.m**3 / pyunits.s,\n",
" )\n",
"\n",
" self.k_eq = Param(initialize=10000, doc=\"Equlibrium constant\", units=pyunits.Pa)"
" self.k_eq = Param(initialize=10000, doc=\"Equilibrium constant\", units=pyunits.Pa)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the sacling factor be sure to reed the documentation/examples of the scaling tools."
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the scaling factor be sure to reed the documentation/examples of the scaling tools."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the sacling factor be sure to reed the documentation/examples of the scaling tools."
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the scaling factor be sure to reed the documentation/examples of the scaling tools."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the sacling factor be sure to reed the documentation/examples of the scaling tools."
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the scaling factor be sure to reed the documentation/examples of the scaling tools."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the sacling factor be sure to reed the documentation/examples of the scaling tools."
"There will be a WARNING from missing scaling factors. This is normal as the Txy diagram function does not know the state definition being used. To learn more about the scaling factor be sure to reed the documentation/examples of the scaling tools."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion idaes_examples/notebooks/docs/tut/core/hda_flowsheet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Using the SequentialDecomposition tool to initialize a flowsheet with recycle\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Call and implement the IDAES CSTR unit model\n",
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Call and implement the IDAES CSTR unit model\n",
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Call and implement the IDAES CSTR unit model\n",
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Call and implement the IDAES CSTR unit model\n",
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Call and implement the IDAES EquilibriumReactor unit model\n",
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"- Call and implement the IDAES EquilibriumReactor unit model\n",
"- Construct a steady-state flowsheet using the IDAES unit model library\n",
"- Connecting unit models in a flowsheet using Arcs\n",
"- Fomulate and solve an optimization problem\n",
"- Formulate and solve an optimization problem\n",
" - Defining an objective function\n",
" - Setting variable bounds\n",
" - Adding additional constraints \n",
Expand Down
Loading
Loading