Skip to content

time derivative operator #858

Closed

Description

@martinjrobins

Summary
This would add an d / dt operator to pybamm to take the time derivative of an expression tree

Motivation
no such operator currently exists. Users can manually add an expression tree corresponding to the time derivative of an expression, but if that expression involves a state variable then there is no way to evaluate an expression that contains the time derivative of the state variable

Additional context
none

Activity

  1. martinjrobins commented on Feb 26, 2020

    @martinjrobins
    ContributorAuthor

    I think this would involve:

    • a new Symbol class pybamm.VariableDot that represents the derivative of a state variable wrt time, natually the time derivative of a pybamm.Variable results in a pybamm.VariableDot
    • a new Symbol class pybamm.StateVariableDot that represents the state time derivative vector , natually the time derivative of a pybamm.StateVector results in a pybamm.StateVectorDot
    • discretisation of a pybamm.VariableDot results in a corresponding pybamm.StateVectorDot
    • need to change Symbol.evaluate to also take ydot, the derivative of the state vector, as an argument
    • raise error in the base_model checks if a pybamm.VariableDot exists in any rhs or algebraic equations (i.e. equations should be in semi-explicit form)
  2. added 13 commits that reference this issue on Mar 4, 2020
  3. 10 remaining items

  4. added 8 commits that reference this issue on Mar 15, 2020
  5. martinjrobins commented on Mar 18, 2020

    @martinjrobins
    ContributorAuthor

    forgot the changelog!

  6. added 2 commits that reference this issue on Mar 18, 2020
  7. added a commit that references this issue on Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions