Skip to content

diffsl export #5262

@martinjrobins

Description

@martinjrobins

Description

DiffSL is a DSL for specifying ODE (or discretised PDE) models. This issue proposes an export functionality to convert a discretised pybamm model to the DiffSL language: https://martinjrobins.github.io/diffsl/

Motivation

pydiffsol is a wrapper around the rust solver diffsol, initial tests using the SPM model show that this solver is faster than the existing pybamm solvers, so this would be a useful route for users wanting to use diffsol to solve pybamm models quickly

Possible Implementation

export an already discretised pybamm model in the DiffSL language (i.e just write out a string)

Additional context

https://github.com/martinjrobins/diffsol

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions