-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
adding arctan function in pybamm #972
Comments
Did you import |
Yes, I did. Below is from my input file. from pybamm import exp, atan def graphite_ocp_NCM2020(sto):
|
Nevermind. It is working after I restart the code. thx |
Great! When you're ready, it would be great if you could open a PR adding the atan function to the code |
Hi,
I have a OCP function as
And I just realize that there is no atan function defined in pybamm.
I tried to add an atan function as below but it doesn't work.
Would you let me know the proper way to add atan function in pybamm?
In the function file, I add following lines.
class Arctan(SpecificFunction):
""" Arctan function """
def atan(child):
" Returns hyperbolic tan function of child. "
return pybamm.simplify_if_constant(Arctan(child), keep_domains=True)
However, I still have a following error.
---> 20 - 0.009434atan(32.49sto - 15.74)
21 )
22
NameError: name 'atan' is not defined
The text was updated successfully, but these errors were encountered: