# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/anandhSRB/fourZoneVehicleCab",
"name": "fourZoneVehicleCab",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Zonal cabin climate model,vehicle cabin thermal model",
"author": "Anandh Ramesh Babu",
"author_email": "anandh.rameshbabu@chalmers.se",
"download_url": "https://files.pythonhosted.org/packages/f6/53/3aac363a032f831fc28e5e7202686ac28ce32de06a49e492abf23f81af5a/fourZoneVehicleCab-0.1.0.3.tar.gz",
"platform": null,
"description": "# fourZoneVehicleCab\nFour zone vehicle cabin with incompressible air \nExplicit First order discretized for energy solver included for each control volume.\nThermal 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). \nHeat transfer to external air is computed based on velocity\nHeat transfer to interal air is computed based on air velocity and temperature difference. The solver switches between forced, natural and mixed convection correlations\n\n# Installation\nThe package can be installed using pip\n```\npip install fourZoneVehicleCab\n```\n\n# Requirements\n\n* python3\n* numpy\n* pandas\n* matplotlib\n* pythermalcomfort\n* jos3\n\n# Example\n## Imports\n```\nimport numpy as np\nimport fourZoneVehicleCab\nimport matplotlib.pyplot as plt\n```\n## Build model\n```\ncabDimensions = np.array([2.5,1.4,0.85])\nmassComp = 250\ncpComp = 1000\ninternalArea = 20\nexternalArea = 4\nnPassengers = 0\n\ncab = fourZoneVehicleCab.fourZoneVehicleCab(cabDimensions,massComp,cpComp,internalArea,externalArea,nPassengers)\n```\n\n## Setup initial and boundary conditions\n```\nvehVel = 50\ntempAmb = -7\nsolidTemp = -7\nmassFlow = 0.04 \nmassIn = np.array([0.24,0.27,0.25,0.24])\nRHAmb = 50\nCO2Amb = 420\n\ntempIn = np.array([45,43,39,38])\nhumidityBo = cab.computeHumidity(tempAmb,RHAmb)\nco2Bo = np.ones((4,))*CO2Amb\n\ntotalTime = 2400\ndt = 0.2\n\n```\n## Simulate \n```\ncab.simulate(dt,totalTime,vehVel,tempAmb,tempAmb,solidTemp,RHAmb,massIn,tempIn,humidityBo,co2Bo)\n```\n## \n\n\n\n# CHANGELOG\n\n## Version 0.1.0\nInitial commit\n",
"bugtrack_url": null,
"license": "",
"summary": "A zonal vehicle cabin climate model to estimate temperature, CO2 and humidity transport.",
"version": "0.1.0.3",
"project_urls": {
"Homepage": "https://github.com/anandhSRB/fourZoneVehicleCab"
},
"split_keywords": [
"zonal cabin climate model",
"vehicle cabin thermal model"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e28a4c6d011fa93757458db9b78888fb2338c1cd45744d98d77ce059cef9b200",
"md5": "abbec91b2f262843ab90371d8cf528a5",
"sha256": "349e245aaf7a270eb791c2fe82de2d4a2ffac3166846d3525a735ef4d883b0ce"
},
"downloads": -1,
"filename": "fourZoneVehicleCab-0.1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "abbec91b2f262843ab90371d8cf528a5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9417,
"upload_time": "2023-09-01T12:29:13",
"upload_time_iso_8601": "2023-09-01T12:29:13.653043Z",
"url": "https://files.pythonhosted.org/packages/e2/8a/4c6d011fa93757458db9b78888fb2338c1cd45744d98d77ce059cef9b200/fourZoneVehicleCab-0.1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f6533aac363a032f831fc28e5e7202686ac28ce32de06a49e492abf23f81af5a",
"md5": "89edb66b02d39d4313e7a9634ffcd39c",
"sha256": "095369571effee8ce9fb0374a3b9b6f08af6b47ce4af876d10ccb387adaf1b39"
},
"downloads": -1,
"filename": "fourZoneVehicleCab-0.1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "89edb66b02d39d4313e7a9634ffcd39c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9571,
"upload_time": "2023-09-01T12:29:15",
"upload_time_iso_8601": "2023-09-01T12:29:15.536348Z",
"url": "https://files.pythonhosted.org/packages/f6/53/3aac363a032f831fc28e5e7202686ac28ce32de06a49e492abf23f81af5a/fourZoneVehicleCab-0.1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-01 12:29:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "anandhSRB",
"github_project": "fourZoneVehicleCab",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "fourzonevehiclecab"
}