Open rhorvath02 opened 1 week ago
I want to split the cooling function into two functions: battery cooling & motor/inverter cooling.
I linked the code I wrote for battery thermals that I want to integrate into Vmod.
Can you give me some advice on how to do that effectively?
One of my concerns is that one of functions in powertrain_model.py returns current. However, I think current should be an imput into the battery cooling function. Is that okay?
Also how big is the time step for powertrain_model.py?
One of my concerns is that one of functions in powertrain_model.py returns current. However, I think current should be an imput into the battery cooling function. Is that okay?
yeah, you can do that
Also how big is the time step for powertrain_model.py?
The current time step is 0.003 seconds, but that's flexible. lmk if there's a reason to change that and we can reevaluate.
I want to split the cooling function into two functions: battery cooling & motor/inverter cooling.
I linked the code I wrote for battery thermals that I want to integrate into Vmod.
Can you give me some advice on how to do that effectively?
Feel free to split this into two functions. The current setup is pretty cluttered, so more organization is better haha
I want to split the cooling function into two functions: battery cooling & motor/inverter cooling.
I linked the code I wrote for battery thermals that I want to integrate into Vmod.
Can you give me some advice on how to do that effectively?
As for the battery thermal calc implementation, go ahead and start with adding a new function. For now you can define all of the constants as function arguments, and only calculate the delta over the time step. Go ahead and return the T_increase and we'll handle the summation in the main vehicle model file.
The philosophy here is that the system models handle all the low-level calculation while the vehicle model file handles all the higher-level system and inter-system calculations.
lmk if all of that made sense. I can hop on call if needed too
Okay that all makes sense. I made changes to the code and then committed it. However, it says I cannot push origin. Do you need to approve something on your end to allow me to push?
Okay that all makes sense. I made changes to the code and then committed it. However, it says I cannot push origin. Do you need to approve something on your end to allow me to push?
Try:
git push --set-upstream origin {your branch name}
your upstream branch might be directed at master which i protected the other day
Okay thanks. I think I was able to push my code
Okay thanks. I think I was able to push my code
Just checked the commit log and it's on Github. I'm going to rebase on master quickly, so go ahead and pull when you get the chance.
Powertrain Thermals
Compare first principles models to experimental results
[ ] Add current sensors to output LV battery open circuit and terminal voltage
Reach out to rhorvath@utexas.edu with additional questions. This is tricky even if you've taken heat transfer.