Broadcasting a variable to a different domain - Positive electrode conductivity #4032
Replies: 3 comments 1 reply
-
How are you defining domains when you create c_s_p and c_max_p? |
Beta Was this translation helpful? Give feedback.
-
Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Here is a possible solution that seems to work for me: Perhaps there is a better way to do it, but here is waht I am doing: ct=pybamm.x_average(pybamm.surf(c_s_n)) Now, ct2 can be used to define a functionParameter for electrode conductivity inputs_sigma={"broadcasted particle conc":ct2} This ofcourse means I cannot change the conductivity spatially, but this is a start. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am simulating a aqueous alkaline battery (Nickel - MH) and I wanted to include an equation for the postivie electrode conductivity which varies as a function of cnorm : (c_s_p/c_max_p); where c_s_p is the surface concentration and c_max_p is max positive particel concentration.
A function parameter for sigma_p (positive electrode conductivity) as a function of cnorm causes a problem when I process the model due to a domain mismatch.
children must have same or empty domains, not ['positive particle'] and ['positive electrode']
Is there a way I can calculate the cnorm and assign it to a variable in the positive electrode domain to avoid this error?
Hope the description was clear. Thanks
Beta Was this translation helpful? Give feedback.
All reactions