Giter Club home page Giter Club logo

Comments (7)

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

Yeah this is slightly decoupled from the BC overhaul. What should be happening is the uncentered discretization should be used. For example, a 4th order discretization of the 2nd derivative one away from the boundary should use the stencil that is 2 to the left and 1 to the right. So basically you need to adapt which derivative you're using near the boundary to make sure it only ever goes to the boundary point. I don't believe we are properly doing all of this though.

from diffeqoperators.jl.

fgerick avatar fgerick commented on May 30, 2024

Okay, yes. I didn't really read into the BC overhaul. Do you think if I put some work into this now it is easily adaptable to the new way of putting together the linear operators?

from diffeqoperators.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

Yes, getting this done would be very helpful. Basically what we to start BC overhaul is to just get very solid the "BC-less" operators, i.e. an operator whose stencil is correct (i.e. does this de-centering).

from diffeqoperators.jl.

fgerick avatar fgerick commented on May 30, 2024

As I understand, the stencils of the Dirichlet boundary condition should essentially be equal to those of the None condition? Except for the boundary column, which can be set to 0.

from diffeqoperators.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

No, the stencils and the BCs should be kept separate.

from diffeqoperators.jl.

fgerick avatar fgerick commented on May 30, 2024

I see, you mean the stencils influenced by the boundary are computed and stored anyways and the BC is applied ontop.

from diffeqoperators.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 30, 2024

The stencil is always a mapping from the full domain to the interior. The mapping from the interior to the full domain is what holds the BCs.

from diffeqoperators.jl.

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.