@@ -10,12 +10,14 @@ This tutorial provides a guide to simulate an agrivoltaic system with PASE.
# Modules
The PASE software is coded in object-oriented Python.
The engine running the computations is made of modules, located in the MODULES/ directory.
The engine running the computations is made of modules, located in the pase/ directory.
Those modules are imported at the start of the simulation script.
Those modules are imported at the start of the simulation script.
The `example.py` script is the preferred example for newcomers.
# Inputs
## Parameter files
As a user, you can easily run PASE using the `example.py` script "as is" and only adapting the parameters of the simulation.
These parameters are set in YAML configuration files contained in the INPUTS/ directory's subdirectories.
Each parameter in these files includes detailed information such as:
...
...
@@ -29,6 +31,11 @@ Each parameter in these files includes detailed information such as:
To update a parameter, change only the value following the line labeled **"Value:"**.
This helps ensure consistent formatting and preserves the contextual information about each parameter.
**Important**: note that some parameters are marked as optional.
There are very few of those, and by default all parameters are mandatory.
Even if a parameter may seem unrelated to your specific application, it may affect computations in indirect ways.
Take the time to specify correct parameter values !
The parameters are located in several subdirectories according to their purpose:
- AV_CENTRAL/ : set parameters of the agrivoltaics plant (number of panels, azimuth of the central, etc.)
...
...
@@ -37,12 +44,42 @@ The parameters are located in several subdirectories according to their purpose:
- SCENARIOS/ : define the parameters of the simulation scenario, such as location, latitude and longitude, altitude, simulation options, start and end year of the simulation, etc.
- WEATHER_FILES/ : the simulation can run on data fetched from an online database or on data files located in this subdirectory.
## Daily weather files - precipitation and vapour pressure data
## Weather data
To run simulations, PASE needs these four weather variables :
- global horizontal irradiance [W/m²]
- air temperature [°C]
- daily sum of precipitations [mm/d]
- daily average of atmospheric water vapor pressure [hPa]
In the scenario file, users chose WeatherDataOption 1 or 2 :
1. Fetch weather data from PVGIS
2. User provides all weather data
Those two options are described in detail below.
### 1. Fetch weather data from PVGIS
With this option, hourly weather data (GHI and air temperature) is downloaded through the PVGIS API.
Each row in this file provides data for a timestep. PASE is designed
to parse the data file and automatically infer the sampling period.
Fully supported sampling periods are 1h, 15 min and 10 min.
Other sampling periods may work for part of the simulations.
GHI and air temperature will be used at the provided timestep, while
precipitation and atmospheric water vapor pressure data will be respectively
summed and averaged on each day to serve as inputs to crop models.
##### Formatting Requirements
- Use UTF-8 encoding
-`;` or `,` as the column separator
- Include a header row exactly matching the column names above
- Ensure all dates are valid (mind **leap years***) and continuous if the simulation requires complete coverage.
##### Example File
A minimal reference file is provided in the repository under INPUTS/WEATHER_FILES/Michamps_2017_WD2.csv (temporarily, this file is available in [branch 160](https://gitlab.uliege.be/deal-public/pase/-/blob/160-feature-adding-legumes-growth/INPUTS/WEATHER_FILES/Michamps_2017_WD2.csv?ref_type=heads)).
### Summary
The following table provides an overview of the information a weather file should contain, based on the value of WeatherDataOption.
| Column name | Description | Unit | WeatherDataOption 1 | WeatherDataOption 2 |