Extracting values #2060
-
Hi, in the full_diffusion.py file, these are lines 70-72: I just want to be able to see the numerical value of param.C_e. Could someone please tell me which pybamm expression could allow me to do that (or whether it is even possible). Please let me know, it would mean a lot. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This will print all the (non-function) parameters for a given parameter set to import pybamm
parameters = pybamm.LithiumIonParameters()
parameter_values = pybamm.ParameterValues("Chen2020")
output_file = "lithium_ion_parameters.txt"
parameter_values.print_parameters(parameters, output_file) To view the values of |
Beta Was this translation helpful? Give feedback.
This will print all the (non-function) parameters for a given parameter set to
output_file
:To view the values of
N_e_diffusion/migration/convection
, you would need to add them to the variables dictionary by editing the source code infull_diffusion.py