-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.0.5 See merge request iek-3/shared-code/ethos_penalps!42
- Loading branch information
Showing
80 changed files
with
1,024 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Run ETHOS.PeNALPS Tests on push or pull | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: 'Manual run' | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
# Allows to trigger the workflow manually | ||
|
||
|
||
jobs: | ||
TestPeNALPSDevLocal: | ||
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest","ubuntu-20.04", "macos-latest","macos-13","macos-12", "windows-latest","windows-2019"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: FZJ-IEK3-VSA/ETHOS_PeNALPS | ||
path: './ETHOS_PENALPS' | ||
ref: ${{ github.ref }} | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
channels: conda-forge | ||
activate-environment: test_env | ||
- name: Run tests | ||
shell: pwsh | ||
run: | | ||
ls | ||
echo "LS Done" | ||
cd ETHOS_PENALPS | ||
mamba env create --name penalps_env --yes --file environment.yml | ||
conda run --name penalps_env pip install . --no-deps | ||
echo "Installation done" | ||
conda list --name penalps_env | ||
echo "libaries printed" | ||
echo "start pytest" | ||
conda run --name penalps_env pytest | ||
echo "Pytest done" | ||
echo "run examples" | ||
- name: Run examples | ||
shell: pwsh | ||
run: | | ||
ls | ||
cd ETHOS_PENALPS | ||
cd examples | ||
cd tutorial | ||
conda run --name penalps_env python _1_cooking_example.py | ||
conda run --name penalps_env python _2_cooking_example_more_states.py | ||
conda run --name penalps_env python _3_add_more_cooker_for_parallel_operation.py | ||
conda run --name penalps_env python _4_cooking_and_mixer_exclusive_example.py | ||
cd _5_connect_four_process_steps | ||
conda run --name penalps_env python simulation_starter.py | ||
cd .. | ||
cd .. | ||
cd toffee_production | ||
conda run --name penalps_env python simulation_starter.py | ||
cd .. | ||
cd basic_examples | ||
conda run --name penalps_env python batch_to_batch_1_node_example.py | ||
cd .. | ||
cd b_pillar_manufacturing | ||
conda run --name penalps_env python simulation_starter.py | ||
echo "Running examples terminated" | ||
#"PENALPS_VERSION=$PENALPS_VERSION" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Statement of Need | ||
|
||
Energy system models are tools that provide guidance on future energy systems, which are currently undergoing significant changes to due global efforts to reduce dependence on fossil fuels {cite}`Prina.2020` p. 1. However, building long-term models with high spatial and temporal resolution and transparent input data remains a challenge {cite}`Prina.2020` p. 12. For instance, historical load profiles for the German industrial sector in 2015 are available {cite}`Priesmann.2021` pp. 5–6, while load profiles for other regions are not currently available. Furthermore, decarbonization efforts will cause changes in the industrial sector, creating a need for load profiles of future scenarios. To address the lack of sectoral load profiles for the industry, Boßmann and Stafell {cite}`Bomann.2015` p. 1321 demonstrated the use of a bottom-up approach. Therefore, it is necessary to obtain load profiles of the industrial processes that are part of the industrial sector. However, these profiles are often unavailable for open research due to: | ||
|
||
- Companies’ efforts to protect commercial secrets; | ||
- Missing measurements; | ||
- Unstructured collection of energy data in companies; | ||
- Novelty of the industrial processes and their current lack of implementation. | ||
|
||
ETHOS.PeNALPS can support the creation of an energy system model by providing load profiles for industrial processes. While many industrial processes and their load profiles have been previously simulated, most have not published load profiles and simulation implementations under an open-source license. This creates a research gap, despite similar work having already been done. | ||
|
||
ETHOS.PeNALPS provides modeling capabilities to simulate load profiles of individual production equipment and the logistics between them in a network. Fluctuations of individual production equipment are modeled using a deterministic Petri net of states. The level of detail and temporal resolution of the load profile model depends on the production process features, the level of detail in the process description, and the available input data. To ensure the suitability of a simulated load profile for each energy system model, it is necessary to evaluate its temporal resolution. At lower temporal resolutions, effects may occur that cannot be modeled using a deterministic Petri net of machine states and average energy consumption per state. Furthermore, the temporal resolution of energy system models is constantly evolving. According to {cite}`Prina.2020` p. 10, a temporal resolution of one hour is considered high for long-term energy system models. Currently, studies may require load profiles with a resolution as low as one minute {cite}`Omoyele.2024` pp. 12–13. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.