Skip to content
LIBRARY
Analog.Interfaces.FourPin.md

Analog.Interfaces.FourPin ​

Component with two electrical ports (four pins).

Defines two voltage/current pairs for a four-terminal device:

Corresponds to Modelica.Electrical.Analog.Interfaces.FourPin.

Usage ​

ElectricalComponents.Analog.Interfaces.FourPin()

Connectors ​

  • p1 - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

  • n1 - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

  • p2 - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

  • n2 - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

Variables ​

NameDescriptionUnits
v1Voltage drop of port 1 (= p1.v - n1.v)V
v2Voltage drop of port 2 (= p2.v - n2.v)V
i1Current flowing from pos. to neg. pin of port 1A
i2Current flowing from pos. to neg. pin of port 2A

Source ​

dyad
"""
Component with two electrical ports (four pins).

Defines two voltage/current pairs for a four-terminal device:
```math
v_1 = p_1.v - n_1.v, \quad i_1 = p_1.i
```
```math
v_2 = p_2.v - n_2.v, \quad i_2 = p_2.i
```

Corresponds to `Modelica.Electrical.Analog.Interfaces.FourPin`.
"""
partial component FourPin
  "Positive electrical pin of port 1"
  p1 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -40, "y1": -40, "x2": 60, "y2": 60, "rot": 0}
      },
      "tags": []
    }
  }
  "Negative electrical pin of port 1"
  n1 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -40, "y1": 940, "x2": 60, "y2": 1040, "rot": 0}
      },
      "tags": []
    }
  }
  "Positive electrical pin of port 2"
  p2 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": -40, "x2": 1060, "y2": 60, "rot": 0}
      },
      "tags": []
    }
  }
  "Negative electrical pin of port 2"
  n2 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": 950, "x2": 1060, "y2": 1050, "rot": 0}
      },
      "tags": []
    }
  }
  "Voltage drop of port 1 (= p1.v - n1.v)"
  variable v1::Voltage
  "Voltage drop of port 2 (= p2.v - n2.v)"
  variable v2::Voltage
  "Current flowing from pos. to neg. pin of port 1"
  variable i1::Current
  "Current flowing from pos. to neg. pin of port 2"
  variable i2::Current
relations
  v1 = p1.v - n1.v
  v2 = p2.v - n2.v
  i1 = p1.i
  i2 = p2.i
end
Flattened Source
dyad
"""
Component with two electrical ports (four pins).

Defines two voltage/current pairs for a four-terminal device:
```math
v_1 = p_1.v - n_1.v, \quad i_1 = p_1.i
```
```math
v_2 = p_2.v - n_2.v, \quad i_2 = p_2.i
```

Corresponds to `Modelica.Electrical.Analog.Interfaces.FourPin`.
"""
partial component FourPin
  "Positive electrical pin of port 1"
  p1 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -40, "y1": -40, "x2": 60, "y2": 60, "rot": 0}
      },
      "tags": []
    }
  }
  "Negative electrical pin of port 1"
  n1 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -40, "y1": 940, "x2": 60, "y2": 1040, "rot": 0}
      },
      "tags": []
    }
  }
  "Positive electrical pin of port 2"
  p2 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": -40, "x2": 1060, "y2": 60, "rot": 0}
      },
      "tags": []
    }
  }
  "Negative electrical pin of port 2"
  n2 = Pin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": 950, "x2": 1060, "y2": 1050, "rot": 0}
      },
      "tags": []
    }
  }
  "Voltage drop of port 1 (= p1.v - n1.v)"
  variable v1::Voltage
  "Voltage drop of port 2 (= p2.v - n2.v)"
  variable v2::Voltage
  "Current flowing from pos. to neg. pin of port 1"
  variable i1::Current
  "Current flowing from pos. to neg. pin of port 2"
  variable i2::Current
relations
  v1 = p1.v - n1.v
  v2 = p2.v - n2.v
  i1 = p1.i
  i2 = p2.i
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses