Skip to content

Incorrect Jacobian computation in absorption voltammetry #2

Description

@jackbmontgomery

Hi there,

I believe there is an issue in the computation of the jacobian. The line I have referenced is the the partial derivative wrt $\xi_B$. I believe this should be aval.append(deltaT*Kox_ads - deltaT*K_A_ads*saturation_number*conc[2]) not aval.append(deltaT*Kox_ads - deltaT*K_A_ads*saturation_number*conc[0]) as in the code right now.

Since this term in the Jacobian is $C_{A, X=0}$ which is at index 2 not $\xi_A$ which is at index 0.

https://github.com/BattModels/DiffEC/blob/7a00728e27e851eb34c28ed2390d07a193799efb/DiffEC Adsorption/coeff.py#L277C38-L277C44

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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