where is the Julia code used to produce the movies in README.md? #3839
Replies: 3 comments 1 reply
-
Hi @waywardpidgeon! Are you interested in the simulation setup code or the plotting code? Unfortunately, the movies in the README.md were generated using ancient versions of Oceananigans. So any code we might unearth from git history would be way too old to work with the current version of Oceananigans. That said, I'm happy to share the details so you could reproduce them. They're actually simple simulations to set up. Just a fluid at rest forced by surface buoyancy and/or momentum fluxes. In the first movie (deep convection) the surface buoyancy flux is restricted to a circle of some radius. I think all simulations in those movies used 256^3 grid points. Today Oceananigans has much better advection schemes so you could produce much higher fidelity simulations at the same resolution! The plots were made using matplotlib (way before Julia had Makie.jl) so if I can find that code, it could be useful. But if I were to remake the plots today I'd use Makie.jl (and GLMakie.jl for 3D plots). |
Beta Was this translation helpful? Give feedback.
-
So I actually found the script used for the deep convection simulations from way back in v0.5.3! You'll notice the code looks much more ragged and completely different to today's interface but the parameter values are there if you want to recreate the exact same setup: https://github.com/CliMA/Oceananigans.jl/blob/v0.5.3/examples/deep_convection.jl And I believe I used matplotlib's |
Beta Was this translation helpful? Give feedback.
-
Oh, thanks for that. Please don't spend any time on this - it's far from essential.
Cheers Kevin
…________________________________
From: Gregory L. Wagner ***@***.***>
Sent: Wednesday, October 9, 2024 12:54:48 PM
To: CliMA/Oceananigans.jl ***@***.***>
Cc: Kevin Broughan ***@***.***>; Mention ***@***.***>
Subject: Re: [CliMA/Oceananigans.jl] where is the Julia code used to produce the movies in README.md? (Discussion #3839)
3D plots are demonstrated in the baroclinic adjustment script: https://github.com/CliMA/Oceananigans.jl/blob/main/examples/baroclinic_adjustment.jl
Some simplifications would be warranted for a movie like the one in the README. There is also an example of an animation in that script.
Unfortunately, it is too expensive to make 3D movies in examples right now, so we don't have a way of continuously testing such code.
That said it would not be hard to produce something in this discussion. I have a lot of similar code lying around. We just need to know whether the objective is simulating or movie-making or both.
—
Reply to this email directly, view it on GitHub<#3839 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUPNYEWBSRMYV22WEEFDRNLZ2RWERAVCNFSM6AAAAABPTG2FGOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOBYGYYTENQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am exploring Oceananigans.jl examples and would like to try and reproduce the examples of the movies in README.md. Is the code somewhere I can use or modify?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions