EM Field
em_fieldCalculate exact magnetic field strength for a long straight wire or solenoid from current, distance, or turn density, returning values in tesla and millitesla without a solver.
Instructions
Exact magnetostatic field of the two canonical sources (NO solver):
kind='wire' is the long straight wire B = μ₀·I/(2π·r) at distance_mm
(Ampère's law); kind='solenoid' is the long-solenoid interior
B = μ₀·μ_r·n·I with turns_per_m.
Returns {b_t, b_mt, …} (the field in tesla and millitesla).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "em_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | wire | |
| mu_r | No | ||
| current_a | No | ||
| workspace | No | Run this call in this named workspace | |
| distance_mm | No | ||
| turns_per_m | No |