> 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/ehs/model-in-schematic-editor/library-blocks-reference/sources-blocks/ac-current-source.md).

# AC Current Source

## Description

<figure><img src="https://3212678799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABuoXNYgvaoO7wIe3bfO%2Fuploads%2Fgit-blob-d97126dc1e15fe1c4bccfa556e1ea49e9d14a592%2FSE_ACCurrentsource.png?alt=media" alt=""><figcaption></figcaption></figure>

The **AC Current Source** block models an ideal sinusoidal current source. The output current is independent of the voltage across the source and is defined by the following equation:

$$
I\_{out} = A \* sin ( f \* 2π \* t + Φ ) + I\_0
$$

{% hint style="info" %}
This block is only available in the eHS library.
{% endhint %}

## Parameters

<figure><img src="https://3212678799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABuoXNYgvaoO7wIe3bfO%2Fuploads%2Fgit-blob-71828ff318e9ad1fee3a1453b656b2435a5c2b58%2FSE_ACCurrentparam.png?alt=media" alt=""><figcaption></figcaption></figure>

| Parameter                                     | Description                                                      | Sets feature | I/O & Monitoring                                                      |
| --------------------------------------------- | ---------------------------------------------------------------- | ------------ | --------------------------------------------------------------------- |
| **Current amplitude (A)**                     | The peak amplitude of the signal from zero expressed in amperes. | Yes          | From <code class="expression">space.vars.cpu\_model\_veristand</code> |
| **Frequency (f)**                             | Frequency of the signal expressed in hertz                       | Yes          | From <code class="expression">space.vars.cpu\_model\_veristand</code> |
| **Phase (Φ)**                                 | The phase shift of the signal at t = 0 expressed in degrees      | Yes          | From <code class="expression">space.vars.cpu\_model\_veristand</code> |
| **DC current offset (I**<sub>**0**</sub>**)** | The amplitude offset or bias of the signal expressed in amperes  | Yes          | From <code class="expression">space.vars.cpu\_model\_veristand</code> |

## Conserving ports <a href="#conserving-ports" id="conserving-ports"></a>

| Port   | Description          |
| ------ | -------------------- |
| **p1** | Source positive port |
| **n1** | Source negative port |


---

# 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/ehs/model-in-schematic-editor/library-blocks-reference/sources-blocks/ac-current-source.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.
