Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Electrical vehicles ( EVs ) are becoming more and more common on the roads. They are usually powered by a battery. EV batteries undergo cycles

Electrical vehicles (EVs) are becoming more and more common on the roads. They
are usually powered by a battery. EV batteries undergo cycles of 'discharge' that
occur when driving and 'charge' when the car is plugged in.
The state of charge (SOC) of a battery denotes the capacity that is currently available
as a function of the rated capacity. The value of the SOC varies between 0% and
100%. Accurately estimating the SOC of the battery is important for estimating the
remaining travel range of a vehicle, deciding when to recharge the battery and
estimating how long it would take to charge it.
Coulomb Counting method is a popular method for estimating the SOC of the battery.
It is based on the calculation of electric quantity during charging and discharging. A
simplified equation for calculating the SOC using this method is below.
SOC=Q0+0icdt-0iddtQ*100%
where Q is the rated capacity of the battery, unit: A*h;Q0 is the initial charge of the
battery, unit: A*h; is the charging or discharging time, unit: h; is the charging
efficiency; ic is the charging current, unit: A;id is the discharging current, unit: A. In
a) Write a C++ function to calculate the SOC. The function should have the input
parameters for the values of ,Q,Q0,S,ic and id. In this question, assume that
ic and id are constants.
[10 marks]
b) Write a C++ program to calculate the SOC values for a battery when is
changing between 0 and 5 with a step of 0.1 and output all calculated SOC
values into a file. Use the function written in part (a) of this question for these
calculations.
The battery has the rated capacity of 80kWh. Assume that the initial charge of
the battery is 20kWh and that id is equal to 0.
Assume that a standard charger with the current of 13A is used. The standard
charger has the charging efficiency of 87%.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Explain the multicultural organization development (MCOD) process.

Answered: 1 week ago