We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bbc563 commit ccc78ddCopy full SHA for ccc78dd
charging_sim/batterypack.py
@@ -385,7 +385,7 @@ def dynamics(self, current):
385
# we de-rate the current if voltage is too high (exceeds max prescribed v)
386
# voltage can exceed desirable range if c-rate is too high, even when SoC isn't at max
387
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
+ self.voltage = self.max_voltage
389
# print("max testing voltage is: ", self.voltage)
390
self.state_eqn(current, append=False)
391
# print("max testing voltage is: ",
0 commit comments