-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
One-dimensional NLS using MethodOfLines ‘type Array has no field lhs` #58
Comments
How are you using those versions? MOL v0.2 requires ModelingToolkit v8. It won't let you install that set. |
Sorry, I mistranscribed. I am running ModelingToolkit v8.5.5 (I double checked and the other version numbers I wrote are correct). |
Complex equations are not currently supported but I will be working on this, can you reformulate as a system of equations in terms of the real and imaginary parts of |
Thanks, I gave it a try but it doesn't seem to be working. The PDE is the nonlinear Schrödinger equation:
where Dx=d/dx, and Dzz=d^2/dz^2. Defining A(x,z)=a(x,z)+im b(x,z) for real functions a(x,z) and b(x,z), this becomes
Following the tutorial for the Brusselator, I coded this up as below (discretising over z):
This gave me a very long error, they key parts of are below. I can't seem to find the problem in my code though.
|
This seems to be above board, this is a bug. I'll take a closer look at this soon. |
Thanks! Let me know if you want me to try anything else. |
I’m trying to solve the one-dimensional nonlinear Schrodinger equation using MethodOfLines.jl. I looked at the code on the docs: http://methodoflines.sciml.ai/dev/tutorials/brusselator/ 3, and adapted it as:
However this won’t run, giving error
type Array has no field lhs
. I think the only main difference between my code and the tutorial is that my PDE is for a single function.I'm running Julia v1.7.2, with package versions:
ModelingToolkit v6.7.1ModelingToolkit v8.5.5The full error is:
The text was updated successfully, but these errors were encountered: