Standalone implementation of lumped thermal model #4049
Replies: 3 comments
-
Any suggestions on this topic? The main objective is to couple the lumped temeprature to properties that are varying as a function of temperature ( thermodynamic potentials, diffusivity etc). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Coming back to this topic: After playing around a bit, I realised that the model.rhs{} class works fine when the variable is assigned to one of the domains. For example, if I add ["Temperature solve [K]"] to positive domain, I get the right temperature profile. But with a variable that is not assigned to any domain, the "T_init" is neglected. So I can ideally make my code work, if I take the result of model.rhs and add the initial temperature to this value. But, this seems like a hack and I hope I am not missing anything. Any suggestions? Eventually, I will couple this temperature to properties so I want to make sure that it is working as supposed to. |
Beta Was this translation helpful? Give feedback.
-
I am using the BaseModel() class based on BasicDFN() model to solve an aqueous alkaline electrochemical system. As an extension, I wanted to include a thermal model and I chose to start with the lumped model.
The idea I had was to include the temperature equation as part of the model RHS and see the temperature evolution over time (since it is not a converged variable). Attached is a simplified code (based on half cell code, with a simple temperature equation included - see lines # 104-110). When I solve this case, the temperature drops from 300 K (initial temperature) to 20 K and then linearly grows with time (which is fine). I do not understand where this drop comes from and I was wondering if I am missing something basic here?
Note: I made this simple dummy code to make it easy to debug - the electrochemical part of the code is just to have a complete model for the solver to solve . My main question is related to how the temperature equation is coupled to an existing framework solving electrochemical equations.
Thanks!
Simple_model_with_thermal.zip
Beta Was this translation helpful? Give feedback.
All reactions