SLIDE  3.0.0
A simulator for lithium-ion battery pack degradation
Loading...
Searching...
No Matches
CoolSystem_HVAC.hpp
Go to the documentation of this file.
1/*
2 * CoolSystemHVAC.hpp
3 *
4 * This is the coolsystem of the entire battery container.
5 * It has the conventional coolsystem-stuff to cool its children (e.g. racks).
6 * But additionally, it has an AC unit which exchanged heat with the environment.
7 * i.e. this coolsystem is not cooled by the coolsystem of its parent module like others
8 * but it actively cools itself.
9 *
10 * Created on: 2 Jun 2020
11 * Author(s): Jorn Reniers, Volkan Kumtepeli
12 */
13
14#pragma once
15
16#include "CoolSystem.hpp"
17#include "../types/Histogram.hpp"
18
20
21namespace slide {
23{
24protected:
25 double Q_ac;
26 double COP;
27
33
34 double getACoperatingPower(double Qac, double t);
35
37 friend struct CoolSystem_HVACData;
38
39public:
41
43 CoolSystem_HVAC(size_t Ncells, int control, double Q0);
44
45 double getQcoolAC_tot() { return HVACdata.cData.QcoolAC; };
46
47 double dstate(double Etot, double Echildren, double t) override;
48 void control(double Thot_local, double Thot_global) override;
49
50 virtual void storeData(size_t Ncells) override;
51 virtual void writeData(const std::string &prefix) override;
52
53 CoolSystem_HVAC *copy() override { return new CoolSystem_HVAC(*this); }
54};
55
56} // namespace slide
Definition: CoolSystem_HVAC.hpp:23
double getACoperatingPower(double Qac, double t)
calculate the operating power of the AC unit
Definition: CoolSystem_HVAC.cpp:130
double COP
coefficient of performance of the AC system [-]
Definition: CoolSystem_HVAC.hpp:26
CoolSystem_HVACData HVACdata
#TODO -> needs to be protected.
Definition: CoolSystem_HVAC.hpp:40
double controlAC_onoff_Ton
T when the AC unit switches on.
Definition: CoolSystem_HVAC.hpp:28
double controlAC_prop_T
T to which the proportional control cools the container.
Definition: CoolSystem_HVAC.hpp:31
double controlAC_onoff_Q
cooling power when on
Definition: CoolSystem_HVAC.hpp:30
double controlAC_prop_gain
gain of the proportional controller for the AC unit
Definition: CoolSystem_HVAC.hpp:32
double dstate(double Etot, double Echildren, double t) override
calculate the new coolant temperature from a heat exchange of Etot
Definition: CoolSystem_HVAC.cpp:75
double Q_ac
cooling power from the AC system [W]. This value will be controlled similarly to the flowrate inside ...
Definition: CoolSystem_HVAC.hpp:25
CoolSystem_HVAC * copy() override
Definition: CoolSystem_HVAC.hpp:53
double getQcoolAC_tot()
Definition: CoolSystem_HVAC.hpp:45
virtual void writeData(const std::string &prefix) override
Definition: CoolSystem_HVAC.cpp:292
CoolSystem_HVAC()
Definition: CoolSystem_HVAC.cpp:18
void control(double Thot_local, double Thot_global) override
Definition: CoolSystem_HVAC.cpp:161
virtual void storeData(size_t Ncells) override
Definition: CoolSystem_HVAC.cpp:256
double controlAC_onoff_Toff
T when the AC unit switches off, ie minimum temperature.
Definition: CoolSystem_HVAC.hpp:29
Definition: CoolSystem.hpp:22
size_t Ncells
cooling system properties
Definition: CoolSystem.hpp:34
Slide namespace contains all the types, classes, and functions for the simulation framework.
Definition: Cell.hpp:27
double QcoolAC
total heat evacuated by the AC system [J]
Definition: cool_data.hpp:59
Definition: CoolSystem_HVACData.hpp:19
CoolSystem_HVACCumulative cData
Cumulative variables.
Definition: CoolSystem_HVACData.hpp:20