pybamm.
Experiment
(operating_conditions, parameters=None, period='1 minute', termination=None, use_simulation_setup_type='new', drive_cycles={}, cccv_handling='two-step')[source]¶Base class for experimental conditions under which to run the model. In general, a list of operating conditions should be passed in. Each operating condition should be of the form “Do this for this long” or “Do this until this happens”. For example, “Charge at 1 C for 1 hour”, or “Charge at 1 C until 4.2 V”, or “Charge at 1 C for 1 hour or until 4.2 V”. The instructions can be of the form “(Dis)charge at x A/C/W”, “Rest”, or “Hold at x V”. The running time should be a time in seconds, minutes or hours, e.g. “10 seconds”, “3 minutes” or “1 hour”. The stopping conditions should be a circuit state, e.g. “1 A”, “C/50” or “3 V”. The parameter drive_cycles is mandatory to run drive cycle. For example, “Run x”, then x must be the key of drive_cycles dictionary.
Parameters: |
|
---|
convert_time_to_seconds
(time_and_units)[source]¶Convert a time in seconds, minutes or hours to a time in seconds
read_operating_conditions
(operating_conditions, drive_cycles)[source]¶Convert operating conditions to the appropriate format
Parameters: |
|
---|---|
Returns: | operating_conditions – Operating conditions in the tuple format |
Return type: |
read_string
(cond, drive_cycles)[source]¶Convert a string to a tuple of the right format
Parameters: |
|
---|