https://github.com/altamarmx/enerhabitat
Repo para el desarrollo del paquete para usar EnerHabitat en Python
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.7%) to scientific vocabulary
Repository
Repo para el desarrollo del paquete para usar EnerHabitat en Python
Basic Info
- Host: GitHub
- Owner: AltamarMx
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://pypi.org/project/enerhabitat/
- Size: 7.11 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
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
bash
pip install -i https://test.pypi.org/simple/ enerhabitat
If you're working with the uv Python package manager you can use the following
bash
$ 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 ```python import enerhabitat as eh
diapromedio = eh.meanDay(epwfile = "epw/example_file.epw") ```
The output data frame should have the following structure
time | zenith | elevation | azimuth | equationoftime | Ta | Ig | Ib | Id |Tn | DeltaTn :---: | :---: | :---: | :---: | :---: |:---: | :---: | :---: | :---: | :---: | :---: ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ...
Tsa
Calculates the sun-air temperature and solar irradiance per second for the average day
```python import enerhabitat as eh
sunair = eh.Tsa( diapromedio, # DataFrame with Ib, Ig, Id solarabsortance = 0.8, # Surface color surfacetilt = 90, # 90 = vertical surface_azimuth = 90 # 0 = North, 90 = East )
```
solveCS
Solves the constructive system's inside temperature for a Tsa simulation dataframe
```python import enerhabitat as eh
list of tuples from outside to inside with material and width
constructivesystem = [ ("material1" , L1), ("materialn", L_n) ]
interior = eh.solveCS(
constructivesystem,
sunair_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
```ini [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
```python import enerhabitat as eh
eh.materials("./config/new_materials.ini")
shell
"./config/new_materials.ini" ```
Other parameters
You can set various configuration values to modify the behavior of the calculations
```python 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.
Owner
- Name: Guillermo Barrios del Valle
- Login: AltamarMx
- Kind: user
- Location: Temixco, Morelos, Mexico
- Company: Universidad Nacional Autónoma de México
- Website: https://altamarmx.github.io/
- Twitter: Altamar
- Repositories: 76
- Profile: https://github.com/AltamarMx
Researcher at Renewable Energies Instituto UNAM, data and technology enthusiastic
GitHub Events
Total
Last Year
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 2
pypi.org: enerhabitat
EnerHabitat, paquete para resolver la transferencia de calor dependiente del tiempo en sistemas constructivos homogéneos de edificaciones.
- Homepage: https://github.com/AltamarMx/EnerHabitat
- Documentation: https://enerhabitat.readthedocs.io/
- License: MIT License
-
Latest release: 0.1.1
published 10 months ago
Rankings
Dependencies
- iertools *
- numpy >=2.2.4
- pandas >=2.2.3
- certifi 2025.4.26
- charset-normalizer 3.4.2
- enerhabitat 0.1.6
- h5py 3.13.0
- idna 3.10
- numpy 2.0.2
- numpy 2.2.5
- pandas 2.2.3
- pvlib 0.12.0
- python-dateutil 2.9.0.post0
- pytz 2025.2
- requests 2.32.3
- scipy 1.13.1
- scipy 1.15.3
- six 1.17.0
- tzdata 2025.2
- urllib3 2.4.0