Andrei
Reputation
456
Top tag
Next privilege 500 Rep.
Access review queues
 Mar 1 awarded Popular Question Nov 3 awarded Nice Question Oct 2 awarded Self-Learner Apr 18 awarded Yearling Jan 9 awarded Popular Question Jul 2 awarded Curious Jun 20 comment Adaptive sampling for slow to compute functions in 2D Well, a robust algorithm for 2D adaptive sampling would be very nice to have. Jun 20 comment Adaptive sampling for slow to compute functions in 2D Are there any new developments on this issue? Jan 8 awarded Yearling Jul 12 accepted Complex valued 2+1D nonlinear PDE using NDSolve Jul 11 comment Complex valued 2+1D nonlinear PDE using NDSolve @ruebenko, could you please clarify one thing? in your answer, are the boundary conditions assumed to be periodic or not? because in the documentation, for the "pseudospactral" difference order, it looks like that! I am asking because I wanted mine to be fixed.. Jul 11 comment solve ODE with divergencies @ThiesHeidecke, since you seem to know a lot about numerical methods for solving differential equations, could you please recommend a good book on the topic? Jul 11 accepted solve ODE with divergencies Jul 11 comment solve ODE with divergencies @ThiesHeidecke, excellent, thanks a lot for the effort! Jul 9 comment solve ODE with divergencies great! @ThiesHeidecke, could you please detail on the Hankel/Bessel approaches? Jul 9 comment Complex valued 2+1D nonlinear PDE using NDSolve i did in the original post, but somehow it got lost in the editing :) well nevermind that, the real problem indeed are the boundaries, because it seems like there is reflection there, and I need to simulate the system as if it were infinite Jul 9 comment Complex valued 2+1D nonlinear PDE using NDSolve About the boundary conditions, what I can say based on physical arguments is that far away from the center (at infinity), the solution tends to 1. Jul 9 comment Complex valued 2+1D nonlinear PDE using NDSolve Trying you code, NDSolve chokes with the error "Maximum number of 10000 steps reached at the point t == 1.92". Also, could you please edit your answer to plot Abs[sol]^2 instead of the imaginary part please? That is the physical quantity of interest ;) Jul 9 comment Complex valued 2+1D nonlinear PDE using NDSolve The "pseudospectral" difference order, from what I understand from the docs, applies FFT methods, which basically assumes periodic boundary conditions, right? Whereas mine were fixed (Dirichlet type). Jul 9 comment solve ODE with divergencies I also don't understand why your solution has a negative slope at the end of the interval, when it should flatten out towards $f$=1 at $\eta=10$.