Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add erf and erfc functions #1183

Closed
brosaplanella opened this issue Oct 3, 2020 · 2 comments · Fixed by #1184
Closed

Add erf and erfc functions #1183

brosaplanella opened this issue Oct 3, 2020 · 2 comments · Fixed by #1184
Assignees

Comments

@brosaplanella
Copy link
Sponsor Member

Summary
Add the error function (erf) and complementary error function (erfc) to PyBaMM.

Motivation
These functions come up in some applications (e.g. Stefan problems) and it would good to have them into PyBaMM. Should be an easy implementation, however it would require calling SciPy from functions.py. Would that be an issue?

@valentinsulzer
Copy link
Member

That would be fine, the only question is whether casadi has those functions

@brosaplanella
Copy link
Sponsor Member Author

It has erf. If we define the PyBaMM function Erfc as 1 - Erf then Casadi should be able to cope with it, right?

brosaplanella added a commit to brosaplanella/PyBaMM that referenced this issue Oct 7, 2020
@brosaplanella brosaplanella self-assigned this Oct 7, 2020
brosaplanella added a commit to brosaplanella/PyBaMM that referenced this issue Oct 7, 2020
brosaplanella added a commit to brosaplanella/PyBaMM that referenced this issue Oct 7, 2020
brosaplanella added a commit to brosaplanella/PyBaMM that referenced this issue Oct 16, 2020
brosaplanella added a commit to brosaplanella/PyBaMM that referenced this issue Oct 16, 2020
brosaplanella added a commit to brosaplanella/PyBaMM that referenced this issue Oct 16, 2020
valentinsulzer added a commit that referenced this issue Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants