Skip to main content

Paquete instalable para EnerHabitat

Project description

EnerHabitat

Tools for evaluating the thermal performance of structures based on EPW files

Table of contents

Getting started

enerhabitat is a Python package for thermal simulation of constructive systems based on meteorological data from EPW files. The values that are calculated include:

  • Ta : Ambient temperature
  • Tsa : Sol-air temperature
  • Ti : Interior temperature
  • Ig : Global horizontal irradiance
  • Ib : Direct normal irradiance
  • Id : Diffuse horizontal irradiance
  • Is : Surface irradiance

Installation

The source code is currently hosted on GitHub at eh_development

Binary installers for the latest released version are available at the Test Python Package Index TestPyPI

pip install enerhabitat

If you're working with the uv Python package manager you can use the following

$ uv add enerhabitat

Folder structure

The following shows the basic folder structure recommended

├── main.py
├── materials.ini   # Materials properties
└── epw
    ├── ...
    └── example_file.epw

Main functions

Load the EnerHabitat package for use

import enerhabitat as eh

meanDay

Calculates the ambient temperature, global, beam and diffuse irradiance per second for the average day based on EPW file

dia_promedio = eh.meanDay(epw_file = "epw/example_file.epw")

The output data frame should have the following structure

time zenith elevation azimuth equation_of_time Ta Ig Ib Id Tn DeltaTn
... ... ... ... ... ... ... ... ... ... ...

Tsa

Calculates the sol-air temperature and solar irradiance per second for the average day

Tsa = eh.Tsa(
    dia_promedio,           # DataFrame with Ib, Ig, Id
    solar_absortance = 0.8, # Surface color
    surface_tilt = 90,      # 90 = vertical
    surface_azimuth = 90    # 0 = North, 90 = East
)

solveCS

Solves the constructive system heat transfer to calculate inside temperature for a Tsa simulation

# list of tuples from outside to inside with material and width
constructive_system = [
    ("material_1" , L_1),
    ("material_n", L_n)
]

interior = eh.solveCS(
    constructive_system,  
    Tsa      # DataFrame with Tn, Ta, Tsa
    )

Materials

The materials and their properties are specified in the materials.ini configuration file, specifying the material name as the key and its values ​​for k, rho and c

[concrete]
k   = 1.35  # Overall heat transfer coefficient
rho = 1800  # Density
c   = 1000  # Specific heat

[adobe]
k   = 0.58
rho = 1500
c   = 1480

To set a configuration file, use the materials() function and specify the path

eh.materials("./config/new_materials.ini")
>>> "./config/new_materials.ini"

Other parameters

You can set various configuration values ​​to modify the behavior of the calculations

eh.La = 2.5    # Length of the fictional room
eh.Nx = 100     # Number of elements to discretize the construction system
eh.ho = 13     # Outside convection heat transfer
eh.hi = 8.6    # Inside convection heat transfer
eh.dt = 60     # Time step in seconds

Dependencies

License

Code released under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enerhabitat-0.1.3.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enerhabitat-0.1.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file enerhabitat-0.1.3.tar.gz.

File metadata

  • Download URL: enerhabitat-0.1.3.tar.gz
  • Upload date:
  • Size: 49.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for enerhabitat-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b576e5ac1f351bb9872633b92f1321f262fa056a24c95ece1190daca3df7be29
MD5 301e862ebc6cbd0c1db9f657c7410943
BLAKE2b-256 a51122883af5040e59dcc1e2fe5123168286f840db8c4c07296266d204447e75

See more details on using hashes here.

File details

Details for the file enerhabitat-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for enerhabitat-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7b0ca64eb472662331f07555bdeab74a98752255f064cb6d1ec8de609e865a
MD5 8a9179d37a6398be2ac917ea82d4fb45
BLAKE2b-256 f56b359a49dac67f0c9551641bf1f0fd848d765f55cbc9f647943ae7f472ed8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page