Giter VIP home page Giter VIP logo

Comments (3)

mandli avatar mandli commented on July 4, 2024

@kamyinnnlok some quick answers for you:

  1. The norm used is semi arbitrary although usually there is one norm that is appropriate or usually used for each problem.
  2. These are the forward and backward, 2nd order accurate finite differences that keep only a single point on the boundary that can then be specified with a boundary condition (usually).

from numerical-methods-pdes.

KYRA-ma avatar KYRA-ma commented on July 4, 2024

@mandli thanks for your apply.
But I still don't understand the 2nd answer how to derive the expression above. Could you derive the expression
f_prime_hat[0] = (-3.0 * f(x_hat[0]) + 4.0 * f(x_hat[1]) + - f(x_hat[2])) / (2.0 * delta_x[-1]) in detail please? Thanks again~
Just forgive me that I have more questions:

  1. when I learn the 04_BVP_problems tonight, I am confused about the Green's functions. Is the model of that is fixed as (I can't type the formula below so it seem like ugly. Just forgive me hahah)
    $$
    G(x; \bar{x}) = \left { \begin{aligned}
    (\bar{x} - 1) x & & 0 \leq x \leq \bar{x} \
    \bar{x} (x - 1) & & \bar{x} \leq x \leq 1
    \end{aligned} \right . .
    $$ ? How to get it?

  2. I could not understand the 2nd answer in the exercise of Neumann Boundary Conditions in 04_BVP_problems. It seems like the 2nd finite differences. How to get the A[-1, -1] = -1.0 / (delta_x) A[-1, -2] = 1.0 / (delta_x). In the 3rd answer of the exercise,how to get the A[-1, -1] = 3.0 / (2.0 * delta_x) A[-1, -2] = -4.0 / (2.0 * delta_x) A[-1, -3] = 1.0 / (2.0 * delta_x)

Thanks again if you could help me!!!!

from numerical-methods-pdes.

mandli avatar mandli commented on July 4, 2024

@kamyinnnlok The derivation of the finite difference being used is in the 03 notebook. It may be helpful to look at the more detailed derivation in the other course notes that exist. For your other questions:

  1. The Green's function for the Laplacian is a common derivation in almost all PDE textbooks. Suffice to say that the principle is that the Green's function is derived from using the $\delta$ function as a forcing on the right hand side and is the result of solving the PDE $\nabla^2 u = \delta(x)$.
  2. Since the boundary is a derivative these are coming from the finite difference approximation at the boundary, which we know though not what $u(x)$ is.

from numerical-methods-pdes.

Related Issues (3)

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.