Comments (3)
Thanks @navidcy !
Here's a document going over the two options in a bit more detail:
stratified_periodic_equations.pdf
The method I suggested for the pressure is what Diablo uses, and may come in useful if you want to make a 3DNavierStokes module.
I've also outlined a couple of extensions that it would be good to have in mind while developing this.
from geophysicalflows.jl.
hey @chowland congrats on submitting thesis!
A stratified flows module would be great.
FourierFlows.jl already includes a ThreeDGrid
but we don't have any module in GeophysicalFlows.jl using it.
Can you point to a pdf/notes with the equations written down so I think about it a bit?
from geophysicalflows.jl.
@chowland nice! Congrats!
I think a 2D vorticity-streamfunction formulation might be a good place to start because of its simplicity.
However, one consideration is that a 3D implementation could be easily reduced to 2D by setting, for example, ny=1
. The downside is the added complexity. The upside is that we immediately obtain efficient 3D and 2D solvers.
As for the pressure solve, we do not need to use pressure projection or fractional time stepping methods with a 3D spectral method. Instead, we can obtain the pressure directly from the transformed equations in Fourier space, and substitute the result into the RHS. This approach is described in Winters et al 2004 (see equations 33-35).
Looking at those equations, I do think it probably makes sense to start with the vorticity-streamfunction formulation. It's much simpler.
I'd suggest using b
rather than θ
for buoyancy. θ
is often used for "temperature".
Finally, we should probably also have rotation! This requires an additional equation for v
in the vorticity-streamfunction formulation. The equations are given in Xie and Buhler (2019). We can probably implement a rotating version as an "option" in the new module (we don't need to put rotation in at the outset).
from geophysicalflows.jl.
Related Issues (20)
- `MultiLayerQG` tests fail on Julia v1.6
- 3D Navier-Stokes HOT 1
- Better docstring for module `Problem` constructors
- Avoid scalar operations every time-step
- Should we enforce dealiasing before any calculation of nonlinear terms? HOT 7
- No need to import `FFTW` in examples
- `Plots` no longer accepts functions as `clims` HOT 7
- MultilayerQG example crashed at about 35000 steps HOT 7
- Optimized PV inversion for two layer case in `MultilayerQG` HOT 4
- Demonstrate save/load output functionality in an example
- Convert diagnostics output for `MultiLayerQG` from Arrays to Tuples? HOT 1
- م
- Potential missing factor in `MultiLayerQG.energies` HOT 1
- construct a random field with prescribed spectral slope HOT 2
- enstrophy and cuda problem HOT 7
- Should we be passing `forcing_spectrum` as argument into `calcF!`? HOT 2
- Option to specify PV gradients explicitly rather than computing them spectrally HOT 4
- Sign error for mean PV gradient `Qy` in `MultiLayerQG` module HOT 11
- Add citations in the Docs via DocumenterCitations.jl
- Mistake in stretching matrix in multilayerqg.jl HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geophysicalflows.jl.