diff --git a/docs/Project.toml b/docs/Project.toml index 9daa8ec1..98316bb8 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -3,6 +3,7 @@ CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244" FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" +FourierFlows = "2aec4490-903f-5c70-9b11-9bed06a700e1" JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" diff --git a/docs/src/references.bib b/docs/src/references.bib index e2224632..c21c6cdc 100644 --- a/docs/src/references.bib +++ b/docs/src/references.bib @@ -55,3 +55,26 @@ @techreport{Carpenter-Kennedy-1994 address = {NASA Langley Research Center, Hampton, VA}, url = {https://ntrs.nasa.gov/api/citations/19940028444/downloads/19940028444.pdf} } + +@article{Toner-Tu, + title = {Long-Range Order in a Two-Dimensional Dynamical $\mathrm{XY}$ Model: How Birds Fly Together}, + author = {Toner, John and Tu, Yuhai}, + journal = {Phys. Rev. Lett.}, + volume = {75}, + issue = {23}, + pages = {4326--4329}, + numpages = {0}, + year = {1995}, + month = {Dec}, + publisher = {American Physical Society}, + doi = {10.1103/PhysRevLett.75.4326}, + url = {https://link.aps.org/doi/10.1103/PhysRevLett.75.4326} +} + +@book{chaikin-Lubensky, + place={Cambridge}, + title={Principles of Condensed Matter Physics}, + DOI={10.1017/CBO9780511813467}, + publisher={Cambridge University Press}, + author={Chaikin, P. M. and Lubensky, T. C.}, year={1995} +} diff --git a/src/XYAdvection.jl b/src/XYAdvection.jl index a0718614..2a8708d7 100644 --- a/src/XYAdvection.jl +++ b/src/XYAdvection.jl @@ -246,6 +246,7 @@ module XYAdvection file = jldopen(filepath) px = irfft(file[string("snapshots/sol/", titr)][:,:, 1], nx) py = irfft(file[string("snapshots/sol/", titr)][:,:, 2], nx) + close(file) return px,py end ############################################################################################################