Documentation

Docs / Scripting API

Reference#

Generated from the source of API version 0.1.0. Type shorthands: Value = a number (project units for lengths, GHz for frequencies) or a string with units or an expression; Vec3 = three Values; Faces = one FaceRef or a list of them. Methods that change an Object return it.

Exported by te10_studio.api: API_VERSION, ClusterProfile, clusters, Job, JobSpec, JobState, Object, Project, Result, Setup.

Project#

A model you build, solve and post-process from Python. The same .te10 files as the GUI, so a scripted model opens in the app and the other way round. Results go in <name>.te10results next to the saved file.

Attributes: modeler, variables, materials, boundaries, excitations, mesh, setups, compute, picks, wcs.

  • Project(name: str = "Project", units: str = "mm")
  • name property
  • units property
  • core property: The underlying project object (internal API; may change between versions).
  • from_palace(config_path: str, name: Optional[str] = None) -> Project classmethod: A project from a Palace model: the configuration (.json) and the mesh it names, rebuilt as geometry with its materials, boundaries, ports and setup (te10_studio/importers/palace_importer.py). What could not be carried over is in prj.import_notes.
  • open(path: str) -> Project classmethod
  • attach(core: TE10Project, on_change=None) -> Project classmethod: Wraps a project that is open in the GUI (the Python console's prj).
  • overlap_rule (settable) property: Which of two overlapping objects with equal priority owns the overlap: "earlier" (the one created first; the default) or "later" (the newer one, as when a shape is inserted).
  • save(path: str) -> str: Saves the .te10; later solves keep their results in .te10results next to it.
  • validate() -> List[str]: Validation errors (empty when the model is ready to solve).
  • sweep(values: Dict[str, Iterable], setup: Union[str, Setup, None] = None, backend="local", cores: Optional[int] = None, **resources) -> Job: Parametric sweep over the Cartesian product of variable values, e.g. prj.sweep({"w": ["2mm", "3mm", "4mm"]}, "S1", backend="my-slurm") (a job array on schedulers).
  • jobs() -> List[Job]: Saved jobs (also those started from the GUI), to check or collect after reopening.

Variables (prj.variables)#

prj.variables["w"] = "3mm"; prj.variables["w"] -> 0.003 (SI).

  • __setitem__(name: str, expression: Union[str, float])
  • __getitem__(name: str) -> float
  • __delitem__(name: str)
  • __contains__(name: str) -> bool
  • expression(name: str) -> str
  • items()
  • dataset(name: str, points=None): prj.variables.dataset("er", [(1e9, 4.4), (10e9, 4.2)]) defines a dataset (SI numbers), used in expressions as pwl(er, x); without points, returns the stored points.

Materials (prj.materials)#

prj.materials["copper"]; prj.materials.add("Rogers4003", permittivity=3.55, loss_tangent=0.0027).

  • __getitem__(name: str)
  • names() -> List[str]
  • add(name: str, permittivity: float = 1.0, permeability: float = 1.0, conductivity: float = 0.0, loss_tangent: float = 0.0, is_pec: bool = False, djordjevic_sarkar_at: Union[str, float, None] = None, ds_f_low: Union[str, float] = 1000.0, ds_f_high: Union[str, float] = 1000000000000.0, ds_sigma_dc: float = 0.0): A material. djordjevic_sarkar_at (a frequency: "1GHz", or a number in GHz) makes it frequency-dependent: permittivity and loss_tangent are then the values at that frequency, and the Djordjevic-Sarkar model (poles between ds_f_low and ds_f_high, in Hz unless given with a unit, plus an optional DC conductivity in S/m) gives them elsewhere.
  • set_roughness(name: str, model: Optional[str], radius: Value = None, surface_ratio: Optional[float] = None, area_ratio: float = 1.0, rms: Value = None): Surface roughness of a metal: every conductivity surface made from it (solids of this material) gets it. model "huray", "hammerstad", "groisse" or None (smooth); the other arguments as for boundaries.conductivity.
  • import_amat(path: str) -> List[str]: Adds the materials in an Ansys Electronics Desktop library (.amat). Returns the names added (a name already used by a different material gets a numbered suffix).
  • import_mtd(*paths: str) -> List[str]: Adds the materials of CST material files (.mtd). Returns the names added.
  • export_mtd(folder: str, names: Optional[Sequence[str]] = None) -> List[str]: Writes materials (all of the project's, or names) as CST material files (.mtd), one per material, into folder. Returns warnings.
  • export_amat(path: str, names: Optional[Sequence[str]] = None) -> List[str]: Writes materials (all of the project's, or names) as an .amat library. Returns warnings.

Modeler (prj.modeler)#

prj.modeler: create and look up objects. Positions and sizes in project units.

  • __getitem__(name: str) -> Object: An object by name, or by "folder:name".
  • __contains__(name: str) -> bool
  • __iter__() -> Iterator[Object]
  • names() -> List[str]
  • folders() -> List[str]: Every model folder ("a/b"), parents before children.
  • new_folder(path: str) -> str: Creates a folder (and its parents); returns its canonical path.
  • rename_folder(old: str, new: str) -> str: Renames or moves a folder with everything in it.
  • delete_folder(path: str, delete_objects: bool = False) -> List[str]: Removes a folder; its objects are deleted, or (by default) move up to the parent folder.
  • in_folder(path: str, recursive: bool = True) -> List[Object]: The objects in a folder (and its subfolders when recursive).
  • box(name: str, size: Vec3, origin: Vec3 = (0, 0, 0), material: str = "vacuum", priority: int = 0) -> Object: Box with a corner at origin and edge lengths size (negative sizes extend the other way).
  • cylinder(name: str, radius: Value, height: Value, origin: Vec3 = (0, 0, 0), axis: str = "z", material: str = "vacuum", priority: int = 0) -> Object: Cylinder whose base circle is centered at origin, extending height along axis.
  • sphere(name: str, radius: Value, center: Vec3 = (0, 0, 0), material: str = "vacuum", priority: int = 0) -> Object
  • rectangle(name: str, size: Vec3, origin: Vec3 = (0, 0, 0), plane: str = "xy", material: str = "vacuum") -> Object: Rectangular sheet with a corner at origin in the XY / YZ / ZX plane (size: the two in-plane lengths).
  • circle(name: str, radius: Value, center: Vec3 = (0, 0, 0), plane: str = "xy", material: str = "vacuum") -> Object
  • cone(name: str, bottom_radius: Value, top_radius: Value, height: Value, origin: Vec3 = (0, 0, 0), axis: str = "z", material: str = "vacuum", priority: int = 0) -> Object: Cone (or truncated cone) whose base circle (bottom_radius) is centered at origin, extending height along axis to the top circle (top_radius, 0 for a point).
  • torus(name: str, major_radius: Value, minor_radius: Value, center: Vec3 = (0, 0, 0), axis: str = "z", material: str = "vacuum", priority: int = 0) -> Object: Torus centered at center, its ring around axis.
  • loft(name: str, profiles: Sequence[Object], ruled: bool = False, material: str = "vacuum", priority: int = 0) -> Object: A solid through two or more sheets (or closed curves), in order; it follows later profile edits.
  • polyline(name: str, points: Sequence[Vec3], closed: bool = False, cover: bool = False, material: str = "vacuum") -> Object: Straight segments through points (a curve, for paths and sweeps). closed joins the last point to the first; cover also fills it, making a planar sheet. Points may use variables.
  • add(name: str, shape, material: str = "vacuum", priority: int = 0, kind: Optional[str] = None) -> Object: Adds any build123d shape, drawn in project units (it is scaled to meters). Use build123d for anything the primitives above don't cover: sketches, lofts, sweeps, fillets, imports.
  • import_step(path: str, material: Optional[str] = None, heal: bool = True, unit: str = "mm") -> List[Object]: Imports a CAD file: STEP or IGES (their own units are honored), BREP or STL (no unit in the file: unit, default mm). Its solids, and any surfaces that don't close as sheets. heal repairs the file first (sewing, small defects). material overrides the guess from the names. STL triangles in one plane are merged into single faces; curved surfaces stay faceted.
  • import_cad(path: str, material: Optional[str] = None, heal: bool = True, unit: str = "mm") -> List[Object]: Imports a CAD file: STEP or IGES (their own units are honored), BREP or STL (no unit in the file: unit, default mm). Its solids, and any surfaces that don't close as sheets. heal repairs the file first (sewing, small defects). material overrides the guess from the names. STL triangles in one plane are merged into single faces; curved surfaces stay faceted.
  • import_gds(path: str, layers: Dict[Any, Dict[str, Any]], cell: Optional[str] = None, substrates=(("Silicon", "525um"),), vacuum_above: Value = "500um", vacuum_below: Value = 0, margin: Value = 0, min_edge: Value = "1um") -> List[Object]: Imports a GDSII / OASIS layout as a 3D chip (te10_studio/importers/gds_importer.py). layers maps (layer, datatype) (or "L1/0") to a dict of GdsLayerRole fields: role ('metal', 'solid', 'outline', 'ignore'), negative, z, thickness (lengths as values or strings like "200nm"), material, boundary ('PEC', 'Conductivity', 'None'), film_thickness. Layers left out are ignored. substrates: (material, thickness) top first, below z = 0. min_edge: outline points closer than this are merged, sharp corners kept (0 = exact; arcs exported as tiny segments otherwise force tiny mesh elements).
  • import_mesh(path: str, unit: str = "mm") -> List[Object]: A volume mesh (.msh, .vtu, ...) as geometry: a solid per region, sheets for inner tagged surfaces, and a named selection per tagged surface (te10_studio/importers/mesh_importer.py).

Object#

A solid, sheet or curve in the model. Lengths read and written in project units.

  • name (settable) property
  • kind property: 'solid', 'sheet', 'wire' or 'point'.
  • shape property: The build123d shape (meters).
  • material (settable) property: Material name ("(protected)" for locked parts of an encrypted 3D model).
  • solve_inside (settable) property: Whether the field is solved inside this object (meshed, with the material's conductivity as a volume loss). Default: off for PEC and conductors (sigma >= 1e5 S/m: a surface impedance on their faces instead), on for everything else. Set True/False to override, None for the default; assigning a material resets it to the default.
  • priority (settable) property: Mesh priority: where objects overlap, the higher one wins.
  • folder (settable) property: The model folder the object is in ("a/b"; "" = top level). Setting it moves the object, creating the folder if needed.
  • qualified_name property: "folder/sub:name", the name with its folder ("name" at the top level).
  • model (settable) property: False for construction geometry (not meshed).
  • history property
  • volume property
  • area property
  • bounding_box() -> Tuple[Tuple[float, float, float], Tuple[float, float, float]]
  • faces(normal: Optional[str] = None) -> List[FaceRef]: All faces, or the planar faces whose normal points along normal ('z', '+x', '-y', ...).
  • face(selector: Optional[str] = None, nearest: Optional[Vec3] = None, index: Optional[int] = None) -> FaceRef: One face: face("+z") is the face on the +z side (largest z, normal +z); face(nearest=(x, y, z)) the face closest to a point (project units); face(index=i) by index.
  • move(vector_: Vec3) -> Object
  • rotate(axis: str, angle_deg: Value) -> Object
  • mirror(origin: Vec3, normal: Sequence[float]) -> Object
  • subtract(*tools: Object, keep_tools: bool = False) -> Object
  • shell(thickness: Value, inside: bool = True, open_faces: Sequence[FaceRef] = ()) -> Object: Hollows the solid: walls thickness thick inside (or outside) its surface; open_faces (e.g. [obj.face("+z")]) are removed.
  • trace(name: str, width: Value, thickness: Value, material: str = "copper") -> Object: A trace of width x thickness along this curve (it follows later edits of the curve).
  • insert() -> List[Object]: Cuts this solid out of every solid it overlaps (it stays whole); returns the changed objects.
  • unite(*tools: Object) -> Object
  • intersect(*tools: Object) -> Object
  • delete() -> None
  • sweep_along_vector(vector_: Vec3) -> Object: Extrudes a sheet (into a solid) or a curve (into a sheet) along vector_.
  • sweep_around_axis(axis: str, angle_deg: Value = 360) -> Object: Revolves a sheet or a curve about the global X, Y or Z axis.
  • sweep_along_path(path: Object) -> Object: Sweeps a sheet or a curve along another object, a curve (e.g. from modeler.polyline).
  • thicken(thickness: Value) -> Object: Turns a sheet into a solid of the given thickness (negative: to the other side).
  • cover() -> Object: Fills a closed planar curve, making it a sheet.

Boundaries (prj.boundaries)#

prj.boundaries.pec / pmc / radiation / conductivity / impedance / periodic.

  • pec(name: str, faces: Faces = None, object: Optional[Object] = None)
  • pmc(name: str, faces: Faces = None, object: Optional[Object] = None)
  • radiation(name: str, faces: Faces = None, object: Optional[Object] = None): Absorbing boundary; object=airbox puts it on every face of the air region.
  • conductivity(name: str, conductivity: float, faces: Faces = None, object: Optional[Object] = None, thickness: Value = None, roughness: Optional[str] = None, radius: Value = None, surface_ratio: Optional[float] = None, area_ratio: float = 1.0, rms: Value = None): Lossy metal surface. roughness adds surface roughness: "huray" (nodule radius and surface_ratio = N·4πa²/A_hex, optional area_ratio = A_matte/A_flat), or "hammerstad" / "groisse" (RMS roughness rms). Lengths take project units or a unit ("0.5um").
  • impedance(name: str, rs: float = 0.0, ls: float = 0.0, cs: float = 0.0, faces: Faces = None, object: Optional[Object] = None)
  • periodic(name: str, primary: FaceRef, secondary: FaceRef, phase_deg: float = 0.0): Periodic pair: secondary must be a translated copy of primary (e.g. the -x and +x faces of a unit cell). phase_deg is the phase delay of the secondary face relative to the primary.

Excitations (prj.excitations)#

prj.excitations.wave_port / lumped_port / plane_wave. The first port added is excited.

  • wave_port(name: str, faces: Faces, modes: int = 1, active: Optional[bool] = None, impedance: float = 50.0, ground: Sequence[str] = (), signal: Sequence[str] = (), deembed: Value = None, renormalize: Optional[float] = None, line: Optional[Sequence[Vec3]] = None, terminals: Optional[Sequence[Sequence[Vec3]]] = None, results: str = "modal"): A wave port. line: the integration line [signal point, ground point] on the port face; or ground / signal: conductor object names it is drawn between (either is needed for Z_PV and renormalising). deembed: distance ("5mm" or meters) the reference plane moves into the model; renormalize: impedance in ohms the results are referenced to. Several conductors (modes > 1): results="terminal" gives one S-parameter port per terminal (a terminal solution; differential pairs then follow from mixed-mode conversion) instead of one per mode. The terminals are terminals, one line [signal point, ground point] per mode, or else one per signal conductor over the ground ones. Terminals are named _T1, ...
  • lumped_port(name: str, faces: Faces, resistance: float = 50.0, direction: str = "+X", active: Optional[bool] = None, renormalize: Optional[float] = None)
  • floquet_port(name: str, face: FaceRef, active: Optional[bool] = None, polarization: str = "TE", max_order: int = 1, theta: float = 0.0, phi: float = 0.0, reference_frequency: Value = 0): A plane-wave port on a periodic unit cell's boundary face (needs periodic boundaries). The excited port's incidence (theta from the normal, phi in the port plane, degrees) holds at reference_frequency (default: the sweep centre) and scales with frequency.
  • plane_wave(name: str, theta: float = 0.0, phi: float = 0.0, polarization="theta", amplitude: Value = 1.0, direction: Optional[Sequence[float]] = None): An incident plane wave arriving from (theta, phi) in degrees, or travelling along direction ([kx, ky, kz]). polarization: "theta" / "phi" (with angles), an angle in degrees from theta-hat towards phi-hat, or an E-field vector. amplitude in V/m ("2V/m" or a number). Needs a first-order radiation boundary around the model and TE10's Palace build.
  • discrete_port(name: str, start: Vec3, end: Vec3, width: Value = None, resistance: float = 50.0, active: Optional[bool] = None): A lumped port on a narrow strip (default: a tenth of the gap wide) between two points; the current runs from start to end.

MeshOperations (prj.mesh)#

prj.mesh.length_on / length_inside / skin_depth / surface_approximation: controls on the initial mesh. objects= takes objects (or their names); lengths take units like the modeler.

  • __getitem__(name: str)
  • names() -> List[str]
  • __delitem__(name: str)
  • length_on(max_length: Value, faces: Faces = None, objects=None, name: Optional[str] = None): No surface triangle on the faces (or on the surface of the objects) longer than max_length.
  • length_inside(max_length: Value, objects, name: Optional[str] = None): No element inside the objects longer than max_length. Non-model objects are refinement regions.
  • skin_depth(faces: Faces = None, objects=None, layers: int = 2, max_length: Value = None, skin_depth: Value = None, name: Optional[str] = None): Conductor surface refinement; skin_depth=None computes it from the material and frequency.
  • surface_approximation(faces: Faces = None, objects=None, max_deviation: Value = None, normal_deviation_deg: float = 15.0, max_length: Value = None, name: Optional[str] = None): Shorter elements on curved faces: facets within max_deviation (sag) and the normal angle.

Setups (prj.setups)#

  • __getitem__(name: str) -> Setup
  • names() -> List[str]
  • driven(name: str, start: Value, stop: Value, step: Value = None, points: Optional[int] = None, sweep: str = "uniform", order: int = 2, cores: int = 4, linear_tol: Optional[float] = None, save_fields: str = "solution", far_field: str = "solution", min_solved: Value = None) -> Setup: Frequency sweep; numbers are GHz ("2.4GHz" / "800MHz" also work). start = 0 gives a fitted DC point: Palace solves down to min_solved (default: chosen from the model) and the 0 Hz S-matrix is fitted from the lowest solves (te10_studio.solver.dc_point). sweep: 'uniform', 'adaptive' (Palace's reduced model) or 'interpolating' (a few dozen solves, S-parameters fitted); the older 'adaptive-ports' and 'adaptive-exact-ports' mean 'adaptive'. linear_tol: Palace's iterative-solver tolerance (default: the setup default). save_fields / far_field: 'solution' (at the solution frequency only, from the last adaptive pass: the default), 'all' (every sweep point: slow, and fields take a full set per point and excitation) or 'none'.
  • eigenmode(name: str, modes: int = 5, target: Value = "1GHz", order: int = 2, cores: int = 4) -> Setup

Setup#

A solve setup. solve() runs it (locally by default) and returns the Result.

  • core property
  • palace_overrides (settable) property: Raw Palace JSON deep-merged into the generated config (still schema-checked).
  • submit(backend: Union[str, object] = "local", cores: Optional[int] = None, name: Optional[str] = None, variations: Optional[List[Dict[str, str]]] = None, max_cost: Optional[float] = None, over_budget: bool = False, **resources) -> Job: Packages the model and starts the solve without waiting. backend: "local", a cluster profile name (or ClusterProfile), "skypilot", or ("export", "", ""). resources override JobSpec fields (nodes, walltime, partition, account, modules, container...).
  • estimate(backend: Union[str, object] = "skypilot") -> str: What a cloud solve would run on (machine, price per hour, model size, time limit and cap), without starting it. The time and cost estimate is given on the Job once it has started.
  • solve(backend: Union[str, object] = "local", cores: Optional[int] = None, timeout: Optional[float] = None, poll: float = 2.0, max_cost: Optional[float] = None, over_budget: bool = False, **resources) -> Result: Runs the setup, waits for it, and returns its Result.

Job#

A submitted solve (local, cluster or cloud). Results are per case (several for sweeps).

  • state property
  • status() -> JobState
  • wait(poll: float = 5.0, timeout: Optional[float] = None) -> JobState
  • logs(lines: int = 200) -> str
  • cancel() -> None
  • fetch() -> str
  • cleanup() -> None: Deletes a cloud job's machine (a stopped machine still keeps its disk). Done automatically once results() has downloaded a cloud job; call it for a failed or cancelled one.
  • results(fetch: bool = True) -> List[Result]: One Result per case, in sweep order. Downloads remote results first (fetch=True).
  • result() -> Result

Result#

Palace output of one case (postpro/ inside folder).

  • postpro property
  • s_parameters(): te10_studio.postprocess.sparams.SParameterResult (|S| in dB, phase in degrees, f in GHz).
  • network(z0: float = 50.0, raw: bool = False): S-parameters as a scikit-rf Network, with the ports' de-embedding and renormalisation applied (as the S-parameter window shows them) unless raw. The same conversion the S-parameter window uses (te10_studio.postprocess.networks).
  • write_touchstone(path: str, z0: float = 50.0) -> str
  • rlgc(length_m: float, near_ports=None, far_ports=None, z0: float = 50.0): Per-metre R, L, G, C of the solved line (te10_studio.postprocess.rlgc_from_s): the network must have a port at each end of each conductor, near ends first unless the port lists say otherwise (1-based, conductor order).
  • write_rlgc_csv(path: str, length_m: float, near_ports=None, far_ports=None) -> str
  • eigenmodes() -> List[Tuple[float, float]]: [(frequency in GHz, Q), ...] from an eigenmode solve.
  • rcs(): te10_studio.postprocess.rcs.RCSResult of a plane-wave solve (bistatic / monostatic RCS).
  • farfield(): te10_studio.postprocess.farfield.FarFieldResult of an antenna solve: directivity, gain and realized gain patterns (.pattern(freq_ghz, excitation)).
  • fields(): te10_studio.postprocess.fields.FieldSolution: saved field data (any problem type).
  • log() -> str

Picks (prj.picks)#

The pick list. Points, edges and faces picked here are what prj.wcs.align() uses, as in the GUI:

  • __iter__()
  • point(xyz: Vec3) -> Pick: A point given by coordinates (project units, "3mm", or expressions).
  • vertex(obj: Union[str, Object], index: int) -> Pick
  • edge_center(obj: Union[str, Object], index: int) -> Pick
  • circle_center(obj: Union[str, Object], index: int) -> Pick
  • face_center(face: Union[FaceRef, str, Object], index: Optional[int] = None) -> Pick
  • edge(obj: Union[str, Object], index: int) -> Pick
  • face(face: Union[FaceRef, str, Object], index: Optional[int] = None) -> Pick: A face: a face reference such as obj.face("+z"), or an object and a face index.
  • distance() -> float: Distance between the last two picked points (or a newest edge pick's ends), in project units.
  • clear()

WCS (prj.wcs)#

The local working coordinate system. While it is on, new objects are placed in it: positions given to the modeler are in its axes. Objects keep their place when the working CS moves later.

  • active property
  • on()
  • off()
  • matrix property: 4x4 global frame (columns X, Y, Z, origin in meters).
  • origin property
  • align(): Aligns to the newest picks (a face, a straight edge, or 1-3 points) and clears them, like the GUI's Align Working CS.
  • align_to_face(face: FaceRef)
  • align_to_points(*points: Vec3)
  • move(u: Value = 0, v: Value = 0, w: Value = 0): Moves along the working CS's own axes.
  • rotate(u: Value = 0, v: Value = 0, w: Value = 0): Rotates about the working CS's own U, then V, then W axis (degrees).
  • store(name: Optional[str] = None) -> str
  • reset()

Compute (prj.compute)#

prj.compute["my-slurm"] -> the cluster profile of that name (Analysis > Cluster Profiles).

  • __getitem__(name: str)
  • names() -> List[str]

JobState#

em.JobState: PREPARED ("prepared"), PENDING ("pending"), RUNNING ("running"), COMPLETED ("completed"), FAILED ("failed"), CANCELLED ("cancelled"), UNKNOWN ("unknown").

JobSpec#

em.JobSpec fields (resources for submit()): ranks = 4, nodes = 1, threads_per_rank = 1, walltime = '04:00:00', memory_gb = 0, partition = '', account = '', modules = [], container = '', palace_bin = 'palace', mpirun_bin = 'mpirun', extra_directives = [], parallel_env = '', tasks_per_node = False.

clusters (em.clusters)#

  • add_cluster(target: str, name: str = "", partition: str = "", account: Optional[str] = None, scratch: str = "", solver: str = "", identity_file: str = "", jump_host: str = "", key_login: bool = False, test: bool = True, askpass: str = "", interactive: bool = False, log: Callable[[str], None] = print) -> Tuple[ClusterProfile, bool, str]: Connects to target ("user@host", or an ~/.ssh/config alias), finds what the cluster offers, runs the test solve and saves the profile. Returns (profile, ok, message); the profile is saved only when the test passed (or test is False).
  • load_profiles(path: Optional[str] = None) -> List[ClusterProfile]
  • get_profile(name: str, profiles=None) -> ClusterProfile
  • test_cluster(profile: ClusterProfile, askpass: str = "", interactive: bool = False, log: Callable[[str], None] = print, two_nodes: bool = False) -> Tuple[bool, str]: The test solve. two_nodes: the solve across two nodes instead (checks MPI between nodes).
  • refresh_cluster(name: str, askpass: str = "", interactive: bool = False) -> ClusterProfile: Probes the cluster again and stores its current queues (limits and node sizes change).
  • remove_cluster(name: str) -> None
  • export_shared(profile: ClusterProfile, path: str) -> str: Writes profile as a .te10cluster file. The user's name in the scratch path becomes $USER.
  • add_shared(path: str, user: str = "", name: str = "", account: str = "", test: bool = True, askpass: str = "", interactive: bool = False, log: Callable[[str], None] = print) -> Tuple[ClusterProfile, bool, str]: Adds the cluster a .te10cluster file describes for user, with the test solve.
  • here_profile(log: Callable[[str], None] = print) -> ClusterProfile: --backend here: for a user working on the cluster's login node itself. The scheduler and its queues are read from this machine (no SSH), jobs go in the scratch space found here. Not saved: a saved cluster named "here" takes its place.

postprocess.networks#

from te10_studio.postprocess import networks

  • as_parameter(ntwk: skrf.network.Network, param: str) -> skrf.network.Network: A copy whose s holds another parameter set (Z, Y, ABCD, T), so the quantities apply to it.
  • cascade(a: skrf.network.Network, b: skrf.network.Network) -> skrf.network.Network: 2-port a followed by b (frequencies interpolated onto a's grid when they differ).
  • causality(ntwk: skrf.network.Network, window: str = "hamming") -> Dict[Tuple[int, int], float]: Fraction of each S_ij's impulse-response energy at negative time (after extrapolating to DC). A causal response has almost none; more than ~1 % points at a non-causal model, too coarse a sweep or a too-narrow band. A non-uniform sweep is resampled first (from_dc_uniform).
  • checks(ntwk: skrf.network.Network, tol: float = 1e-06) -> Checks
  • dc_extrapolation_note(ntwk: skrf.network.Network) -> Optional[str]: A warning when ntwk has no 0 Hz point and too few points close to DC to extrapolate it: the DC S-matrix extrapolated from the two lowest frequencies and from the next two differ by more than DC_SPREAD_WARN (the response bends too much below the data), or there are fewer than three frequencies. None when the data is fine.
  • deembed_fixtures(ntwk: skrf.network.Network, left: Optional[skrf.network.Network] = None, right: Optional[skrf.network.Network] = None) -> skrf.network.Network: A 2-port measured or simulated through fixtures: DUT = left⁻¹ · total · right⁻¹ (frequencies interpolated onto the total's grid). The right fixture is given port 1 towards the DUT.
  • edge_rise_ps(f_max_hz: float, edge: Edge) -> Tuple[Optional[float], bool]: (rise time actually used in ps, True if the requested one was faster than the sweep allows and was clamped). (None, False) for a windowed step.
  • enforce_passivity(ntwk: skrf.network.Network, margin: float = 1e-06) -> skrf.network.Network: Clips every singular value of S above 1 to 1 - margin, frequency by frequency (the smallest change in the 2-norm that makes S passive). Frequencies that are already passive are left untouched.
  • entries(ntwk: skrf.network.Network) -> List[Tuple[int, int]]: Every (i, j) with data.
  • extrapolate_to_dc(ntwk: skrf.network.Network, points: Optional[int] = None) -> skrf.network.Network: Uniform grid starting at DC, as time-domain transforms need.
  • from_dc_uniform(one: skrf.network.Network, kind: str = "cubic") -> skrf.network.Network: one on a uniform grid starting at 0 Hz, as a time transform needs: a uniform sweep without DC is extrapolated to DC; a non-uniform one (a log or adaptive sweep) is first resampled onto a uniform grid with the step of its coarse end (the 90th percentile of its steps), at most MAX_TIME_POINTS points.
  • from_palace_csv(path: str, name: Optional[str] = None, z0: float = 50.0) -> Optional[skrf.network.Network]
  • from_result(result: SParameterResult, name: str = "Simulation", z0: float = 50.0) -> skrf.network.Network: An N-port Network from parsed Palace output. Missing S_ji are filled from S_ij (reciprocal structures); entries with no data on either side stay NaN.
  • group_delay(ntwk: skrf.network.Network, i: int, j: int) -> numpy.ndarray: -d(phase)/dω in seconds, from the unwrapped phase.
  • interpolate(ntwk: skrf.network.Network, f_start_ghz: float, f_stop_ghz: float, points: int, kind: str = "linear") -> skrf.network.Network
  • load_touchstone(path: str) -> skrf.network.Network
  • min_rise_time_ps(f_max_hz: float, definition: str = "10-90") -> float: The fastest rise time a sweep up to f_max can show. Gaussian edges are down to RISE_TIME_EDGE at f_max: 10-90 % about 0.875 / f_max (55 ps for 16 GHz), 20-80 % about 0.575 / f_max. A 0-100 % ramp: 1 / f_max (the first null of its sinc spectrum at the top frequency).
  • mixed_mode(ntwk: skrf.network.Network, pairs: Optional[List[Tuple[int, int]]] = None) -> skrf.network.Network: Single-ended ports to mixed-mode (differential / common). pairs are (positive, negative) port numbers, default (1,2), (3,4), ... . The result's ports are D1..DP, C1..CP, then any unpaired single-ended ports in their original order. Reference impedances: 2·z0 differential, z0/2 common.
  • mixed_mode_labels(npairs: int, nsingles: int) -> List[str]
  • mu_factor(ntwk: skrf.network.Network) -> numpy.ndarray
  • parse_pairs(text: str) -> List[Tuple[int, int]]: "1-2, 3-4" (or "1:2 3:4") -> [(1, 2), (3, 4)].
  • port_extension(ntwk: skrf.network.Network, lengths_m: Dict[int, float], eps_eff: float = 1.0) -> skrf.network.Network: Moves reference planes by lossless line lengths (positive = into the device, i.e. de-embeds feed line). S_ij gains exp(+jβ(l_i + l_j)), with β = 2πf·√ε_eff / c.
  • renormalize(ntwk: skrf.network.Network, z0) -> skrf.network.Network
  • rise_time_filter(f_hz: numpy.ndarray, rise_time_ps: float, definition: str = "10-90") -> numpy.ndarray: Spectrum of the edge that gives a step the rise time rise_time_ps under definition: a Gaussian (centred on t = 0) or a linear ramp from -T/2 to T/2 (sinc).
  • tdr(s_reflection: numpy.ndarray, frequency_hz: numpy.ndarray, z_ref: float, edge: Edge = Edge(kind="rise", rise_ps=None, definition="10-90", window="hamming")) -> Tuple[numpy.ndarray, numpy.ndarray]: (t in ns, impedance in ohm) of a ready-made complex reflection (single-ended or a mixed-mode term from postprocess.channel) referenced to z_ref, for the edge edge (a too-fast rise time is clamped to the fastest the sweep supports; see edge_rise_ps).
  • tdr_view_range(t: numpy.ndarray, z: numpy.ndarray, rise_ns: float, round_trip_ns: Optional[float] = None) -> Tuple[float, float, float, float]: (t0, t1, z_lo, z_hi): the part of a TDR trace worth showing. Start: back from t = 0 until the trace has sat within 0.5 % of its pre-edge level for one rise time. End, with the structure's round trip (2 x through delay): from the round trip on, until the trace stays within 1 % of its final level for 2 rise times, capped at 1.5 x the round trip (later ringing / aliasing is not shown). One-sided data: the last time |dZ/dt| exceeds 2 % of its peak, plus 3 rise times. Impedance: the data in that range with 8 % margin, at least 10 ohm.
  • time_response(ntwk: skrf.network.Network, i: int, j: int, kind: str = "impulse", window: str = "hamming", gate: Optional[Tuple[float, float]] = None, rise_time_ps: Optional[float] = None, rise_definition: str = "10-90") -> Tuple[numpy.ndarray, numpy.ndarray]: (time in ns, response) of S_ij: "impulse" or "step" response, or "tdr" (the step reflected from port i as impedance in ohm, Z = Z0 (1 + rho) / (1 - rho), i = j), after extrapolating to DC. gate = (center_ns, span_ns) applies a time gate first. rise_time_ps shapes the excitation as an edge with that rise time under rise_definition ("10-90", "20-80" or "0-100"), as a TDR instrument's (the window is then not used: the edge already rolls the spectrum off); it can't be faster than min_rise_time_ps(f_max, rise_definition).
  • trace(ntwk: skrf.network.Network, quantity: str, i: int, j: int, param: str = "S") -> Tuple[numpy.ndarray, numpy.ndarray]: (frequency in GHz, values) for one entry.
  • vswr(ntwk: skrf.network.Network, i: int, j: int) -> numpy.ndarray
  • write_csv(ntwk: skrf.network.Network, path: str) -> str: Frequency and every S_ij as dB and degrees, one row per frequency.
  • write_touchstone(ntwk: skrf.network.Network, path: str, r_ref: float = 50.0, comment: Optional[str] = None) -> str: Writes an .sNp file (the extension follows the port count). Returns the path written. Touchstone holds only real reference impedances: data referenced to complex port impedances (e.g. a waveguide's TE10 wave impedance) is renormalized to r_ref ohms on the way out. comment goes on a "!" line at the top.

postprocess.channel#

from te10_studio.postprocess import channel

  • auto_port_map(ntwk, pair_hint: Optional[Sequence[Tuple[int, int]]] = None) -> PortMap: Port map detected from the S-matrix alone (see the module notes; port names are never used). Every group of through-connected ports (through_groups) is a channel: two ports are a line, side 1 = the lower-numbered end; more than two (a divider, a multiplexer) have the lowest port at side 1 and the others as its far ends; a port with no through is a one-sided channel of its own. Differential pairs are two lines that pair_hint ([(p, n), ...], either end) names, or else that couple clearly more to each other than to anything else (coupled_pairs).
  • available(ntwk, pmap: PortMap, domain: Optional[str] = None) -> List[Measurement]: The measurements this data supports (in registry order), optionally for one domain: by the port map, and for the time domain by the sweep (time_domain_ok).
  • coupled_pairs(s: numpy.ndarray, far: Dict[int, int]) -> List[Tuple[int, int]]: Differential pairs found from the coupling between lines (see PAIR_COUPLING_DB).
  • curves(ntwk, pmap: PortMap, measurement: str, signals: Sequence[int], sides: Sequence[int], mode: Optional[str] = None, aggressors: str = "each") -> List[Curve]: The curves of one frequency-domain (or Smith / polar) measurement. aggressors: "each", "psum" or "both" for NEXT / FEXT. x is frequency in GHz (Smith / polar: Re and Im of the term, with "f_ghz" and "s" in meta).
  • default_mode(pmap: PortMap, measurement: str, signals: Optional[Iterable[int]] = None) -> Optional[str]
  • ends(pmap: PortMap, signal: int, side: int, letter: str) -> List[Tuple[str, Tuple[str, Tuple[int, ...]]]]: The terminals of one end of a signal in one mode letter (S, D or C), with a short tag: every port separately for S (each leg of a pair), the pair for D and C.
  • group_delay_s(f_hz: numpy.ndarray, s: numpy.ndarray) -> numpy.ndarray: -d(phase)/dω in seconds.
  • input_impedance(s: numpy.ndarray, zref: float) -> numpy.ndarray
  • line_coupling_db(s: numpy.ndarray, far: Dict[int, int]) -> Dict[Tuple[int, int], float]: Coupling between every two through lines (keyed by their side-1 ports): the band-averaged |S| of the strongest of the four crosstalk terms (NEXT at either end, FEXT either way), in dB.
  • mode_s(ntwk, pmap: PortMap, mode_out: str, sig_out: int, side_out: int, mode_in: str, sig_in: int, side_in: int) -> numpy.ndarray: One mixed-mode term: response in mode mode_out ("S", "D" or "C") at signal/side sig_out, side_out for a stimulus mode_in at sig_in, side_in. For "S" on a pair the + leg is used.
  • modes_available(pmap: PortMap, measurement: str, signals: Optional[Iterable[int]] = None) -> List[str]: Mode keys offered for a measurement on the given signals (default: all).
  • port_map_detected(pmap: PortMap) -> bool: False when 3 or more ports show no through connection at all (every port is a channel of its own): nothing told the channels apart, so the user should check the map.
  • power_sum(terms: Sequence[numpy.ndarray]) -> numpy.ndarray: sqrt(sum |S_k|^2): the power-sum crosstalk of several aggressors.
  • sides_available(pmap: PortMap, signals: Optional[Iterable[int]] = None) -> List[int]
  • signal_name(signal: int) -> str
  • skew_ps(ntwk, pmap: PortMap, signal: int, side_in: int = 1) -> numpy.ndarray: Intra-pair skew (ps): delay of the + leg minus delay of the - leg, from their group delays.
  • term_label(mode: str, out: Tuple[str, Tuple[int, ...]], inn: Tuple[str, Tuple[int, ...]], side_out: int, side_in: int) -> str
  • term_s(ntwk, out: Tuple[str, Tuple[int, ...]], inn: Tuple[str, Tuple[int, ...]]) -> numpy.ndarray: a^T S b for the response terminal out and the stimulus terminal inn.
  • terminal_zref(ntwk, term: Tuple[str, Tuple[int, ...]]) -> float: Reference impedance of a terminal: Z0, 2 Z0 (differential) or Z0/2 (common).
  • terms(ntwk, pmap: PortMap, kind: str, signals: Sequence[int], sides: Sequence[int], mode: str, victim_other: Optional[int] = None) -> List[Tuple[str, numpy.ndarray, dict]]: Complex terms (label, values, meta) for kind "refl" (same end), "thru" (far end of the same signal), or "next"/"fext" (victim in signals, aggressor = every other signal, or only victim_other). sides: the driven sides.
  • through_delay_ns(ntwk, pmap: PortMap, signal: int, mode: str = "SE") -> Optional[float]: Median group delay (ns) of a signal's through term, side 1 to side 2; None if one-sided.
  • through_groups(s: numpy.ndarray) -> List[List[int]]: The ports of an S-matrix grouped by what is actually connected through (never by port names or numbering): each group is one net, a single port being one with no through to any other. Connections are read from the lowest 10 % of the band, where lines are short and crosstalk is weakest; ports left alone there (a DC block, a filter or waveguide whose passband is higher up) are tried again among themselves with the whole band.
  • time_domain_ok(ntwk) -> bool: Whether the sweep reaches low enough for a TDR (see TIME_DOMAIN_MAX_START).

postprocess.monitors#

from te10_studio.postprocess import monitors

  • evaluate(monitor: Monitor, indices: Dict[Tuple[float, ...], int], e_table: Optional[ProbeTable], b_table: Optional[ProbeTable], excitation: Optional[int] = None) -> Optional[MonitorResult]: One monitor's result, or None when the run didn't probe its points.
  • probe_indices(config: dict) -> Dict[Tuple[float, ...], int]: Probe position -> index, from a run's Palace configuration.
  • results_for(project, setup_name: Optional[str] = None, excitation: Optional[int] = None) -> Dict[str, Optional[MonitorResult]]: Every probe / voltage / current monitor's result for a setup's last solve (None: not solved).

rftools.tlines#

from te10_studio.rftools import tlines

  • circ_waveguide_modes(d: float, er: float = 1.0, count: int = 8) -> List[Mode]
  • coax(d_inner: float, d_outer: float, er: float = 1.0) -> LineResult: Coax with inner conductor diameter d_inner and outer (shield inner) diameter d_outer.
  • coax_cutoff_te11(d_inner: float, d_outer: float, er: float = 1.0) -> float: First higher-order mode (TE11) cutoff of a coax (approximation c / (π (a + b) √er)).
  • coax_outer_diameter(z0: float, d_inner: float, er: float = 1.0) -> float
  • cpw(w: float, s: float, h: float, er: float, grounded: bool = False) -> LineResult: Coplanar waveguide: centre strip w, gaps s, on a substrate of height h (finite). Without a bottom ground (grounded=False) the substrate is in air; with one, it is conductor-backed. Lateral grounds are wide.
  • cpw_width(z0: float, s: float, h: float, er: float, grounded: bool = False) -> float
  • microstrip(w: float, h: float, er: float, t: float = 0.0, f: Optional[float] = None) -> LineResult: Microstrip of width w on a substrate of height h and permittivity er, strip thickness t. With f, the effective permittivity includes dispersion (Kirschning-Jansen); Z0 is the static value either way.
  • microstrip_width(z0: float, h: float, er: float, t: float = 0.0) -> float
  • rect_waveguide_modes(a: float, b: float, er: float = 1.0, count: int = 8) -> List[Mode]: The lowest count TE / TM modes of an a×b rectangular waveguide (a ≥ b), by cutoff.
  • skin_depth(f: float, sigma: float, mu_r: float = 1.0) -> float
  • stripline(w: float, b: float, er: float) -> LineResult: Zero-thickness strip of width w centred between ground planes b apart (Cohn).
  • stripline_width(z0: float, b: float, er: float) -> float
  • surface_resistance(f: float, sigma: float, mu_r: float = 1.0) -> float
  • synthesize_width(z0_target: float, analyse: Callable[[float], LineResult], scale: float) -> float: The width w for which analyse(w).z0 == z0_target (impedance falls as w grows). scale is a typical length (the substrate height) bounding the search to scale/1000 .. 100·scale.
  • waveguide_mode(fc: float, f: float, er: float = 1.0) -> Tuple[float, float, float]: (β in rad/m, guided wavelength in m, TE wave impedance in ohm) above cutoff; ValueError below.
  • wavelength(f: float, er: float = 1.0, mu_r: float = 1.0) -> float

rftools.builders#

from te10_studio.rftools import builders

  • branchline_coupler(prj, f0: float = 2400000000.0, z0: float = 50.0, er: float = 4.4, h: float = 0.0016, tand: float = 0.0, feed_length: Optional[float] = None) -> BuildResult: 90° hybrid: two Z0/√2 through arms and two Z0 branch arms, each λg/4 between junction centres; four Z0 feed lines to the board edges with wave ports.
  • coax_section(prj, z0: float = 50.0, d_inner: float = 0.00127, er: float = 2.1, length: float = 0.02) -> BuildResult: A coax section along z (outer conductor = the outer boundary) with wave ports at both ends.
  • design_patch(f0: float, er: float, h: float, z0: float = 50.0) -> PatchDesign: Rectangular patch dimensions and inset depth for a z0 feed (Balanis, transmission-line model).
  • klopfenstein_profile(z1: float, z2: float, gamma_max: float, n: int) -> numpy.ndarray: ln Z at n points along a Klopfenstein taper with passband ripple Γm (Pozar §5.9): ln Z(x) = ½ ln(Z1·Z2) + Γ0 / cosh A · A² φ(2x - 1, A), A = acosh(Γ0 / Γm). The design has small steps at both ends (from Z1 and to Z2), part of its optimum.
  • microstrip_line(prj, z0: float = 50.0, er: float = 4.4, h: float = 0.0016, length: float = 0.03, f0: float = 5000000000.0, tand: float = 0.0, board_width: Optional[float] = None) -> BuildResult: A straight microstrip test line on its board, with wave ports at both ends.
  • patch_antenna(prj, f0: float = 2400000000.0, er: float = 4.4, h: float = 0.0016, tand: float = 0.02, z0: float = 50.0) -> BuildResult: Inset-fed rectangular patch on a grounded substrate in a radiation box, fed by a wave port.
  • quarter_wave_transformer(prj, z_source: float = 50.0, z_load: float = 100.0, f0: float = 2400000000.0, er: float = 4.4, h: float = 0.0016, tand: float = 0.0) -> BuildResult: Source line (λg/4), the √(Zs·ZL) quarter-wave section, load line (λg/4); ports at both ends.
  • taper_impedances(z1: float, z2: float, n: int, kind: str = "exponential", gamma_max: float = 0.02) -> numpy.ndarray
  • tapered_line(prj, z1: float = 50.0, z2: float = 100.0, length: float = 0.04, kind: str = "exponential", er: float = 4.4, h: float = 0.0016, f0: float = 3000000000.0, segments: int = 40, tand: float = 0.0, gamma_max: float = 0.02) -> BuildResult: A smooth impedance taper (outline through segments points) with short uniform lines at both ends.
  • waveguide_section(prj, size: str = "WR-90", length: float = 0.05, a: Optional[float] = None, b: Optional[float] = None, er: float = 1.0) -> BuildResult: A rectangular waveguide section along z (walls = the outer PEC boundary) with wave ports at both ends.

rftools.ports#

from te10_studio.rftools import ports

  • add_line_port(prj, trace: str, kind: str = "microstrip", name: Optional[str] = None, **kw): plan_line_port + apply_port_plan in one call; returns (port, plan).
  • apply_port_plan(prj, plan: PortPlan, name: Optional[str] = None, modes: int = 1, resistance: float = 50.0): Builds the plan: the air box (if any), the port sheet and the port. Returns the port.
  • describe(plan: PortPlan) -> str: A short readable summary of a plan (for dialogs and logs).
  • line_model(kind: str, w: float, h: float, er: float, t: float = 0.0, s: Optional[float] = None, b: Optional[float] = None, f: Optional[float] = None) -> LineResult
  • plan_line_port(prj, trace: str, kind: str = "microstrip", end: str = "auto", port_type: str = "wave", w: Optional[float] = None, t: Optional[float] = None, h: Optional[float] = None, er: Optional[float] = None, s: Optional[float] = None, b: Optional[float] = None, width: Optional[float] = None, height: Optional[float] = None, add_air: bool = True, f: Optional[float] = None) -> PortPlan: Works out a port for the trace (nothing is changed). Lengths in meters.
  • port_size(kind: str, w: float, h: float, er: float, s: Optional[float] = None, b: Optional[float] = None) -> Tuple[float, float, float]: (width, height above the reference, depth below it) by the guidelines in the module docstring. The reference is the bottom ground (microstrip, stripline, grounded CPW) or the strip (CPW).

rftools.catalog#

from te10_studio.rftools import catalog

  • defaults(tool: Tool) -> Dict[str, Any]: The tool's default values in SI (what the dialog starts with).
  • ghz(x: float) -> str
  • mm(x: float) -> str
  • run(tool_id: str, prj, values: Optional[Dict[str, Any]] = None, build: bool = False) -> str: Runs a tool from a script: values in SI override the defaults.
  • si(kind: str, value): A dialog value in SI (mm -> m, GHz -> Hz).

core.material_library#

from te10_studio.core import material_library

  • categories() -> List[str]: Every category path, sorted (parents not listed separately).
  • cole_cole(p: Sequence[float], freq_hz: float) -> complex: Gabriel's four-term Cole-Cole permittivity (e^{jwt}, eps' - j eps''). p is the IFAC row: eps_inf, sigma_i, then (d_eps, tau, alpha) with tau in ps, ns, us, ms.
  • debye2(p: dict, freq_hz: float) -> complex: Two-term Debye permittivity plus ionic conductivity (e^{jwt}).
  • get(name: str) -> Optional[LibraryEntry]: The library entry called name (case-insensitive), or None.
  • lookup_material(name: str, freq_hz: float = 10000000000.0) -> Optional[Material]: A Material for a library entry named name (None if there is no such entry).
  • make_material(entry: LibraryEntry, freq_hz: float = 10000000000.0, dispersive: bool = False, name: Optional[str] = None) -> Material: A project Material with entry's values at freq_hz.
  • search(text: str = "", category: str = "", conductors: Optional[bool] = None) -> List[LibraryEntry]: Entries whose name/category/vendor/construction contain every word of text, inside category (a path prefix such as "PCB Laminates/Isola").

core.monitors#

from te10_studio.core import monitors

  • add(project, monitor: Monitor) -> Monitor
  • current_loop(name: str, center: Sequence[float], normal: Sequence[float], radius: float, segments_: int = 36) -> Monitor: A circle of radius around center; the current is positive along normal (right-hand rule).
  • field_monitor(name: str, kind: str, frequency_hz: float) -> Monitor
  • from_list(project, data) -> None
  • monitors_of(project) -> Dict[str, Monitor]
  • path_length(points, closed: bool = False) -> float
  • probe(name: str, kind: str, point: Sequence[float]) -> Monitor
  • probe_entries(project) -> List[Dict[str, Any]]: Palace "Probe" entries for every enabled probe, voltage and current monitor (deduplicated points).
  • restrict_saves(driven: Dict[str, Any]) -> None: Keeps only the "Save" frequencies that a run actually solves, after its samples were rewritten (a sub-band or a batch of points); Palace refuses a save frequency it doesn't sample.
  • save_frequencies_hz(project, setup) -> List[float]: Sweep frequencies the field monitors ask Palace to save fields at.
  • segments(points: Sequence[Sequence[float]], closed: bool = False) -> List[Tuple[numpy.ndarray, numpy.ndarray]]: (midpoint, step vector) of each segment of a polyline (closed: the last point joins the first).
  • simpson_nodes(points, closed: bool = False) -> Tuple[List[numpy.ndarray], List[numpy.ndarray]]: Nodes and weight vectors for ∫F·dl along a polyline with Simpson's rule on each segment: ∫F·dl ≈ Σ w_k · F(node_k). Nodes are the vertices and the segment midpoints.
  • snap_frequency(freq_hz: float, sweep_hz: Sequence[float]) -> Optional[float]: The sweep frequency nearest to freq_hz (fields can only be saved at solved frequencies).
  • to_list(project) -> List[Dict[str, Any]]
  • unique_name(project, base: str) -> str
  • voltage_line(name: str, start: Sequence[float], end: Sequence[float], segments_: int = 20) -> Monitor