A Python package for building stock simulations
Project description
SimStock
SimStock is a python package for taking geographical and contextual data, processing it into a form compatible with EnergyPlus, and running thermal simulations. This provides an intermediate layer between various data types and EnergyPlus, allowing urban building energy models (UBEMs) to be run straightforwardly from QGIS etc. The software performs the following setps:
- Geometrical pre-processing. This ensures the input data is compatible with EnergyPlus.
- The creation of thermal zone object data for EnergyPlus.
- Running the simulation and handling the results.
Full docs are available at ReadtheDocs.
Installation
NOTE: SimStock requires Python 3.8 or above, as well as an EnergyPlus installation.
After ensuring you have EnergyPlus installed, and python >= v3.8, simply run
pip install simstock
in the command line.
Usage
SimStock is structured around two objects: the SimstockDataframe
and the IDFmanager
. The SimstockDataframe
is an extension of a Pandas Dataframe. It allows data to be read in from a variety of formats. It also performs geometric simplification on the data to ensure it conforms to EnergyPlus input standards. The SimstockDataframe
also contains the EnergyPlus settings, allowing easy manipulation of materials etc. Once these settings have been set, and any geometrical simplification perfomed, the IDFmanager
then creates the necessary thermal zones from the SimstockDataframe
. The IDFmanager
can also be used to run an EnergyPlus simulation.
Below is an example of a typical Simstock work flow.
# Import the simstock package
import simstock as sim
# Let's say we have some test data stored in a file called test.csv.
# We can read it in as a SimstockDataframe:
sdf = sim.read_csv("test.csv")
# We now perform geometrical pre-processing:
sdf.preprocessing()
# Now create an new instance of an IDFmanager object that takes the
# processed SimstockDataframe as an argument:
simulation = sim.IDFmanager(sdf)
# Create the thermal zones necessary for EnergyPlus
simulation.create_model_idf()
# Run the energy plus simulation
simulation.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simstock-0.2.4.tar.gz
.
File metadata
- Download URL: simstock-0.2.4.tar.gz
- Upload date:
- Size: 368.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.12 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d5cd5241bc6925a030cb1167b7311fd2d67849c12f809f3c4e32c75e3bd7237 |
|
MD5 | 52ae424e1cd1d804a904ab66c36a1a57 |
|
BLAKE2b-256 | a3eb2167c943d2318afbbeb7d536cb3f451961c46a7eced3643caddc3a41151c |
File details
Details for the file simstock-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: simstock-0.2.4-py3-none-any.whl
- Upload date:
- Size: 351.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.12 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f383926d9fd04c8e589baf959af1e24d4476242e54008324655f2dfdeeb77364 |
|
MD5 | de2aaaa5b0b1adc34c63392e57a0c2e5 |
|
BLAKE2b-256 | e66e0c3f83ba9036bf584ff97a725b4bcb9c821097ee5c2e56aa986b6cc9fd77 |