Related Experiment Video
Updated: May 1, 2026

Finite Element Modelling of a Cellular Electric Microenvironment
Published on: May 18, 2021
Local Monte Carlo for electrostatics in anisotropic and nonperiodic geometries
1Department of Physics and Astronomy, The University of British Columbia, 6224 Agricultural Road, Vancouver, British Columbia V6T 1Z1, Canada.
Abstract:
We present an implementation of a local Monte Carlo algorithm for simulating charged particles in anisotropic and nonperiodic geometries. Specifically, we consider a quasi-two-dimensional periodic slab geometry with an either infinite or finite third dimension. For the infinite case, we show that the method generates accurate electrostatics equivalent to standard two-dimensional Ewald formulas. We then implement constant charge or constant potential (Dirichlet) boundary conditions, which frequently occur in experimental studies of charged complex fluids or polyelectrolytes. As a demonstration of the versatility of the approach, we compute ion density profiles in front of oppositely charged surfaces (the electric double layer) and find excellent agreement with theory in known analytic limits.
Related Concept Videos
Gauss's Law: Planar Symmetry
Gauss's Law in Dielectrics
Electric Field of a Non Uniformly Charged Sphere
Consider a non-uniformly charged sphere, for which the density of charge depends only on the distance from a point in space and not on the direction. Such a sphere has a spherically symmetrical charge distribution. Here, the electric...
Electrostatic Boundary Conditions
The surface integral of an electric field is given by Gauss's law in integral form and is related to...
Electrostatic Boundary Conditions in Dielectrics
Consider a case where both the mediums across a boundary are two different dielectric materials. Recall that the electric field and electric displacement are proportional and related through the material's permittivity....
Magnetostatic Boundary Conditions

