> 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/smart-power-simulation-software-sps/example-models/machines/mechanical-coupling-of-synchronous-generator-with-exciter-system-using-simscape-tm-mechanical-rotati.md).

# Mechanical Coupling of Synchronous Generator with Exciter System using Simscape™ mechanical rotation

This example shows a machine mechanical coupling of an excitation system using Simscape™ mechanical rotational ports.

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-721c3a1f3fcbb6a5a29b786bf9a9dd838da3f9cf%2Fmech_coupling_synchro_gene_exciter_simscape.png?alt=media" alt=""><figcaption></figcaption></figure>

## Description

In large alternators, the excitation system is provided by a small synchronous machine connected to the shaft of the synchronous generator. Current rectification is performed by a rotating diode bridge mounted on the generator shaft, thus avoiding slip rings for providing DC power to the synchronous generator field.

The synchronous generator is driven by a diesel motor with speed regulation. The mechanical coupling of the generator, the exciter system, and the diesel motor is done by using the Simscape mechanical rotational ports of the Synchronous Machine blocks.

This model is very similar to the power\_SM\_exciter model. The only difference is that the two synchronous Machine blocks and the diesel motor use a mechanical rotational port to connect together and represents the mechanical shaft.

## Simulation

Run the model and compare the simulation results with the ones obtained with power\_SM\_exciter model. They should be identical.

Note that the inertia and viscous friction are specified for every system (in the mask of the Synchronous Machine blocks, and directly to the mechanical shaft for the diesel motor). This is not the case for the power\_SM\_Excitation model where the total inertia and viscous friction of the three systems need to be specified in the Synchronous Machine block representing the generator.

## Command

Example model name: power\_SM\_exciter\_SSC

{% code lineNumbers="true" %}

```matlab
open('power_SM_exciter_SSC')
```

{% endcode %}


---

# 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/smart-power-simulation-software-sps/example-models/machines/mechanical-coupling-of-synchronous-generator-with-exciter-system-using-simscape-tm-mechanical-rotati.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.
