Initializing model with position dependent values #3833
Answered
by
valentinsulzer
philomenaweng
asked this question in
Q&A
-
Is there a way to initialize a DFN model with a position-dependent values (i.e. x-dependent porosity or SEI thickness)? |
Beta Was this translation helpful? Give feedback.
Answered by
valentinsulzer
Feb 22, 2024
Replies: 1 comment 1 reply
-
Porosity, active material fraction, initial concentration: yes. Just pass in a function def eps(x):
return ...
parameter_values["Separator porosity"] = eps The function takes in SEI thickness: not right now but it could be added fairly easily. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
philomenaweng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Porosity, active material fraction, initial concentration: yes. Just pass in a function
The function takes in
x
in meters relative to the anode current collector.SEI thickness: not right now but it could be added fairly easily.