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.2.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.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: enerhabitat-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 66346af1c2c146400a918ee43ead08df65a61a1496bde731bbf60fb1198a5a7d
MD5 8dbf86151eeb952bc58e3b11ae23fcc2
BLAKE2b-256 1609d6545bdb1aa597969fed4c38d102c6fb3df2e8ee8728ceec81e9704dc749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for enerhabitat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0af1f2e1fb437a05d4675efe8d14a1d21ab6d57da2c1a46cb56a54cb4d4926a
MD5 5978e78ff249a3ec5f519a2a3c6c8ae5
BLAKE2b-256 cc794cf0c26b4a4086bb2cbde647ff5a88978f3b6377ca0f4760b6af6674277c

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