---
url: /dyad/stable/stdlib/ElectricalComponents/components/Analog.Basic.RotationalEMF.md
description: >-
  Dyad Analog.Basic.RotationalEMF docs.  An ideal electromechanical transducer
  coupling electrical voltage and current to rotational mechanical torque and
  angular velocity.
---

# `Analog.Basic.RotationalEMF` {#Analog.Basic.RotationalEMF}

An ideal electromechanical transducer coupling electrical voltage and current to rotational mechanical torque and angular velocity.

This component models an ideal rotational electromotive force (EMF) device, acting as a bidirectional energy converter between the electrical and rotational mechanical domains. It establishes a relationship where the induced voltage (`v`) across its electrical terminals is directly proportional to the angular velocity (`w`) of its rotor, and conversely, the torque (`\tau`) generated on the rotor is directly proportional to the current (`i`) flowing through its electrical terminals. The constant of proportionality for these relationships is the electrical torque constant, `k`. The mechanical rotation and torque are defined relative to a housing or support structure. The defining equations for its behavior are:

$$v = k \cdot w$$

and

$$\tau = -k \cdot i$$

The negative sign in the torque equation is a convention related to motor action and the defined positive directions of current and torque.

## Usage {#Usage}

`ElectricalComponents.Analog.Basic.RotationalEMF(k)`

## Parameters: {#Parameters:}

| Name |                                    Description | Units | Default value |
| ----:| ----------------------------------------------:| -----:| -------------:|
|  `k` | Electrical torque constant / back-EMF constant | N.m/A |               |

## Connectors {#Connectors}

* `p` - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. ([`Pin`](/stdlib/Dyad/connectors/Pin#Pin))

* `n` - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. ([`Pin`](/stdlib/Dyad/connectors/Pin#Pin))

* `rotor` - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. ([`Spline`](/stdlib/Dyad/connectors/Spline#Spline))

* `housing` - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. ([`Spline`](/stdlib/Dyad/connectors/Spline#Spline))

## Variables {#Variables}

|  Name |                                           Description | Units |
| -----:| -----------------------------------------------------:| -----:|
|   `v` |                     Voltage drop between the two pins |     V |
|   `i` |         Current flowing from positive to negative pin |     A |
| `phi` |  Angle of shaft flange with respect to housing spline |   rad |
|   `w` | Angular velocity of flange relative to housing spline | rad/s |
| `tau` |                                      Torque of flange |   N.m |

## Behavior {#Behavior}

$$ \begin{align}
v\left( t \right) &=  - \mathtt{n.v}\left( t \right) + \mathtt{p.v}\left( t \right) \\
0 &= \mathtt{n.i}\left( t \right) + \mathtt{p.i}\left( t \right) \\
i\left( t \right) &= \mathtt{p.i}\left( t \right) \\
\mathtt{phi}\left( t \right) &=  - \mathtt{housing.phi}\left( t \right) + \mathtt{rotor.phi}\left( t \right) \\
w\left( t \right) &= \frac{\mathrm{d}\mathtt{phi}\left( t \right)}{\mathrm{d}t} \\
k ~ w\left( t \right) &= v\left( t \right) \\
\mathtt{tau}\left( t \right) &=  - i\left( t \right) ~ k \\
\mathtt{tau}\left( t \right) &= \mathtt{rotor.tau}\left( t \right) \\
0 &= \mathtt{housing.tau}\left( t \right) + \mathtt{rotor.tau}\left( t \right)
\end{align}
$$

## Source {#Source}

````dyad
"""
An ideal electromechanical transducer coupling electrical voltage and current to rotational mechanical torque and angular velocity.

This component models an ideal rotational electromotive force (EMF) device, acting as a bidirectional
energy converter between the electrical and rotational mechanical domains. It establishes a relationship
where the induced voltage (`v`) across its electrical terminals is directly proportional to the angular velocity
(`w`) of its rotor, and conversely, the torque (`\tau`) generated on the rotor is directly proportional to the current
(`i`) flowing through its electrical terminals. The constant of proportionality for these relationships is the
electrical torque constant, `k`. The mechanical rotation and torque are defined relative to a
housing or support structure.
The defining equations for its behavior are:

```math
v = k \cdot w
```

and

```math
\tau = -k \cdot i
```

The negative sign in the torque equation is a convention related to motor action and the defined positive
directions of current and torque.
"""
component RotationalEMF
  "Positive electrical pin"
  p = Pin() {
    "Dyad": {
      "placement": {"icon": {"iconName": "pos", "x1": 450, "y1": -50, "x2": 550, "y2": 50}}
    }
  }
  "Negative electrical pin"
  n = Pin() {
    "Dyad": {
      "placement": {"icon": {"iconName": "neg", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}}
    }
  }
  "Rotor spline"
  rotor = Spline() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Housing (support) of the emf shaft"
  housing = Spline() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Electrical torque constant / back-EMF constant"
  parameter k::ElectricalTorqueConstant
  "Voltage drop between the two pins"
  variable v::Voltage
  "Current flowing from positive to negative pin"
  variable i::Current
  "Angle of shaft flange with respect to housing spline"
  variable phi::Angle
  "Angular velocity of flange relative to housing spline"
  variable w::AngularVelocity
  "Torque of flange"
  variable tau::Torque
relations
  v = p.v - n.v
  0 = p.i + n.i
  i = p.i
  phi = rotor.phi - housing.phi
  w = der(phi)
  k * w = v
  tau = -k * i
  tau = rotor.tau
  0 = housing.tau + rotor.tau
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1200, "rot": 0}],
    "icons": {"default": "dyad://ElectricalComponents/RotationalEMF.svg"}
  }
}
end
````

````dyad
"""
An ideal electromechanical transducer coupling electrical voltage and current to rotational mechanical torque and angular velocity.

This component models an ideal rotational electromotive force (EMF) device, acting as a bidirectional
energy converter between the electrical and rotational mechanical domains. It establishes a relationship
where the induced voltage (`v`) across its electrical terminals is directly proportional to the angular velocity
(`w`) of its rotor, and conversely, the torque (`\tau`) generated on the rotor is directly proportional to the current
(`i`) flowing through its electrical terminals. The constant of proportionality for these relationships is the
electrical torque constant, `k`. The mechanical rotation and torque are defined relative to a
housing or support structure.
The defining equations for its behavior are:

```math
v = k \cdot w
```

and

```math
\tau = -k \cdot i
```

The negative sign in the torque equation is a convention related to motor action and the defined positive
directions of current and torque.
"""
component RotationalEMF
  "Positive electrical pin"
  p = Pin() {
    "Dyad": {
      "placement": {"icon": {"iconName": "pos", "x1": 450, "y1": -50, "x2": 550, "y2": 50}}
    }
  }
  "Negative electrical pin"
  n = Pin() {
    "Dyad": {
      "placement": {"icon": {"iconName": "neg", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}}
    }
  }
  "Rotor spline"
  rotor = Spline() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Housing (support) of the emf shaft"
  housing = Spline() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Electrical torque constant / back-EMF constant"
  parameter k::ElectricalTorqueConstant
  "Voltage drop between the two pins"
  variable v::Voltage
  "Current flowing from positive to negative pin"
  variable i::Current
  "Angle of shaft flange with respect to housing spline"
  variable phi::Angle
  "Angular velocity of flange relative to housing spline"
  variable w::AngularVelocity
  "Torque of flange"
  variable tau::Torque
relations
  v = p.v - n.v
  0 = p.i + n.i
  i = p.i
  phi = rotor.phi - housing.phi
  w = der(phi)
  k * w = v
  tau = -k * i
  tau = rotor.tau
  0 = housing.tau + rotor.tau
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1200, "rot": 0}],
    "icons": {"default": "dyad://ElectricalComponents/RotationalEMF.svg"}
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Fixed`](Analog.Basic.RotationalEMF.md)

  * [`Ground`](Analog.Basic.RotationalEMF.md)

  * [`Inertia`](Analog.Basic.RotationalEMF.md)

  * [`RotationalEMF`](Analog.Basic.RotationalEMF.md)

  * [`RotationalEMF`](Analog.Basic.RotationalEMF.md)

  * [`Sine`](Analog.Basic.RotationalEMF.md)

  * [`VoltageSource`](Analog.Basic.RotationalEMF.md)
