Skip to content

coupler

Coupler

Create a coupler object

Source code in passive_auto_design\devices\coupler.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Coupler:
    """
    Create a coupler object
    """

    def __init__(self, _fc=1e9, _zc=50, _k=0.707):
        self.f_c = _fc
        self.z_c = _zc
        self.k = _k
        self.l = self.z_c / (2 * pi * self.f_c * sqrt(1 - self.k**2))
        self.c = self.l / self.z_c**2

    def __str__(self):
        """
        Print a summary of the solution l and c
        """
        message = f"L: {SI(self.l)}H\tC: {SI(self.c)}F"
        return message

__str__()

Print a summary of the solution l and c

Source code in passive_auto_design\devices\coupler.py
20
21
22
23
24
25
def __str__(self):
    """
    Print a summary of the solution l and c
    """
    message = f"L: {SI(self.l)}H\tC: {SI(self.c)}F"
    return message