Skip to content

Commit ccc78dd

Browse files
authored
Update batterypack.py
Minor comment removed
1 parent 9bbc563 commit ccc78dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charging_sim/batterypack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def dynamics(self, current):
385385
# we de-rate the current if voltage is too high (exceeds max prescribed v)
386386
# voltage can exceed desirable range if c-rate is too high, even when SoC isn't at max
387387
current -= (self.voltage - self.max_voltage) / self.R_pack # changed from just Ro
388-
self.voltage = self.max_voltage # WHY AM I SETTING THE MAX VOLTAGE HERE INSTEAD OF JUST LETTING STATE EQN DETERMINE THE VALUE
388+
self.voltage = self.max_voltage
389389
# print("max testing voltage is: ", self.voltage)
390390
self.state_eqn(current, append=False)
391391
# print("max testing voltage is: ",

0 commit comments

Comments
 (0)