Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fourZoneVehicleCab-0.1.0.3.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

fourZoneVehicleCab-0.1.0.3-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page