AxTidy3D_execute_code
Run Tidy3D simulations: execute Python code locally for free results, or submit to cloud to receive a cost estimate and get confirmation before starting the actual run.
Instructions
Execute Tidy3D code. Local operations (e.g. ModeSolver.solve()) run for free and return results synchronously via export(name, value). Code that calls submit_to_cloud(sim) instead uploads the simulation and returns a cost estimate (task_id, task_status='estimated', estimated_cost_flex_credits) WITHOUT starting the run — nothing is billed at this point. Show the estimated cost to the user and get their confirmation, then call start_simulation with the returned task_id to actually run it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Tidy3D Python code to execute |