I want to numerically solve the following elliptic PDE for both when $x \in [0,1]\times [0,1] \subset \mathbb{R}^2$ \begin{align*} -\text{div}(\kappa(x,y)\nabla u(x,y)) &= f(x,y), ~(x,y) \in (0,1)\times(0,1)\\ u(x, 0) &= c, ~\frac{\partial u}{\partial x}(1,y) = 0, ~\frac{\partial u}{\partial x}(0,y) = h(0, y), ~\frac{\partial u}{\partial y}(x,1) = 0, \end{align*} using a finite difference method. When $\kappa$ is constant, this is easy, but I am not sure how to proceed in the case where $\kappa$ is a function. In addition, in this case, how should I incorporate these Neumann boundary conditions?
2026-03-28 20:50:03.1774731003
Finite difference method with variable coefficient
599 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in PARTIAL-DIFFERENTIAL-EQUATIONS
- PDE Separation of Variables Generality
- Partial Derivative vs Total Derivative: Function depending Implicitly and Explicitly on Variable
- Transition from theory of PDEs to applied analysis and industrial problems and models with PDEs
- Harmonic Functions are Analytic Evan’s Proof
- If $A$ generates the $C_0$-semigroup $\{T_t;t\ge0\}$, then $Au=f \Rightarrow u=-\int_0^\infty T_t f dt$?
- Regular surfaces with boundary and $C^1$ domains
- How might we express a second order PDE as a system of first order PDE's?
- Inhomogeneous biharmonic equation on $\mathbb{R}^d$
- PDE: Determine the region above the $x$-axis for which there is a classical solution.
- Division in differential equations when the dividing function is equal to $0$
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Related Questions in COMPUTATIONAL-MATHEMATICS
- The equivalent of 'quantum numbers' for a mathematical problem
- Skewes' number, and the smallest $x$ such that $\pi(x) > \operatorname{li}(x) - \tfrac1n \operatorname{li}(x^{1/2})$?
- Approximating a derivative through Newton interpolation
- What is the value of $2x+3y$?
- Good free calculator for manipulating symbolic matrices of 6x6 and larger?
- How to convert an approximation of CCDF for a standard normal to an approximation with a different mean and variance?
- Simple recursive algorithms to manually compute elementary functions with pocket calculators
- Asymptotic notation proof
- Graph layout that reflects graph symmetries
- What is the most efficient computation of the permanent?
Related Questions in FINITE-DIFFERENCES
- 4-point-like central finite difference for second partial derivatives
- Numerical method for fourth order PDE.
- Finite difference approximation of $u''(x)+u(x)=0, u(0)=1, u(\pi)=-1$
- Numerically compute Laplacian of a scalar field in a non-orthogonal grid
- write second order difference as a convolution operator
- Do the second differences of the fifth powers count the sphere packing of a polyhedron?
- Discretization for $\partial_tu = \partial_x[g\times\partial_xu]$
- Discretization of 4th order ODE
- Trying to use Matlab to find Numerical Solution to $u''(x)+e^{u(x)}=0, u(0)=0, u(1)=0$ - Newton's method
- Finite difference: problem on edge of Dirichlet and Neumann boundary
Related Questions in FINITE-ELEMENT-METHOD
- What is the difference between Orthogonal collocation and Weighted Residual Methods
- Lagrange multiplier for the Stokes equations
- Does $(q,\nabla u)\lesssim C|u|_1$ implies $\Vert q\Vert_0\lesssim C$?
- How to approximate numerically the gradient of the function on a triangular mesh
- Proving $||u_h||_1^2=(f,u_h)$ for mixed finite elements
- Function in piecewise linear finite element space which satisfies the divergence-free condition is the zero function
- Implementing boundary conditions for the Biharmonic equation using $C^1$ elements.
- Deriving the zero order jump condition for advection equation with a source?
- Definition of finite elements (Ciarlet)
- finite elements local vs global basisfunction
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
You can easily apply standard finite differences. Just note that $$ \textrm{div} (k \nabla u) = \nabla k \cdot \nabla u + k \Delta u = k\left(\frac{\partial^2u}{\partial x^2}+\frac{\partial^2u}{\partial x^2}\right) + \frac{\partial k}{\partial x} \frac{\partial u}{\partial x}+\frac{\partial k}{\partial y} \frac{\partial u}{\partial y}. $$
Your equation on node $(i,j)$ would be
\begin{align*} k_{ij}\left(\frac{u_{i+1,j}-2u_{i,j}+u_{i-1,j}}{h^2}+\frac{u_{i,j+1}-2u_{i,j}+u_{i,j-1}}{h^2}\right)+\\(k'_x)_{i,j}\frac{u_{i+1,j}-u_{i-1,j}}{2h}+(k'_y)_{i,j}\frac{u_{i,j+1}-u_{i,j-1}}{2h} = -f_{i,j}. \end{align*}