A zonal vehicle cabin climate model to estimate temperature, CO2 and humidity transport.
Project description
fourZoneVehicleCab
Four zone vehicle cabin with incompressible air
Explicit First order discretized for energy solver included for each control volume.
Thermal loads included from HVAC, heat exchange to the internal components, exterior air flow, solar loads and energy exchange between zones (based on Poovendran IEEE-2020).
Heat transfer to external air is computed based on velocity
Heat transfer to interal air is computed based on air velocity and temperature difference. The solver switches between forced, natural and mixed convection correlations
Installation
The package can be installed using pip
pip install fourZoneVehicleCab
Requirements
- python3
- numpy
- pandas
- matplotlib
- pythermalcomfort
- jos3
Example
Imports
import numpy as np
import fourZoneVehicleCab
import matplotlib.pyplot as plt
Build model
cabDimensions = np.array([2.5,1.4,0.85])
massComp = 250
cpComp = 1000
internalArea = 20
externalArea = 4
nPassengers = 0
cab = fourZoneVehicleCab.fourZoneVehicleCab(cabDimensions,massComp,cpComp,internalArea,externalArea,nPassengers)
Setup initial and boundary conditions
vehVel = 50
tempAmb = -7
solidTemp = -7
massFlow = 0.04
massIn = np.array([0.24,0.27,0.25,0.24])
RHAmb = 50
CO2Amb = 420
tempIn = np.array([45,43,39,38])
humidityBo = cab.computeHumidity(tempAmb,RHAmb)
co2Bo = np.ones((4,))*CO2Amb
totalTime = 2400
dt = 0.2
Simulate
cab.simulate(dt,totalTime,vehVel,tempAmb,tempAmb,solidTemp,RHAmb,massIn,tempIn,humidityBo,co2Bo)
CHANGELOG
Version 0.1.0
Initial commit
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 fourZoneVehicleCab-0.1.0.3.tar.gz
.
File metadata
- Download URL: fourZoneVehicleCab-0.1.0.3.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095369571effee8ce9fb0374a3b9b6f08af6b47ce4af876d10ccb387adaf1b39 |
|
MD5 | 89edb66b02d39d4313e7a9634ffcd39c |
|
BLAKE2b-256 | f6533aac363a032f831fc28e5e7202686ac28ce32de06a49e492abf23f81af5a |
File details
Details for the file fourZoneVehicleCab-0.1.0.3-py3-none-any.whl
.
File metadata
- Download URL: fourZoneVehicleCab-0.1.0.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349e245aaf7a270eb791c2fe82de2d4a2ffac3166846d3525a735ef4d883b0ce |
|
MD5 | abbec91b2f262843ab90371d8cf528a5 |
|
BLAKE2b-256 | e28a4c6d011fa93757458db9b78888fb2338c1cd45744d98d77ce059cef9b200 |