PhysSandbox
Mecânica clássicaOndas e somEletricidade e magnetismoÓptica e luzGravidade e órbitasLaboratóriosAulas
🌙Astronomia e o céu🌡️Termodinâmica🌍Biofísica, fluidos e geociências📐Visualização matemática🔧Engenharia🧪Química
PTENRUESFRDE

Simuladores relacionados

Continue com temas próximos desta categoria — ou todos os 47 em «Termodinâmica».

Toda a categoria →
PopularEscola

Gás ideal

Abrir o simulador

Partículas numa caixa: equação de estado PV = nRT; pressão e temperatura ao mudar o número de partículas e o volume.

Escola

Leis dos gases

Abrir o simulador

Leis de Boyle–Mariotte, de Charles e de Gay-Lussac com pistão móvel: dependências P(V), V(T) e P(T).

NovoEscola

Ciclo Stirling

Abrir o simulador

Diagrama p–V: duas isotermas e duas isócoras; o rendimento ideal iguala o de Carnot com regenerador perfeito.

NovoEscola

Distribuição de Maxwell–Boltzmann

Abrir o simulador

Histograma do módulo da velocidade |v| a partir de componentes gaussianas, comparado à densidade de probabilidade de Maxwell em 3D; temperatura e tamanho da amostra.

NovoEscola

Expansão de Joule

Abrir o simulador

Gás ideal no vácuo: Q = W = ΔU = 0; ΔS = nR ln 2 quando o volume dobra.

NovoEscola

Mistura de gases e entropia

Abrir o simulador

Dois gases separados, depois misturados; ΔS = 2nR ln 2 para volumes e quantidades de matéria iguais.

PhysSandbox

Simuladores interativos de física, química e engenharia para alunos, professores e para quem tem curiosidade.

Física

  • Mecânica clássica
  • Ondas e som
  • Eletricidade e magnetismo

Ciência

  • Óptica e luz
  • Gravidade e órbitas
  • Astronomia e o céu

Mais

  • Termodinâmica
  • Biofísica, fluidos e geociências
  • Visualização matemática
  • Engenharia
  • Química

© 2026 PhysSandbox. Simuladores científicos interativos e gratuitos.

PrivacidadeTermosContato
Início/Termodinâmica/Gas Pressure: Molecules Hitting the Walls

Gas Pressure: Molecules Hitting the Walls

Start with 1 molecule and watch each wall hit; add molecules, move the piston, heat up — PV/(NT) stays constant.

Gas

1
300 K
1 × max

Molecule mass

View

Start with one molecule: every flash on the piston is one hit, and the gauge jumps with each hit. Add molecules and the hits blur into a steady pressure. Pressure averages reset whenever you change N, T, the piston or the mass. Slow motion does not change the measured pressure — it is computed in simulation time.

Atalhos de teclado

  • •Space / Enter — play / pause
  • •R — reset (new random molecules)
  • •Drag the piston on the canvas to change the volume

Grandezas medidas

Hits on piston per second0.01/s
Pressure on piston (0.5 s window)0.00rel.
Pressure on piston (average since reset)0.00rel.
Pressure, all walls (average)0.00rel.
Kinetic theory P = NkT/V1.00rel.
PV/(N·T) (normalised, should stay ≈ 1)—
N1
T300K
Volume (relative)1.00× max
Mean speed0.00box/s
v_rms = √(2kT/m)2.40box/s
Averaging time0.0s

Sobre o modelo

Up to 400 hard-sphere molecules move in a two-dimensional box whose right wall is a piston that can be dragged or set with the slider (0.4–1.0 of the full width). Molecules bounce elastically off the walls and off each other, so the total kinetic energy is conserved; temperature sets the speed scale through ½m⟨v²⟩ = kT (the two-dimensional form), and switching from light to heavy molecules (4×) halves the speeds at the same T. Every wall hit transfers an impulse 2m|v⊥| to that wall and is drawn as a flash. Pressure on the piston is the sum of those impulses over the last 0.5 s divided by the time window and the wall length — with one molecule it is a sequence of isolated kicks, with hundreds of molecules a steady value. Pressure is reported in relative units where 1 means one molecule at 300 K in the full box, so kinetic theory predicts P = N·(T/300 K)/V_rel, and the readout PV/(N·T) should stay near 1 whatever you change. The averages restart whenever N, T, the piston or the mass changes. A lone molecule never thermalises, so it is launched at about 45° to make ⟨v_x²⟩ = ⟨v_y²⟩; with two or more, collisions randomise the directions. The model omits gravity, attraction between molecules, rotation and vibration, and a moving piston does no work on the gas (its position changes instantly, with speeds unchanged). Because the spheres have a finite size, the measured PV/(NT) sits a few per cent above 1 at 400 molecules — a first hint of the van der Waals excluded volume. For the macroscopic gas-law view see the existing thermodynamics/ideal-gas and thermodynamics/gas-laws simulators.

Para quem: Grades 7–9 physics and chemistry, first meeting the particle model of gases and the idea that pressure is caused by molecular collisions.

Conceitos-chave

  • Gas pressure
  • Kinetic theory
  • Impulse 2m|v⊥|
  • Elastic collision
  • Piston / volume
  • Temperature and molecular speed
  • Ideal gas law PV = NkT

Como funciona

Hard-sphere molecules fly around a 2D box and bounce elastically off the walls. Each time a molecule hits a wall it gives the wall a push (impulse 2m|v⊥|); pressure is the total push per second divided by the wall length. With one molecule the pressure is a series of isolated kicks; with hundreds of molecules the kicks merge into a steady value equal to NkT/V. Doubling N, halving the volume with the piston, or doubling T each double the pressure, so PV/(NT) stays constant — the ideal-gas law emerging from collisions.

Fórmulas principais

one hit on a wall: Δp = 2 m |v⊥|
P = (Σ Δp over time τ) / (τ · wall length)
½ m ⟨v²⟩ = k T (2D) → P V = N k T

Perguntas frequentes

Why does the pressure jump up and down with one molecule but stay steady with 400?
Pressure is just the total push on the wall per second. One molecule pushes only at the instant it hits, roughly once a second, so the 0.5 s average is zero between hits and a spike at each hit. Hundreds of molecules hit the piston hundreds of times a second, and the kicks blur into a steady force — that is what a pressure gauge on a bicycle tyre feels.
Why does doubling the temperature double the pressure, not multiply it by four?
Doubling T doubles the kinetic energy, so speeds grow by √2. Each hit then delivers √2 times more impulse, and the molecule crosses the box √2 times faster so it hits √2 times more often. The two factors together give √2 × √2 = 2.
Why does pushing the piston in raise the pressure?
With the box half as wide, each molecule reaches the piston twice as often, so the number of hits per second doubles while the impulse of each hit is unchanged. Halving V doubles P at constant N and T — Boyle's law, which the readout PV/(NT) ≈ 1 confirms.
Why does changing the mass not change the pressure?
At the same temperature a heavy molecule moves more slowly: m is 4× larger, so v is 2× smaller. The impulse per hit 2mv is doubled, but the hit rate is halved, and the product is the same. Pressure depends only on N, T and V — that is why air and helium at the same N, T, V have the same pressure.