Constant-gain circles
gain_circlesCalculate constant-gain circles from transistor S-parameters to design amplifiers, returning centers, radii, and achievable gain limits for Smith chart plotting.
Instructions
Constant-gain circles for amplifier design (Pozar ch. 12): 'available' (G_A, source plane, bilateral), 'operating' (G_P, load plane, bilateral), 'unilateral_source' (G_S) or 'unilateral_load' (G_L) for S12≈0 designs. Returns centre (Γ and Z), radius and whether each gain is achievable, plus the reference maximum gain (MAG/MSG or G_S,max/G_L,max). Omit gains_db to get a ladder of circles below the maximum. Pass the circles to render_smith_chart to plot them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | available | |
| device | Yes | Two-port device: either all four S-parameters (s11, s21, s12, s22 as {mag, angle_deg} or {re, im}) or a 2-port Touchstone file via touchstone_path / touchstone_content. | |
| gains_db | No | Gains in dB to draw (for unilateral types: the G_S / G_L block gain). | |
| language | No | Language of the human-readable summary: 'en' (English) or 'tr' (Türkçe). Defaults to the server setting. | |
| frequency | No | Required with a Touchstone file. |