> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-machines/direct-current-machine.md).

# Direct Current Machine

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-b369ee3b0a8a82fb20d1fb4ce3a2f93096217209%2Fimage%20(340).png?alt=media" alt=""><figcaption></figcaption></figure>

The **DC Machine** block, located in the **Network Machines** library, is modeled as a Norton equivalent with a direct interface to the network component. Specify all electrical parameters using real SI values. The machine can only be controlled externally via mechanical speed or mechanical torque. The DC machine does not participate in the load flow.

### Model equations

## dc machine equations

$$
v\_{a} = R\_{a}, i\_{a} + L\_{aa}, \frac{d i\_{a}}{d t} + e\_{a} \\\[8pt]
v\_{f} = R\_{f}, i\_{f} + L\_{ff}, \frac{d i\_{f}}{d t} \\\[8pt]
e\_{a} = L\_{af}, i\_{f}, \omega\_{m}
$$

## Mechanical torque and the dynamic equations

$$
T\_{m} = L\_{af}, i\_{f}, i\_{a}\\\[8pt]
J, \frac{d \omega\_{m}}{d t} = T\_{m} - T\_{load} - K\_{D}, \omega\_{m}
$$

## Shunt and serial connections of the direct current machine

{% columns %}
{% column %}

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-b7310d191ea509d4684457ae0ba3fd58f359f13e%2Fimage%20(1175).png?alt=media" alt="" width="219"><figcaption><p>Shunt DC machine</p></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-e2191ebcc129c359740b544ebcf8c98a5eebfab2%2Fimage%20(1176).png?alt=media" alt="" width="420"><figcaption><p><br>Series DC machine:</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="info" %}
This model does not take into account the saturation.
{% endhint %}

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-1a9f76f513d87da12dcf77bbb25d57a868fd6824%2Fb.jpg?alt=media" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Electrical Parameters" %}

<table><thead><tr><th width="209">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Base power</strong></td><td>Nominal power (kW)</td></tr><tr><td><strong>Base Voltage</strong></td><td>Nominal voltage (kV)</td></tr><tr><td><strong>Ra</strong></td><td>Armature resistance (Ohm)</td></tr><tr><td><strong>Laa</strong></td><td>Armature inductance (H)</td></tr><tr><td><strong>Rf</strong></td><td>Field resistance (Ohm)</td></tr><tr><td><strong>Lff</strong></td><td>Field inductance (H)</td></tr><tr><td><strong>Laf</strong></td><td>Mutual inductance (H)</td></tr></tbody></table>
{% endtab %}

{% tab title="Mechanical Data" %}

<table><thead><tr><th width="208">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Control type</strong></td><td>Select mechanical torque control or speed control</td></tr><tr><td><strong>Moment of inertia J</strong></td><td>Moment of inertia (kg·m^2)</td></tr><tr><td><strong>Friction Kd</strong></td><td>Friction coefficient (N·m·s)</td></tr><tr><td><strong>Mechanical torque</strong></td><td>Select whether the mechanical torque characteristic is internal or external</td></tr><tr><td><strong>Tmec</strong></td><td>Torque points of the mechanical torque versus speed (Nm)</td></tr><tr><td><strong>Wmec</strong></td><td>Speed points of the mechanical torque versus speed (rad/s)</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Conserving ports

<table><thead><tr><th width="211">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>A+</strong></td><td>Positive armature connector (single-phase)</td></tr><tr><td><strong>A-</strong></td><td>Negative armature connector (single-phase)</td></tr><tr><td><strong>F+</strong></td><td>Positive field connector (single-phase)</td></tr><tr><td><strong>F-</strong></td><td>Negative field connector (single-phase)</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="209">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>Tmec_i</strong></td><td>Torque or speed signal when the control is external (Nm or rad/s)</td></tr></tbody></table>

## Outputs

This block has no outputs.

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

Additional signals are also available and are listed below with their descriptions.

<table><thead><tr><th width="211">Signal</th><th>Description</th></tr></thead><tbody><tr><td><strong>Ias</strong></td><td>Armature current (A)</td></tr><tr><td><strong>If</strong></td><td>Field current (A)</td></tr><tr><td><strong>Ps</strong></td><td>Consumed power (W)</td></tr><tr><td><strong>Tmec</strong></td><td>Mechanical torque (Nm)</td></tr><tr><td><strong>Wm</strong></td><td>Mechanical speed (rad/s)</td></tr><tr><td><strong>Wrpm</strong></td><td>Mechanical speed (rpm)</td></tr></tbody></table>

## References

Analysis of Electric Machinery and Drive Systems, 2<sup>nd</sup> edition, Paul C. Krause, Oleg Wasynczuk, Scott D. Sudhoff.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-machines/direct-current-machine.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
