I'm currently trying to write a program that models 1D particle diffusion in a potential field. The model itself consists of a 1D array of equally spaced cells where each cell has a (time-varying) potential level $U_{x,t}$ and particle concentration $C_{x,t}$. I'm trying to figure out how to write a transition function that takes the current potential and concentration values and produces the concentration values at the next timestep. I've come to understand that in the continuous-time, continuous-space scenario, concentration $C$ evolves in the static scalar potential $U$ according to the equation (found here): $$\frac{\partial C}{\partial t} = D\left[\frac{\partial^2C}{\partial x^2}-\frac{\partial}{\partial x}\left[\frac{C}{k_BT}\left(\frac{\partial U}{\partial x}\right)\right]\right]$$ $D$, $k_B$ and $T$ are constants that I can tune later, and don't particularly care about right now. I'm struggling to see how I can apply this equation to my discrete-space version, though, since I only have a notion of derivative between cells and not at the cells themselves. That is, I'm not sure how I'd evaluate evaluate $\frac{\partial U}{\partial x}$ and $\frac{\partial C}{\partial x}$. Ideally, at each timestep I can generate a discrete kernel for cell $x$, depending on $C_x$, $\Delta t$ and the difference between $U_x$ and neighbouring $U$ values, that I can then convolve with an impulse of height $C_x$ at $x$ so that the convolution of all the kernels and impulses at each $x$ provides the $C_x$ for the next timestep. Any guidance would be awesome, thanks!
2026-03-27 07:46:57.1774597617
Modelling particle diffusion in a scalar potential field
21 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtRelated 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 MATHEMATICAL-MODELING
- Does Planck length contradict math?
- Solving the heat equation with robin boundary conditions
- How to use homogeneous coordinates and the projective plane to study the intersection of two lines
- inhomogeneous coordinates to homogeneous coordinates
- Writing Differential equations to describe a system
- Show that $z''+F(z') + z=0$ has a unique, stable periodic solution.
- Similar mathematic exercises about mathematical model
- What are common parameters to use when using Makeham's Law to model mortality in the real world?
- How do I scale my parabolas so that their integrals over [0,1] are always the same?
- Retrain of a neural network
Related Questions in PROGRAMMING
- Neyman-Pearson precision problem
- How to find the number of possible ways to climb the staircase
- How many cells are expected?
- Help understanding this numerical surface integration technique?
- Random tree generation probability problem
- What math do I need to learn to create a general equation solver?
- Non-commutative sum?
- Basel problem, numerically
- Proof of correctness (loop invariant) for Fibonacci numbers
- Logic proof verification - Hoare
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?