EMDyna Sandbox Scene Details
Overview Manual & Theory Validation Suite Python API Gallery Open Simulator

← Back to Scene Gallery

OfficialBasicLevitating Charged Sphere (Coulomb force)

Both red spheres are positively charged. The lower sphere is fixed, while the upper sphere moves vertically. It levitates at height √(k q²/mg) where repulsive Coulomb force (yellow arrow) balances gravity. Changing charge alters the levitation height; reversing signs causes attraction and collapse.

Oct 17, 2026 • 9 views

Launch & Remix in Simulator

Read the explanation, with equations and figures ↓

Modify this scene in the simulator, then open the "Scene" tab and click "Publish Current Scene to Gallery" to share your remix!

·

In short

Two tiny charged balls push each other away because like charges repel.

What you are looking at

Two small spheres, each carrying a positive charge of q=+20 nCq = +20\text{ nC}, are aligned vertically:

  • The bottom sphere is anchored rigidly at the origin (0,0,0)(0, 0, 0).
  • The top sphere (m=0.1 gm = 0.1\text{ g}) is initially released from a height of y=10 cmy = 10\text{ cm} and is constrained to move purely along the vertical yy-axis under gravity and electrostatic forces.

Because like charges repel, the bottom sphere pushes upward on the top sphere. A yellow vector displays the electrostatic force acting on the sphere in real time. The top sphere oscillates with slight mechanical damping until settling into a stable floating equilibrium above the bottom sphere.

Balance between Coulomb repulsion and gravity

Two opposing forces act along the vertical line connecting the charges:

  1. Coulomb electrostatic force (directed upward):
Fe(y)=14πε0q1q2y2=keq2y2F_e(y) = \frac{1}{4\pi\varepsilon_0}\frac{q_1 q_2}{y^2} = k_e \frac{q^2}{y^2}

where ke≈8.98755×109 N⋅m2/C2k_e \approx 8.98755 \times 10^9\text{ N}\cdot\text{m}^2/\text{C}^2 is Coulomb's constant, and yy is the center-to-center distance between the two spheres.

  1. Gravitational force (directed downward):
Fg=mgF_g = mg

where m=1.0×10−4 kgm = 1.0 \times 10^{-4}\text{ kg} and g≈9.807 m/s2g \approx 9.807\text{ m/s}^2.

At the static equilibrium height yeqy_{\text{eq}}, the net vertical force is zero:

keq2yeq2=mg  ⟹  yeq=keq2mgk_e \frac{q^2}{y_{\text{eq}}^2} = mg \implies y_{\text{eq}} = \sqrt{\frac{k_e q^2}{mg}}

Substituting the simulation parameters:

yeq=8.98755×109×(20×10−9)21.0×10−4×9.807=3.595×10−39.807×10−4≈0.0605 m≈6.05 cmy_{\text{eq}} = \sqrt{\frac{8.98755 \times 10^9 \times (20 \times 10^{-9})^2}{1.0 \times 10^{-4} \times 9.807}} = \sqrt{\frac{3.595 \times 10^{-3}}{9.807 \times 10^{-4}}} \approx 0.0605\text{ m} \approx 6.05\text{ cm}
ParameterValueNote
Bottom charge q1q_1+20 nC+20\text{ nC}Fixed position
Top charge q2q_2+20 nC+20\text{ nC}Free vertical motion (yy)
Top sphere mass mm0.1 g0.1\text{ g} (10−4 kg10^{-4}\text{ kg})Subject to gravity gg
Coulomb constant kek_e8.988×109 N⋅m2/C28.988 \times 10^9\text{ N}\cdot\text{m}^2/\text{C}^2Permittivity of vacuum ε0\varepsilon_0
Equilibrium height yeqy_{\text{eq}}≈6.05 cm\approx 6.05\text{ cm}Measured from bottom sphere

Restoring force and oscillations

If the top sphere is displaced downward by a small distance Δy<0\Delta y < 0, the 1/y21/y^2 dependence causes the upward Coulomb force to surge:

Fnet≈−(2keq2yeq3)Δy=−keffΔyF_{\text{net}} \approx - \left(\frac{2 k_e q^2}{y_{\text{eq}}^3}\right) \Delta y = -k_{\text{eff}} \Delta y

This produces an effective spring stiffness keff=2mgyeqk_{\text{eff}} = \frac{2mg}{y_{\text{eq}}}. Because the restoring force always opposes displacement along the 1D guide axis, the sphere performs damped harmonic oscillations around the equilibrium position.

Try it

Comments