Comments (3)
@kamyinnnlok some quick answers for you:
- The norm used is semi arbitrary although usually there is one norm that is appropriate or usually used for each problem.
- 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.
@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:
-
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? -
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 theA[-1, -1] = -1.0 / (delta_x)
A[-1, -2] = 1.0 / (delta_x)
. In the 3rd answer of the exercise,how to get theA[-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.
@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:
- 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)$ . - 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numerical-methods-pdes.