Questions tagged [advection-diffusion]
Questions related to solving the advection-diffusion equation using numerical methods, including derivation and implementation of boundary conditions.
115
questions
1
vote
1
answer
201
views
Numerically solving the Advection-diffusion equation with no-flux boundary condition leads to violation of mass conservation
I am trying to solve numerically the advection-diffusion equation of the following form
$$\frac{\partial C}{\partial t}=\alpha\frac{\partial^2 C}{\partial x^2}+\beta \frac{\partial C}{\partial x}$$
...
2
votes
1
answer
115
views
How to quantify the numerical diffusion term in a second-order upwind advection scheme?
In the first-order upwind scheme, numerical diffusion can be quantified as:
$$\frac{dT}{dt} = -w\left(\frac{dT}{dz}\right) + \left(\frac{wdz}{2}\right)\left(\frac{d^2T}{dz^2}\right)$$
For Lax-Wendroff,...
6
votes
1
answer
145
views
Slope limiting with implicit time integration
I am solving the advection problem with high order numerical methods, using the method of lines. The boundary conditions and initial condition are selected in a way where I know that the exact ...
1
vote
0
answers
40
views
Implementation of operator splitting method for Wigner equation
I am dealing with the integro-differential equation for Wigner function,
$$\frac{\partial f}{\partial t}+p\frac{\partial f}{\partial x}+\\+\frac{1}{\chi}\left\{\int_{-\pi}^{+\pi}dy\,\int_{-\infty}^{+\...
1
vote
2
answers
196
views
Modeling contamination diffusion in a draining container, part 2
Part 1, but I'll repeat here. This time we'll move the top boundary.
I have a container of water with initial volume $V_0$ and height $L$, open at the top which receives a constant mass flux $\phi$. A ...
2
votes
1
answer
145
views
Modeling contamination diffusion in a draining container
I asked this on the Physics site, but it fits much better here, and I now can ask a more specific question.
For the scope of the problem, I have a 250-mL bottle filled with pure water and a sampling ...
3
votes
1
answer
209
views
First derivative central differences with reflecting boundary conditions
I have the following problem in 1-D:
\begin{equation}
\partial_t u(t,x) = v(x)\partial_x u(t,x) + \kappa(x) \partial_{xx} u(t,x),\,x\in\Omega;\quad \partial_{\nu}u(t,x) = 0, \,x\in\partial\Omega.
\end{...
3
votes
2
answers
279
views
Solving systems of advection-diffusion-reaction equations with finite element methods
I have been doing a lot of self-study on numerically solving PDEs so that I can solve system of linear and nonlinear Advection-Diffusion-Reaction (ADR) systems on complex meshes.
I have been watching ...
3
votes
2
answers
225
views
Non-conservative advective term in a finite volume scheme
I am interested in solving this set of nonlinear couples advection-diffusion equations using a finite volume scheme:
$$
\frac{\partial f(x,y)}{\partial t}=-(\boldsymbol{u}+\nabla\eta)\cdot\nabla f +\...
0
votes
1
answer
173
views
Choice of grid generation for FDM discretisation methods
I'm currently revisiting some FDM schemes for convection-diffusion equations in 1D, 2D and 3D and getting up to speed with the industry-standard methods again. The application is derivatives pricing, ...
1
vote
0
answers
207
views
Solving PDE on a non-uniform grid with Crank-Nicolson scheme
I am solving a 1D diffusion-type equation with the finite-difference Crank-Nicolson (CN) scheme, and I need to densify the spatial grid around the central point. One could change the spatial variable ...
1
vote
0
answers
246
views
Closed (Robin) boundaries in advection-diffusion equation with FDM
I am solving the equation
$$
\frac{\partial \phi}{\partial t} = \frac{\partial}{\partial x} \left( D \frac{\partial \phi}{\partial x} + v\phi \right)
$$
using finite differences. I want to include ...
2
votes
1
answer
149
views
Solving a set of mixed conservative/non-conservative equations with the finite volume method
I want to solve this set of 2D advection-diffusion equations of this form in spherical coordinates:
$$
\frac{\partial f}{\partial t}=-\mathbf{u}\cdot\nabla f+\eta\nabla^2f+\eta_1(\mathbf{e}_1\cdot\...
2
votes
1
answer
775
views
Why is my Runge-Kutta 4 solution to the 1-D advection equation decaying so quickly?
I am trying to numerically solve the advection equation $y_t + y_x = 0$ using a the "classical" Runge-Kutta 4 explicit timestepping method, along with a left-hand finite difference ...
3
votes
1
answer
142
views
Mineral dissolution and solute transport around a solid
I am trying to simulate solute transport of acid (HCl) and consequent mineral dissolution around a grain (calcite).
The governing equation for transport is the advection-diffusion equation, given as:
...