dandeliion.client.solve

dandeliion.client.solve(simulator: Simulator, params: str, experiment: Experiment, var_pts: dict, model: str, initial_condition: dict = None, t_output: list = None, dt_eval: float = 0.1) Solution[source]

Method for submitting/running a Dandeliion simulation.

Parameters:
  • simulator (Simulator) – instance of simulator class providing information to connect to simulation server

  • params (str) – path to BPX parameter file

  • experiment (Experiment) –

    instance of pybamm Experiment; currently only those supported with

    • only pybamm.experiment.step.steps.Current steps (or their equivalent in str representation) as steps

    • time and/or voltage termination criteria

  • var_pts (dict) –

    simulation mesh specified by the following parameters in dictionary:

    • x_n: Number of nodes in the electrolyte (negative electrode)

    • x_s: Number of nodes in the electrolyte (separator)

    • x_p: Number of nodes in the electrolyte (positive electrode)

    • r_n: Number of nodes in particles (negative electrode)

    • r_p: Number of nodes in particles (positive electrode)

  • model (str) – name of model to be simulated

  • initial_condition (dict, optional) –

    dictionary of additional initial conditions (overwrites parameters provided in parameter file if they exist). Currently supported initial conditions are:

    • ’Initial temperature [K]’

    • ’Initial concentration in electrolyte [mol.m-3]’

    • ’Initial state of charge’

  • t_output (list, optional) – list of times to create outputs for. If not provided, then output times derived from experiment will be used (requires time stop criterion to be provided then)

  • dt_eval (float, optional) – time step used for resolving discontinuities in experiment. Default is 0.1 seconds.

Returns:

solution for this simulation run

Return type:

Solution