> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sysc::Region Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a class for a System Coupling region.

`#include <Region.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [Region](#a9a3643efd6eb393f07a5e0db931dc71d) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&name) Create region to be used in a coupled analysis. |
| | [Region](#a2252ae93ab73cff96e3ba621d9e29171) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&name, enum [Topology](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadbbc75f28fce0c9b5b31fa64bb8b1e39) topology) Create region to be used in a coupled analysis. |
| | [Region](#ae497ce9374217eaf46630abc28cb8ccf) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&name, enum [Topology](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadbbc75f28fce0c9b5b31fa64bb8b1e39) topology, const [DisplayName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga708d69b0e949d6a42b6a0d7885eed90f) \&displayName) Create region to be used in a coupled analysis. |
| | [Region](#a1ef115d09f9dc1c7a1670727b41f9509) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&name, enum [Topology](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadbbc75f28fce0c9b5b31fa64bb8b1e39) topology, enum [RegionDiscretizationType](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga59080d26b5838a6c678ee5f0d6ff63a4) regionDiscretizationType) Create region to be used in a coupled analysis. |
| | [Region](#ac7b2a140a74fb4a6b857336316b4dd48) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&name, enum [Topology](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadbbc75f28fce0c9b5b31fa64bb8b1e39) topology, const [DisplayName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga708d69b0e949d6a42b6a0d7885eed90f) \&displayName, enum [RegionDiscretizationType](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga59080d26b5838a6c678ee5f0d6ff63a4) regionDiscretizationType) Create region to be used in a coupled analysis. |
| void | [addInputVariable](#a018cbfef9eee8c3d2cd3b20084783390) (const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) \&variable) Provide a method to add an input variable to the region. |
| void | [addOutputVariable](#a96143a5b4d943e47d335d74fa1f827be) (const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) \&variable) Provide a method to add an output variable to the region. |
| const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) & | [getName](#a027b247f71dca6060a9d4f8fe029b690) () const noexcept Get the region's name. |
| [Topology](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadbbc75f28fce0c9b5b31fa64bb8b1e39) | [getTopology](#a55d078aeaec8518bbe4468e41a053c1c) () const noexcept Get the region's topology. |
| const [DisplayName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga708d69b0e949d6a42b6a0d7885eed90f) & | [getDisplayName](#a11125400c1f87ced8251759d2ff84c1b) () const noexcept Get the region's display name. |
| [RegionDiscretizationType](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga59080d26b5838a6c678ee5f0d6ff63a4) | [getRegionDiscretizationType](#a25fc09a4236bf1cefbac4e5ff4b9736b) () const noexcept Get the region's mesh type. |
| const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getInputVariable](#a724b202ad1c95f18e0c01e9b962c8eed) (const [VariableName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga500337cdc8405b3e819ca3623bb44266) \&name) const Get the region's input variable by name. |
| const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getOutputVariable](#a7ebc9675c1f8e56560409233469e4932) (const [VariableName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga500337cdc8405b3e819ca3623bb44266) \&name) const Get the region's output variable by name. |
|  std::size\_t | [getNumOutputVariables](#ada5d320ba7226a798ac5683fd878035a) () const noexcept Provide a method to get number of output variables for this region. |
|  std::size\_t | [getNumInputVariables](#ac7632c3c0b045c7baf3aef7aaa7a4c86) () const noexcept Provide a method to get number of input variables for this region. |
|  const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getOutputVariable](#aabcde4869fae1d5f3bed4a4ee7277ef9) (std::size\_t index) const Get the region's output variable by index. |
|  const [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) & | [getInputVariable](#a15d47e3c4989a29033ba306b186e0c50) (std::size\_t index) const Get the region's input variable by index. |

## Detailed Description

Provide a class for a System Coupling region.

Participant can declare which regions can be used in the coupled analysis. Each region can declare its input variables and output variables. Input variables represent physical quantities whose values the participant expects System Coupling to provide. Output variables represent physical quantities whose values System Coupling expects the participant to provide.

Definition at line [30](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/Region_8hpp_source) of file [Region.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/Region_8hpp_source).

## Constructor & Destructor Documentation

### Region() \[1/5]

```cpp theme={null}
sysc::Region::Region(const RegionName & name)
```

Create region to be used in a coupled analysis.

**Parameters**

| Name | Description |
| - | - |
| name | - Unique name for this region. |

Display name will default to the same as name.

Topology will default to surface.

[Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) mesh type will default to mesh.

### Region() \[2/5]

```cpp theme={null}
sysc::Region::Region(
    const RegionName & name,
    enum Topology topology
)
```

Create region to be used in a coupled analysis.

**Parameters**

| Name | Description |
| - | - |
| name | - Unique name for this region. |
| topology | - region topology. |

Display name will default to the same as name.

[Region](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Region.md) mesh type will default to mesh.

### Region() \[3/5]

```cpp theme={null}
sysc::Region::Region(
    const RegionName & name,
    enum Topology topology,
    const DisplayName & displayName
)
```

Create region to be used in a coupled analysis.

**Parameters**

| Name | Description |
| - | - |
| name | - Unique name for this region. |
| topology | - region topology. |
| displayName | - region display name. |

Mesh type will default to mesh.

### Region() \[4/5]

```cpp theme={null}
sysc::Region::Region(
    const RegionName & name,
    enum Topology topology,
    enum RegionDiscretizationType regionDiscretizationType
)
```

Create region to be used in a coupled analysis.

**Parameters**

| Name | Description |
| - | - |
| name | - Unique name for this region. |
| topology | - region topology. |
| regionDiscretizationType | - region discretization type. |

Display name will default to the same as name.

### Region() \[5/5]

```cpp theme={null}
sysc::Region::Region(
    const RegionName & name,
    enum Topology topology,
    const DisplayName & displayName,
    enum RegionDiscretizationType regionDiscretizationType
)
```

Create region to be used in a coupled analysis.

**Parameters**

| Name | Description |
| - | - |
| name | - Unique name for this region. |
| topology | - region topology. |
| displayName | - region display name. |
| regionDiscretizationType | - region mesh type. |

## Member Function Documentation

### addInputVariable()

```cpp theme={null}
void sysc::Region::addInputVariable(const Variable & variable)
```

Provide a method to add an input variable to the region.

If this variable has already been added to the region as an input variable, then this call will have no effect.

If a different variable with the same name has already been added to the region as an input variable, then a runtime error will be thrown.

If a variable with the same name has already been added to the region as an output variable, then a runtime error will be thrown.

If the variable name contains invalid characters, a runtime error will be thrown.

If the region discretization type is point cloud, then the location of the variable added to this region is insignificant.

**Parameters**

| Name | Description |
| - | - |
| variable | [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) whose values are provided by System Coupling and consumed by the participant. |

### addOutputVariable()

```cpp theme={null}
void sysc::Region::addOutputVariable(const Variable & variable)
```

Provide a method to add an output variable to the region.

If this variable has already been added to the region as an output variable, then this call will have no effect.

If a different variable with the same name has already been added to the region as an output variable, then a runtime error will be thrown.

If a variable with the same name has already been added to the region as an input variable, then a runtime error will be thrown.

If the variable name contains invalid characters, a runtime error will be thrown.

If the region discretization type is point cloud, then the location of the variable added to this region is insignificant.

**Parameters**

| Name | Description |
| - | - |
| variable | [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) whose values are provided by the participant and consumed by System Coupling. |

### getDisplayName()

```cpp theme={null}
const DisplayName & sysc::Region::getDisplayName() const
```

`noexcept`

Get the region's display name.

**Returns**

Return value is the display name of this region.

### getInputVariable()

```cpp theme={null}
const Variable & sysc::Region::getInputVariable(const VariableName & name) const
```

Get the region's input variable by name.

**Parameters**

| Name | Description |
| - | - |
| name | Name of the desired input variable. |

**Returns**

Return is the [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) object that was requested.

### getName()

```cpp theme={null}
const RegionName & sysc::Region::getName() const
```

`noexcept`

Get the region's name.

**Returns**

Return value is the region's unique name (string).

### getOutputVariable()

```cpp theme={null}
const Variable & sysc::Region::getOutputVariable(const VariableName & name) const
```

Get the region's output variable by name.

**Parameters**

| Name | Description |
| - | - |
| name | Name of the desired output variable. |

**Returns**

Return is the [Variable](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1Variable.md) object that was requested.

### getRegionDiscretizationType()

```cpp theme={null}
RegionDiscretizationType sysc::Region::getRegionDiscretizationType() const
```

`noexcept`

Get the region's mesh type.

**Returns**

Return value is the mesh type of this region.

### getTopology()

```cpp theme={null}
Topology sysc::Region::getTopology() const
```

`noexcept`

Get the region's topology.

**Returns**

Return value is the topology of this region.
