Scripting API
Python API and command line: build, solve and post-process models from code.
te10_studio.api builds, solves and post-processes TE10 Studio models from Python. It uses the same
project files as the app, so a scripted model opens in the app and a model drawn in the app opens in a
script. The te10 command runs scripts and solves from a terminal.
from te10_studio import api as em
prj = em.Project("waveguide", units="mm")
air = prj.modeler.box("Air", size=(22.86, 10.16, 50), origin=(-11.43, -5.08, 0))
prj.excitations.wave_port("P1", air.face("-z"))
prj.excitations.wave_port("P2", air.face("+z"))
result = prj.setups.driven("S1", start=8, stop=12, step=0.5).solve(cores=4)
result.write_touchstone("waveguide.s2p")
Start with the quick start. The reference lists every public name on one page.
Using an AI assistant? Give it /docs/api/llms-full.txt (this whole
section as one Markdown file), or any page's View as Markdown link. /llms.txt indexes all
of the documentation.
Quick startRun your first script, the objects of the API, how values and units work, and the rules every script follows.Values and unitsHow the API reads numbers, unit strings and expressions of design variables, and what units it returns.Projectem.Project — create, open, save and validate projects; variables and datasets; materials; overlap rule; jobs.Modelerprj.modeler and Object — create solids, sheets and curves; import CAD, GDS and meshes; faces; transforms, booleans, sweeps; folders; overlaps; picks and the working coordinate system.Excitations and boundariesprj.excitations (wave, lumped, discrete and Floquet ports, plane waves) and prj.boundaries (PEC, PMC, radiation, conductivity with roughness, impedance, periodic), plus field monitors and probes.Mesh rulesprj.mesh — length-based, skin-depth and surface-approximation mesh rules on faces and objects.Setups and solvingprj.setups (driven and eigenmode), Setup.solve and Setup.submit, backends (local, clusters, cloud, export), Job, frequency sweep types, adaptive meshing, mesh reuse and raw Palace overrides.ResultsResult — S-parameters, scikit-rf networks, Touchstone, eigenmodes, field solutions, far-field patterns, radar cross-section, RLGC, logs; and the results folder layout.Post-processingte10_studio.postprocess.networks (traces, renormalisation, de-embedding, mixed mode, passivity, causality, TDR, Touchstone) and te10_studio.postprocess.channel (port maps, insertion/return loss, NEXT/FEXT, mode conversion, skew).Clusters and cloudem.clusters — add, test, refresh, share and remove HPC cluster profiles from Python; JobSpec resources; cloud solves on AWS.RF tools and material libraryte10_studio.rftools (transmission-line calculators, builders for common RF structures, port planning, the tool catalogue) and te10_studio.core.material_library (about 2,400 sourced materials).Command lineThe te10 command — run scripts, solve projects, list and manage jobs, clusters, cloud, the license and the local solver.ExamplesComplete scripts — waveguide, microstrip, parametric sweep, eigenmodes, build123d shapes, optimisation, cluster jobs and raw solver settings.ReferenceEvery public class, method and property of te10_studio.api, plus the post-processing, RF tool and material library functions, with signatures and types.