Giter Site home page Giter Site logo

Comments (4)

ajnonaka avatar ajnonaka commented on August 26, 2024

Maybe there is a factor of dt hidden somewhere in the code I haven't spotted yet, but I think I agree with you. This is the initial sync projection (composite over all levels) to compute the initial pressure. The quantity we are projecting is Vproj=(unew-uold)/dt. Thus the pressure increment should be pnew = pold + phi, where phi is the solution to the elliptic problem. @asalmgren do you agree? I am going offline for a few hours but can do some numerical tests to confirm later. Basically what you want to do it set "ns.init_iter" to a very large number and see if the pressure converges to something. Try it with "1/dt" and "1" in the UpdateArg1 weighting and see if anything interesting happens.

from iamr.

WeiqunZhang avatar WeiqunZhang commented on August 26, 2024

dt = 1

from iamr.

ruohai0925 avatar ruohai0925 commented on August 26, 2024

Aaha, I really apologize for asking this stupid question. But indeed I have not found it before. The dt is an input parameter, which equals to 1. I should be more careful next time.

Thanks, everyone.

from iamr.

ajnonaka avatar ajnonaka commented on August 26, 2024

Doh! The use of "dt" as the input parameter name is a bit misleading. I'll change it to "factor".

from iamr.

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.