Giter Club home page Giter Club logo

Comments (4)

anushkrish avatar anushkrish commented on August 26, 2024

Wrote the unit tests to calculate the order of convergence of the explicit diffusion terms. The following are observed:

  • Overall order of convergence of the diffusion kernel appears to be approximately 1.5
  • When only the x-derivatives for u and the y-derivatives for v are considered, the convergence is second-order. The other derivatives make use of a different kernel at the boundary, and that could be causing the unexpected order of convergence for the entire kernel.

Run the unit test to check the convergence of the explicit diffusion kernel using the following commands in the project root directory:

    make unitTests/diffusionTerm
    make testDiffusion

Proposal: Write simple 1-D codes to see how the diffusion kernel converges for different types of grids and stencils.

from cuibm.

anushkrish avatar anushkrish commented on August 26, 2024

The diffusion kernel is expected to show an order of convergence of approximately 1.5 in the L-2 norm. See the following iPython notebook for details:
http://nbviewer.ipython.org/urls/dl.dropbox.com/s/d18lm7okq4n089v/secondDerivative.ipynb?create=1

from cuibm.

anushkrish avatar anushkrish commented on August 26, 2024

Closing this for now and will revisit it later. I removed the direct forcing test cases because they were cluttering the repository, but will reintroduce them in a more organised way after further analysis.

from cuibm.

anushkrish avatar anushkrish commented on August 26, 2024

Lid-driven cavity does show second order convergence. The earlier issue was because the tolerance used was too large in magnitude (1e-5). Using 1e-8 with successive grid sizes of 20, 60, 180 and 540 gives the correct order of convergence. Use the script scripts/convergence/cavityRe100.py to check this, with the folder cases/convergence/cavityRe100/NavierStokes/20x20.

from cuibm.

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.