-
Notifications
You must be signed in to change notification settings - Fork 30
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
added: XY advection dynamics example #357
base: main
Are you sure you want to change the base?
Conversation
Hi @pankajpopli! thanks for the contribution! Could you please include a small description in the first comment of this PR explaining a bit more what this example solves/demonstrates? Personally, I don't really understand even what equations the example is solving from the phrase "solving a 2D vectorial field (XY+advection)". I tried to add your example in the list of literated examples so I could have a look at the literated version but that didn't work for me.. :( |
I have now corrected the docs and it should compile correctly. Since I am new to contributing on GitHub, I apologize if I am not following the guidelines. In that case, please advise. |
Don't worry about that! Good. Probably the docs will fail because I noticed you used Plots.jl for plotting while we currently use Makie. But I can help with that. I saw you updated the first post to add the equation! Thanks! |
Wikipedia entry for XY model: https://en.wikipedia.org/wiki/Classical_XY_model Feel free to give a better citation for XY model if it's out there. |
These two should suffice, a landmark paper and a landmark book :) [1] Kosterlitz, J. M.; Thouless, D. J. (1973), "Ordering, metastability and phase transitions in two-dimensional systems", Journal of Physics C: Solid State Physics, 6 (7): 1181–1203, [2] P. Chaikin and T. Lubensky, Principles of Condensed Matter Physics (Cambridge Press, Cambridge, 1995). |
please add one more |
sorry for the installments but this paper should be added as well [4] John Toner and Yuhai Tu, "Long-Range Order in a Two-Dimensional Dynamical XY Model: How Birds Fly Together", Phys. Rev. Lett. 75, 4326, December 1995 |
added: References and CairoMakie |
Thanks for that! Sorry haven’t had time to have a closer look yet! |
let me update XYAdvection.jl by XYAdvection.md |
@pankajpopli, I had a look at the module and the example and I have a few general remarks.
module XYAdvection
end # end module
|
Also we should add tests for the XYadvection module. Is there any known solution (even for a simple case, e.g. with some of the coefficients zero) that we could include as part of the tests? |
Many thanks for the remarks and suggestions! I am first trying to cast the XYAdvection.jl in lines with diffusion.jl or "Linear rotating shallow water dynamics" I initially intended it to be a default module of FourierFlows.jl in the beginning but I agree with your last comment now. There are few tests for the equation, where two topological defects merge with each other giving an ordered state. Not sure if that would suffice the tests...new to Julia, please advice |
Let's leave the tests for last. I now noticed that neither the Diffusion module nor the OneDShallowWater example have tests associated with them. Do you think you'd go for a module in src + an example that demonstrates it or something like OneDShallowWater which is like the two above in one? |
We solve 2D vector field which follows the following equation
Which is essentially a classical XY model plus advection.$\vec{p} = (p_x(x,y,t), p_y(x,y,t)$ is a function of space and time.
Here