Skip to content

Commit

Permalink
Update batterypack.py
Browse files Browse the repository at this point in the history
Minor comment removed
  • Loading branch information
ebalogun01 authored Apr 19, 2024
1 parent 9bbc563 commit ccc78dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charging_sim/batterypack.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def dynamics(self, current):
# we de-rate the current if voltage is too high (exceeds max prescribed v)
# voltage can exceed desirable range if c-rate is too high, even when SoC isn't at max
current -= (self.voltage - self.max_voltage) / self.R_pack # changed from just Ro
self.voltage = self.max_voltage # WHY AM I SETTING THE MAX VOLTAGE HERE INSTEAD OF JUST LETTING STATE EQN DETERMINE THE VALUE
self.voltage = self.max_voltage
# print("max testing voltage is: ", self.voltage)
self.state_eqn(current, append=False)
# print("max testing voltage is: ",
Expand Down

0 comments on commit ccc78dd

Please sign in to comment.