I am trying to write the Poisson equation solver in C, using FFTW library. For given density of charge I need to calculate potential assuming periodic boundaries. My idea is to use convolution, simply calculate complex DFT of green's function $G(r)=\frac{1}{4\pi r}$ multiply by DFT of density and inverse transform the product. Problem is that there is singularity at r=0 and FFTW does not accept -inf values. I am not really mathematician. I wonder if there is some way of overcoming this problem. My only guess was to assume some big value at r=0, or some smoothing, but it is probably not the best idea. Another way would be probably to change the method of calculation. I look forward for any suggestions.
2026-03-25 19:02:51.1774465371
Calculate FFT of 1/r green's function
142 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtRelated Questions in FOURIER-ANALYSIS
- An estimate in the introduction of the Hilbert transform in Grafakos's Classical Fourier Analysis
- Verifying that translation by $h$ in time is the same as modulating by $-h$ in frequency (Fourier Analysis)
- How is $\int_{-T_0/2}^{+T_0/2} \delta(t) \cos(n\omega_0 t)dt=1$ and $\int_{-T_0/2}^{+T_0/2} \delta(t) \sin(n\omega_0 t)=0$?
- Understanding Book Proof that $[-2 \pi i x f(x)]^{\wedge}(\xi) = {d \over d\xi} \widehat{f}(\xi)$
- Proving the sharper form of the Lebesgue Differentiation Theorem
- Exercise $10$ of Chapter $4$ in Fourier Analysis by Stein & Shakarchi
- Show that a periodic function $f(t)$ with period $T$ can be written as $ f(t) = f_T (t) \star \frac{1}{T} \text{comb}\bigg(\frac{t}{T}\bigg) $
- Taking the Discrete Inverse Fourier Transform of a Continuous Forward Transform
- Is $x(t) = \sin(3t) + \cos\left({2\over3}t\right) + \cos(\pi t)$ periodic?
- Translation of the work of Gauss where the fast Fourier transform algorithm first appeared
Related Questions in CONVOLUTION
- What is the result of $x(at) * δ(t-k)$
- Convolution sum
- PDF of the sum of two random variables integrates to >1
- If $u \in \mathscr{L}^1(\lambda^n), v\in \mathscr{L}^\infty (\lambda^n)$, then $u \star v$ is bounded and continuous.
- Proof of Young's inequality $\Vert u \star v \Vert_p \le \Vert u \Vert_1 \Vert v \Vert_p.$
- Duhamel's principle for heat equation.
- Computing the convolution of $f(x)=\gamma1_{(\alpha,\alpha+\beta)}(x)$
- Convolution of distributions property
- Self-convolution of $f(\vec{r}) = e^{-x^2-y^2}/r^2$
- Inverse $z$-transform similar to convolution
Related Questions in POISSONS-EQUATION
- Variational Formulation - inhomogeneous Neumann boundary
- Poisson's equation / Helmholtz-Hodge decomposition on a sphere
- Is the vector field A equal to zero if following equations are satisfied?
- Exterior sphere condition for bounded domain
- Multivariate Chain Rule & the Fundamental Theorem of Calculus
- Poisson modification with regularity
- Difference Quotients on Riemannian Manifolds
- Cumulative function of a given function multiplied by a Poisson distribution
- Solving Laplace Equation with two dielectrics in cylindrical coordinates
- Difficulty in Solution of Poisson's equation using Fourier Transform
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?