{
  "title": "Ideal generator and phase-change energy ledgers",
  "status": "Analytical hypothetical teaching model, not measured performance",
  "parameters": {
    "generator_torque_Nm": 1,
    "efficiencies": [
      0,
      0.5,
      0.8,
      1
    ],
    "rpm_range": [
      0,
      600
    ],
    "rpm_step": 5,
    "specific_heat_J_kg_K": 800,
    "initial_temperature_C": 20,
    "transition_temperature_C": 120,
    "latent_heat_J_kg": 200000,
    "mass_kg_range": [
      0,
      5
    ],
    "mass_step_kg": 0.05,
    "absorbed_power_W": [
      100,
      500,
      1000
    ]
  },
  "equations": {
    "omega": "rpm*2*pi/60",
    "mechanical_input": "torque*omega",
    "electrical_output": "efficiency*mechanical_input",
    "loss": "(1-efficiency)*mechanical_input",
    "sensible_heat": "mass*c*(transition_temperature-initial_temperature)",
    "latent_heat": "mass*latent_specific_heat",
    "ideal_completion_time": "(sensible_heat+latent_heat)/absorbed_power"
  },
  "rows": {
    "generator": 484,
    "heating": 303
  },
  "examples": {
    "generator_600rpm": {
      "rpm": 600,
      "torque_Nm": 1,
      "efficiency": 0.8,
      "omega_rad_s": 62.83185307179586,
      "input_W": 62.83185307179586,
      "electrical_W": 50.26548245743669,
      "loss_W": 12.566370614359169
    },
    "heating_1kg_500W": {
      "mass_kg": 1,
      "absorbed_power_W": 500,
      "sensible_J": 80000,
      "latent_J": 200000,
      "total_J": 280000,
      "time_s": 560.0
    }
  },
  "limits": [
    "The assigned generator efficiency is constant and not derived from machine physics. No startup, storage, field excitation supply or speed-dependent losses are resolved.",
    "The mechanical power ledger describes nonnegative steady magnitudes, not signed motor/generator reversal.",
    "Heating assumes a hypothetical inert nonreacting material, constant specific heat, a single sharp transition, and completion of that phase change. No real rock properties are claimed.",
    "Absorbed heating power is power delivered to the sample. Wall-plug power, coupling losses, container heat capacity and environmental losses are excluded.",
    "The heating calculation stops at the specified endpoint. It is not a temperature-time simulation beyond phase completion.",
    "No excavation geometry, gas generation, melt transport, cooling, material performance, cost or emissions result is computed.",
    "For positive energy and zero absorbed power there is no finite completion time; null is returned. Zero mass requires zero energy and zero time."
  ],
  "checks": {
    "all_pass": true,
    "generator_work_per_revolution_max_difference_W": 7.105427357601002e-15,
    "row_conservation_checked": 484,
    "heat_integral_and_power_time_checked": 303,
    "zero_power_and_zero_mass_checked": true,
    "invalid_cases_rejected": 8
  },
  "sources": [
    {
      "title": "NASA: The Dynamo Process",
      "url": "https://pwg.gsfc.nasa.gov/Education/dynamos.htm",
      "scope": "Mechanical source of generator energy; no efficiency value adopted"
    }
  ]
}
