Code Monkey home page Code Monkey logo

finitevolume-python's Issues

navier-stokes

Hi,

Thanks for the very neat blog post and code, it is very helpful.
I am definitely not an expert in finite volumes, but I was wondering if there was anything preventing from extending the present collocated finite volume formulation to the navier-stokes equations ? I see on the internet that most formulations for NS are staggered, or use specific time-stepping techniques when they are not.

Best,

extrapolateInSpaceToFace

I am a bit confused about the function extrapolateInSpaceToFace(...), specifically

f_XL = f - f_dx * dx/2
f_XL = np.roll(f_XL,R,axis=0)
f_XR = f + f_dx * dx/2
  
f_YL = f - f_dy * dx/2
f_YL = np.roll(f_YL,R,axis=1)
f_YR = f + f_dy * dx/2

Could you explain why f_XL and f_YL are rolled, such that f_XL (i,j) in fact holds the value of f_XL(i+1,j)? I thought these are matrices storing 4 face values of the cell (i,j). Thank you!

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.