Git Product home page Git Product logo

Comments (5)

dionhaefner avatar dionhaefner commented on May 24, 2024

I agree that this is counter-intuitive. It may take me some time to investigate what's going on. We have an experimental surface pressure solver where this doesn't happen, so it definitely seems connected to the stream function.

from veros.

jklymak avatar jklymak commented on May 24, 2024

Cool, yes, I'm used to a surface pressure solver in the MITgcm. Though that can be expensive and hard to parallelize.

I'm not sure what I would do if I wanted to initialize a shear flow with non-zero barotropic flow. Remove the barotropic and put that in as a stream function and just initialize u and v with the shear?

Here, where I wanted a barotropic initial flow, the solution to a mean flow definitely seemed to be not to specify vs.u and only specify vs.psi.

from veros.

dionhaefner avatar dionhaefner commented on May 24, 2024

I'm not sure what I would do if I wanted to initialize a shear flow with non-zero barotropic flow. Remove the barotropic and put that in as a stream function and just initialize u and v with the shear?

Yes that seems to be it. The streamfunction solver removes any barotropic mode from u and v, and adds it back based on psi.

That's a bit awkward of course. I think I will pull in the first version of the surface pressure solver with linear free surface soon (identical to the MITgcm implementation). That should make things easier for you.

from veros.

jklymak avatar jklymak commented on May 24, 2024

I think, even working within the confines of the stream function solver we might consider calculating the initial steam function from the initial velocity field as an initial step. Most of your demos start from rest, but I would expect people to be more likely to know u, v rather than psi as an initial condition?

from veros.

dionhaefner avatar dionhaefner commented on May 24, 2024

Yes, that's a good suggestion.

from veros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.