{"job_id":"anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32","request_id":"bulk-2026-05-20T10-21-44-856Z-22-physics.11.rotational-motion.angular-momentum-conservation","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32/scene-source.json","duration_seconds":15,"byte_size":480072,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-3ea8838a-f0b9-4810-9e98-2e719af81c32","request":{"gap":{"topic":"rotational_motion-angular_momentum_conservation","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Angular Momentum Conservation","common_wrong_answer":"The concept works the same way in all conditions.","confidence_at_error":"high","correct_understanding":"The concept depends on constraints, assumptions, and variable relationships."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"11","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Rotational Motion","ncert_class":11},"sub_topics":[{"topic":"rotational_motion-angular_momentum_conservation","key_concepts":["Angular Momentum Conservation","Rotational Motion"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-20T10-21-44-856Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-20T10-21-44-856Z-22-physics.11.rotational-motion.angular-momentum-conservation","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Angular Momentum Conservation"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"The concept works the same way in all conditions."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"The concept depends on constraints, assumptions, and variable relationships."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"Angular Momentum Conservation. Rotational Motion"}],"title":"Angular Momentum Conservation","sceneCode":"<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\"/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n  <title>Angular Momentum Conservation — Constraints Matter</title>\n  <style>\n    :root{--bg:#0e121a;--panel:#1c232e;--line:#303449;--accent:#fc884f;--text:#faf9f8;--muted:#9f9ea1;--blue:#627da5;--green:#8decb0;--red:#df8279;}\n    *{box-sizing:border-box;}\n    body{margin:0;font-family:\"Plus Jakarta Sans\",\"Manrope\",\"Inter\",ui-sans-serif,system-ui,sans-serif;background:radial-gradient(120% 90% at 20% -5%,#1c232e 0%,#0e121a 55%);color:var(--text);}\n    main{min-height:100vh;display:grid;grid-template-columns:minmax(300px,380px) 1fr;}\n    aside{border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(28,35,46,.86),rgba(14,18,26,.94));padding:24px;overflow:auto;backdrop-filter:blur(6px);}\n    section{padding:24px;display:grid;place-items:center;}\n    h1{margin:0 0 10px;font-size:1.65rem;line-height:1.15;}\n    .sub{margin:0 0 16px;color:var(--muted);}\n    .formula{margin:0 0 14px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#11191e;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(229,186,103,.08);}\n    .control{display:grid;gap:6px;margin:12px 0;}\n    .control input{width:100%;accent-color:var(--accent);}\n    ul{margin:14px 0 0 18px;padding:0;color:var(--muted);display:grid;gap:6px;}\n    .stage{width:min(1020px,95%);aspect-ratio:16/9;border:1px solid #445862;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#2f4a57,#0f1418 72%);box-shadow:0 18px 60px rgba(0,0,0,.45), inset 0 0 90px rgba(255,255,255,.03);}\n    .stage::before{content:\"\";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 34%);pointer-events:none;}\n    .legend{position:absolute;right:12px;top:12px;padding:8px 10px;border-radius:10px;border:1px solid #465a64;background:rgba(9,14,18,.58);font-size:0.8rem;color:var(--muted);backdrop-filter:blur(4px);}\n    .misconception{display:inline-block;width:18px;height:18px;border-radius:50%;background:#df8279;color:white;font-size:11px;font-weight:bold;text-align:center;line-height:18px;}\n    .correction{display:inline-block;width:18px;height:18px;border-radius:50%;background:#8decb0;color:#0e121a;font-size:11px;font-weight:bold;text-align:center;line-height:18px;}\n    .keyidea{display:inline-block;width:18px;height:18px;border-radius:50%;background:#627da5;color:white;font-size:11px;font-weight:bold;text-align:center;line-height:18px;}\n    @media(max-width:900px){main{grid-template-columns:1fr;}aside{border-right:0;border-bottom:1px solid var(--line);}}\n  </style>\n</head>\n<body>\n<main>\n  <aside>\n    <h1>Angular Momentum Conservation</h1>\n    <p class=\"sub\">Why torque matters — constraints change everything</p>\n    <p class=\"formula\">L = Iω (external τ = 0 → L constant)</p>\n    <label class=\"control\"><span>External Torque: <strong id=\"v-torque\">0.0</strong> N·m</span><input id=\"c-torque\" type=\"range\" min=\"0\" max=\"1\" step=\"0.1\" value=\"0\"/></label>\n    <label class=\"control\"><span>System Damping: <strong id=\"v-friction\">0.02</strong></span><input id=\"c-friction\" type=\"range\" min=\"0\" max=\"0.1\" step=\"0.01\" value=\"0.02\"/></label>\n    <label class=\"control\"><span>Initial ω: <strong id=\"v-omega0\">8</strong> rad/s</span><input id=\"c-omega0\" type=\"range\" min=\"2\" max=\"15\" step=\"1\" value=\"8\"/></label>\n    <ul>\n      <li><span class=\"misconception\">✕</span> \"Angular momentum always stays the same\"</li>\n      <li><span class=\"keyidea\">→</span> Conservation requires <strong>zero net external torque</strong></li>\n      <li><span class=\"correction\">✓</span> Torque changes L; friction acts like constraint</li>\n      <li><span class=\"keyidea\">→</span> Watch how τ ≠ 0 breaks conservation</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Ready</div>\n      <canvas id=\"sim-cv\" style=\"position:absolute;inset:0;width:100%;height:100%;\"></canvas>\n    </div>\n  </section>\n</main>\n<script>\nconst controls = [\n  {\"key\":\"torque\",\"label\":\"External Torque\",\"min\":0,\"max\":1,\"step\":0.1,\"value\":0,\"units\":\"N·m\"},\n  {\"key\":\"friction\",\"label\":\"System Damping\",\"min\":0,\"max\":0.1,\"step\":0.01,\"value\":0.02,\"units\":\"\"},\n  {\"key\":\"omega0\",\"label\":\"Initial ω\",\"min\":2,\"max\":15,\"step\":1,\"value\":8,\"units\":\"rad/s\"}\n];\nfor(const c of controls){\n  const inp=document.getElementById('c-'+c.key);\n  const out=document.getElementById('v-'+c.key);\n  inp?.addEventListener('input',()=>{out.textContent=inp.value;window.updateModel?.();});\n}\n(function(){\n  const cv=document.getElementById('sim-cv');\n  const ctx=cv.getContext('2d');\n  function resize(){const r=cv.getBoundingClientRect();if(r.width>0){cv.width=r.width;cv.height=r.height;}}\n  resize();new ResizeObserver(resize).observe(cv);\n  let lastTs=0;\n\n  // State variables\n  let omega = 8;          // angular velocity (rad/s)\n  let angularMomentum = 0;  // L = I*omega (normalized to 1 body)\n  let angle = 0;          // rotation angle\n  let torqueHistory = [];\n  let omegaHistory = [];\n  let lHistory = [];\n  let time = 0;\n  let phase = 0;          // 0=setup, 1=running\n\n  function glowDot(x,y,r,color,a){\n    const g=ctx.createRadialGradient(x,y,0,x,y,r*2.6);\n    const c1=color.replace('ALPHA',String(a));\n    const c2=color.replace('ALPHA','0');\n    g.addColorStop(0,c1);\n    g.addColorStop(1,c2);\n    ctx.fillStyle=g;ctx.beginPath();ctx.arc(x,y,r*2.6,0,Math.PI*2);ctx.fill();\n  }\n\n  function trail(points,color){\n    if(points.length<2)return;\n    ctx.strokeStyle=color;ctx.lineWidth=2;ctx.globalAlpha=0.4;\n    ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);\n    for(let i=1;i<points.length;i++)ctx.lineTo(points[i].x,points[i].y);\n    ctx.stroke();ctx.globalAlpha=1;\n  }\n\n  function arrow(x1,y1,x2,y2,color,width){\n    const dx=x2-x1,dy=y2-y1,l=Math.sqrt(dx*dx+dy*dy);if(l<2)return;\n    const nx=dx/l,ny=dy/l,s=width||10;\n    ctx.strokeStyle=color;ctx.lineWidth=width||2;ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();ctx.moveTo(x2,y2);ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);ctx.fill();\n  }\n\n  function drawRotatingDisk(cx,cy,r,angle,omega,torque,friction){\n    const rad=angle;\n    // Draw disk background\n    ctx.fillStyle='rgba(99,125,165,0.15)';ctx.beginPath();ctx.arc(cx,cy,r,0,Math.PI*2);ctx.fill();\n    // Draw rim segments\n    for(let i=0;i<12;i++){\n      const a=i*Math.PI/6+rad;\n      const x1=cx+Math.cos(a)*(r*0.4);\n      const y1=cy+Math.sin(a)*(r*0.4);\n      const x2=cx+Math.cos(a)*(r*0.9);\n      const y2=cy+Math.sin(a)*(r*0.9);\n      const col=i%2===0?'#8decb0':'#627da5';\n      ctx.strokeStyle=col;ctx.lineWidth=2;ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    }\n    // Draw center hub\n    ctx.fillStyle='#fc884f';ctx.beginPath();ctx.arc(cx,cy,r*0.15,0,Math.PI*2);ctx.fill();\n    glowDot(cx,cy,r*0.15,'rgba(252,136,79,ALPHA)',0.5);\n    // Arrows showing applied torque\n    if(Math.abs(torque)>0.01){\n      const arrowAng=Math.PI/3;\n      const x1=cx+Math.cos(arrowAng)*r*0.65;\n      const y1=cy+Math.sin(arrowAng)*r*0.65;\n      const mag=torque*50;\n      const x2=x1+Math.cos(arrowAng+Math.PI/2)*mag;\n      const y2=y1+Math.sin(arrowAng+Math.PI/2)*mag;\n      arrow(x1,y1,x2,y2,'#fc884f',3);\n    }\n    // Draw friction indicator\n    if(friction>0.005){\n      ctx.strokeStyle='rgba(223,130,121,0.6)';ctx.lineWidth=1;ctx.beginPath();\n      for(let i=0;i<6;i++){\n        const a=i*Math.PI/3;\n        const x=cx+Math.cos(a)*(r*0.85);\n        const y=cy+Math.sin(a)*(r*0.85);\n        ctx.moveTo(x-3,y);ctx.lineTo(x+3,y);\n      }\n      ctx.stroke();\n    }\n  }\n\n  function drawGraph(gx,gy,gw,gh,data,maxVal,color,label){\n    // Border\n    ctx.strokeStyle='#445862';ctx.lineWidth=1;ctx.strokeRect(gx,gy,gw,gh);\n    // Grid\n    ctx.strokeStyle='rgba(48,52,73,0.4)';ctx.lineWidth=1;\n    for(let i=0;i<=4;i++){\n      const yy=gy+gh/4*i;\n      ctx.beginPath();ctx.moveTo(gx,yy);ctx.lineTo(gx+gw,yy);ctx.stroke();\n    }\n    // Data line\n    if(data.length>1){\n      ctx.strokeStyle=color;ctx.lineWidth=2.5;ctx.beginPath();\n      for(let i=0;i<data.length;i++){\n        const xx=gx+gw*(i/(Math.max(1,data.length-1)));\n        const yy=gy+gh*(1-data[i]/maxVal);\n        if(i===0)ctx.moveTo(xx,yy);\n        else ctx.lineTo(xx,yy);\n      }\n      ctx.stroke();\n    }\n    // Label\n    ctx.fillStyle=color;ctx.font=Math.round(gw*0.08)+'px sans-serif';ctx.textAlign='left';\n    ctx.fillText(label,gx+6,gy+gh-4);\n  }\n\n  function tick(ts){\n    const dt=Math.min(0.04,(ts-lastTs)/1000);lastTs=ts;\n    const W=cv.width,H=cv.height;\n\n    // Read sliders\n    const extTorque=Number(document.getElementById('c-torque').value);\n    const damping=Number(document.getElementById('c-friction').value);\n    const omega0=Number(document.getElementById('c-omega0').value);\n\n    // Physics update\n    if(phase===0){\n      omega=omega0;\n      phase=1;\n    }\n\n    // Apply external torque and damping (friction is internal constraint)\n    const torqueDt=extTorque*dt;\n    const alphaDt=(torqueDt-damping*omega*dt);  // ΔL from torque minus damping\n    omega+=alphaDt;\n    omega=Math.max(0,omega);\n\n    // Update angular momentum (L = I*ω, I≈1 for visualization)\n    angularMomentum=omega;\n\n    // Update angle\n    angle+=omega*dt;\n\n    // Update time\n    time+=dt;\n\n    // History buffers (keep last 60 samples)\n    if(torqueHistory.length<60){\n      torqueHistory.push(Math.abs(extTorque));\n      omegaHistory.push(Math.max(0.1,omega));\n      lHistory.push(Math.max(0.1,angularMomentum));\n    } else {\n      torqueHistory.shift();torqueHistory.push(Math.abs(extTorque));\n      omegaHistory.shift();omegaHistory.push(Math.max(0.1,omega));\n      lHistory.shift();lHistory.push(Math.max(0.1,angularMomentum));\n    }\n\n    // Draw background\n    ctx.fillStyle='#0f1418';ctx.fillRect(0,0,W,H);\n    // Subtle grid\n    ctx.strokeStyle='rgba(48,52,73,0.15)';ctx.lineWidth=0.5;\n    for(let i=0;i<4;i++){\n      ctx.beginPath();ctx.moveTo(0,H/4*i);ctx.lineTo(W,H/4","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-20T11:58:24.973Z","cache_hit":false,"cost_usd":0},"error":null}