Posts

Showing posts from July, 2025

Electron Motion in a Electric Field

⚛️ Electron Motion in an Electric Field — Simulated in JavaScript What happens when an electron is fired horizontally across an electric field? This JavaScript code simulates that motion and shows how acceleration, velocity, and field strength interact — all calculated step by step! JavaScript Code: (() => { // ⚛️ Electron Properties const masselectron = 9.10938e-28; // g const chargeElectron = 4.8032e-10; // statC // 🚀 Initial Conditions const horizVel = 1e09; // cm/s const horizDist = 2.0; // cm const downwardAcc = -1e17; // cm/s² // ⏱️ Time to travel horizontal distance const timeReqd = horizDist / horizVel; console.log(`⏱️ Time taken by electron to travel ${horizDist} cm: ${timeReqd.toExponential(2)} s`); // 📉 Vertical motion due to electric field const vertDist = 0.5 * downwardAcc * timeReqd ** 2; const vertVel = downwardAcc * timeReqd; // ⚡ Electric field calculation const electricField = Math.abs(downwardAcc) * masselectron / chargeE...

✈️ Jet Takeoff Physics Simulator – Interactive Post

This simulation models the takeoff of a jumbo jet using basic physics equations. When you click the button, it calculates the required acceleration and time to take off from a 1.8 km runway at a final speed of 360 km/h. It also displays how the velocity and position change during takeoff. 🚀 Calculate Takeoff 🧠 JavaScript Code Used in This Simulation // Unit conversion functions const kmphToMps = kmph => (kmph * 1000) / 3600; const kmToM = km => km * 1000; // Jet and motion parameters const jet = "Jumbo"; const initialVel = 0; const finalVelKmph = 360; const runwayLenKm = 1.8; // Convert to SI units const finalVelMps = kmphToMps(finalVelKmph); const runwayLenM = kmToM(runwayLenKm); // Calculate acceleration and time to take off const acc = (finalVelMps ** 2) / (2 * runwayLenM); // a = v^2 / 2s const timeTaken = finalVelMps / acc; // t = v / a // Smart step generation const timeInt = Math.floor(timeTaken); const timeSteps = (timeInt % 2 ==...