Skip to content
Closed
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
4 changes: 2 additions & 2 deletions addheader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ path_exclude:
- '.jupyter_cache'
verbose: 1
sep-len: 80
jupyter: '_src.ipynb'
...
jupyter: '.ipynb'
...
4 changes: 2 additions & 2 deletions file_header.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ The Institute for the Design of Advanced Energy Systems Integrated Platform
Framework (IDAES IP) was produced under the DOE Institute for the
Design of Advanced Energy Systems (IDAES).

Copyright (c) 2018-2023 by the software owners: The Regents of the
Copyright (c) 2018-2025 by the software owners: The Regents of the
University of California, through Lawrence Berkeley National Laboratory,
National Technology & Engineering Solutions of Sandia, LLC, Carnegie Mellon
University, West Virginia University Research Corporation, et al.
All rights reserved. Please see the files COPYRIGHT.md and LICENSE.md
for full copyright and license information.
for full copyright and license information.
1 change: 1 addition & 0 deletions idaes_examples/notebooks/_config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
author: The IDAES Team
copyright: "2018-2025"
bibtex_bibfiles:
- references.bib
exclude_patterns:
Expand Down
27 changes: 27 additions & 0 deletions idaes_examples/notebooks/_dev/notebooks/cache.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "ac23bafd",
"metadata": {
"tags": [
"header",
"hide-cell"
]
},
"outputs": [],
"source": [
"###############################################################################\n",
"# The Institute for the Design of Advanced Energy Systems Integrated Platform\n",
"# Framework (IDAES IP) was produced under the DOE Institute for the\n",
"# Design of Advanced Energy Systems (IDAES).\n",
"#\n",
"# Copyright (c) 2018-2025 by the software owners: The Regents of the\n",
"# University of California, through Lawrence Berkeley National Laboratory,\n",
"# National Technology & Engineering Solutions of Sandia, LLC, Carnegie Mellon\n",
"# University, West Virginia University Research Corporation, et al.\n",
"# All rights reserved. Please see the files COPYRIGHT.md and LICENSE.md\n",
"# for full copyright and license information.\n",
"#\n",
"###############################################################################"
]
},
{
"cell_type": "code",
"execution_count": 24,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
"# Framework (IDAES IP) was produced under the DOE Institute for the\n",
"# Design of Advanced Energy Systems (IDAES).\n",
"#\n",
"# Copyright (c) 2018-2023 by the software owners: The Regents of the\n",
"# Copyright (c) 2018-2025 by the software owners: The Regents of the\n",
"# University of California, through Lawrence Berkeley National Laboratory,\n",
"# National Technology & Engineering Solutions of Sandia, LLC, Carnegie Mellon\n",
"# University, West Virginia University Research Corporation, et al.\n",
"# All rights reserved. Please see the files COPYRIGHT.md and LICENSE.md\n",
"# for full copyright and license information.\n",
"#\n",
"###############################################################################"
]
},
Expand Down
28 changes: 27 additions & 1 deletion idaes_examples/notebooks/docs/dae/petsc_chem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6cabc606",
"metadata": {
"tags": [
"header",
Expand All @@ -16,17 +17,19 @@
"# Framework (IDAES IP) was produced under the DOE Institute for the\n",
"# Design of Advanced Energy Systems (IDAES).\n",
"#\n",
"# Copyright (c) 2018-2023 by the software owners: The Regents of the\n",
"# Copyright (c) 2018-2025 by the software owners: The Regents of the\n",
"# University of California, through Lawrence Berkeley National Laboratory,\n",
"# National Technology & Engineering Solutions of Sandia, LLC, Carnegie Mellon\n",
"# University, West Virginia University Research Corporation, et al.\n",
"# All rights reserved. Please see the files COPYRIGHT.md and LICENSE.md\n",
"# for full copyright and license information.\n",
"#\n",
"###############################################################################"
]
},
{
"cell_type": "markdown",
"id": "28bb63c9",
"metadata": {},
"source": [
"# PETSc Time-stepping Solver -- Chemical Akzo Nobel Example\n",
Expand All @@ -41,6 +44,7 @@
},
{
"cell_type": "markdown",
"id": "42025a07",
"metadata": {},
"source": [
"## Prerequisites\n",
Expand All @@ -50,6 +54,7 @@
},
{
"cell_type": "markdown",
"id": "070fa782",
"metadata": {},
"source": [
"## Imports\n",
Expand All @@ -60,6 +65,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "ca3afd41",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -73,6 +79,7 @@
},
{
"cell_type": "markdown",
"id": "b1872b90",
"metadata": {},
"source": [
"## Set Up the Model\n",
Expand All @@ -83,6 +90,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "0629b344",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -93,6 +101,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "f27c92dc",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -102,6 +111,7 @@
},
{
"cell_type": "markdown",
"id": "f453bfd4",
"metadata": {},
"source": [
"The variables y1 to y6 represent concentrations of chemical species. The values returned by the function above are the correct solution at t = 180. These values can be used to verify the solver results. The Pyomo model is ``m``. We are mainly interested in the y variables. The variables y1 to y5 are differential variables and y6 is an algebraic variable. Initial conditions are required for y1 through y5, and the initial values of the other variables can be calculated from there. The variables y1 through y5 at t = 0 are: ``m.y[0, 1]`` to ``m.y[0, 5]`` and y6 is ``m.y6[0]``. The variables at the final state are ``m.y[180, 1]`` to ``m.y[180, 5]`` and ``m.y6[180]``. The variable y6 is indexed differently because we want to treat it differently than the differential variables."
Expand All @@ -110,6 +120,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "16c95b9d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -124,6 +135,7 @@
},
{
"cell_type": "markdown",
"id": "5471f384",
"metadata": {},
"source": [
"## Solve\n",
Expand All @@ -134,6 +146,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "8a34145e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -144,6 +157,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "87b95521",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -173,6 +187,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "513f4f32",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -187,6 +202,7 @@
},
{
"cell_type": "markdown",
"id": "ebfda339",
"metadata": {},
"source": [
"## Plot Results Stored in Model\n",
Expand All @@ -197,6 +213,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "36b069ea",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -213,6 +230,7 @@
},
{
"cell_type": "markdown",
"id": "e9a21252",
"metadata": {},
"source": [
"## Plot Trajectory"
Expand All @@ -221,6 +239,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "ab7e20c6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -240,6 +259,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "5bb9a56d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -254,6 +274,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "425ccec5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -267,6 +288,7 @@
},
{
"cell_type": "markdown",
"id": "42511c06",
"metadata": {},
"source": [
"## Interpolate Trajectory\n",
Expand All @@ -277,6 +299,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "a34aca76",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -287,6 +310,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "d060fdcd",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -307,6 +331,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "f8a01476",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -321,6 +346,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a4c8d973",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Loading
Loading