Skip to main content
Glama
IBM

Physics MCP Server

by IBM

check_energy_conservation

Verify conservation of mechanical energy in physics processes by comparing initial and final kinetic/potential energy values. Validates simulation accuracy and accounts for expected energy losses from friction or damping.

Instructions

Verify conservation of energy in a physics process.

Checks whether total mechanical energy is conserved (or correctly dissipated).
Useful for validating simulation results and understanding energy transfer.

Args:
    initial_kinetic_energy: Initial KE in Joules
    final_kinetic_energy: Final KE in Joules
    initial_potential_energy: Initial PE in Joules
    final_potential_energy: Final PE in Joules
    expected_energy_loss: Expected energy loss (from friction, etc.) in Joules
    tolerance: Tolerance for conservation check (fraction, default 0.01 = 1%)

Returns:
    Dict containing:
        - initial_total_energy: Initial total energy in Joules
        - final_total_energy: Final total energy in Joules
        - energy_difference: Energy difference in Joules
        - energy_difference_percent: % difference
        - is_conserved: Whether energy is conserved within tolerance
        - expected_loss: Expected energy loss in Joules
        - actual_loss: Actual energy loss in Joules

Tips for LLMs:
    - In isolated systems, total energy is conserved
    - With friction/damping, expect energy loss
    - Small numerical errors are normal in simulations
    - Use to validate simulation accuracy

Example - Bouncing ball with energy loss:
    result = await check_energy_conservation(
        initial_kinetic_energy=0,
        final_kinetic_energy=0,
        initial_potential_energy=10,  # J (at 1m height)
        final_potential_energy=6.4,  # J (bounced to 0.64m)
        expected_energy_loss=3.6,  # 36% loss (e=0.8)
        tolerance=0.01
    )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
initial_kinetic_energyYes
final_kinetic_energyYes
initial_potential_energyYes
final_potential_energyYes
expected_energy_lossNo
toleranceNo

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IBM/chuk-mcp-physics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server