0
votes
2answers
64 views

Simulating diffusion from bulk to individual particles

I have a 2 compartment simulation. The first compartment simulates reactions using ODEs. The second compartment uses Brownian motion. I want to be able to have molecules from the ODE compartment ...
2
votes
3answers
470 views

Finite difference formulation of the heat equation with thermal conductivity in 1D

This may seem trivial, but I'm having some trouble deriving the finite difference form of the heat equation with a thermal conductivity function $a(x)$ depending on $x$: $$\frac{\partial u(x, ...