Skip to content

Extracting values #2060

Answered by valentinsulzer
gishan12 asked this question in Q&A
May 13, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

This will print all the (non-function) parameters for a given parameter set to output_file:

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 N_e_diffusion/migration/convection, you would need to add them to the variables dictionary by editing the source code in full_diffusion.py

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gishan12
Comment options

@gishan12
Comment options

Answer selected by valentinsulzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants