Skip to main content

EnerHabitat, paquete para resolver la transferencia de calor dependiente del tiempo en sistemas constructivos homogéneos de edificaciones.

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 : Sun-Air temperature
  • Ti : Interior temperature
  • Ig : Global irradiance
  • Ib : Beam irradiance
  • Id : Diffuse 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 -i https://test.pypi.org/simple/ enerhabitat

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

$ uv pip install --index-url https://test.pypi.org/simple/ enerhabitat

Folder structure

The following shows basic folder structure

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

Main functions

meanDay

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

import enerhabitat as eh

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 sun-air temperature and solar irradiance per second for the average day

import enerhabitat as eh

sun_air = 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's inside temperature for a Tsa simulation dataframe

import enerhabitat as eh

# 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,  
    sun_air_df      # 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

import enerhabitat as eh

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

import enerhabitat as eh

eh.La = 2.5    # Length of the fictional room
eh.Nx = 20     # Number of elements to discretize
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.1.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.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for enerhabitat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ce29c770dfac5a87c56bf9f1c64a9227baa4588bea9f0bd7f6722ddee1f556e7
MD5 e4407d8aef05f102b31b4eec248b34c7
BLAKE2b-256 86cba195737bbf4e84405d0a489c38da547ecfa63b260e259915ab2633955efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for enerhabitat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d1f60f5e606f0979f43b070151bdf54c56d230d867f0f429c86dc51c488d21
MD5 8677630cb6fa9c810c488be82f7f7506
BLAKE2b-256 75db0b8e197edca1555bc404584317217dee97ece2ca6a3736672e3b8de81618

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