> ## 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.

# IRockyPluginData Class Reference

`#include <rocky_plugin_data.h>`

## Public Member Functions

| Type | Name |
| - | - |
| [IRockyPluginDataEntry](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry.md) | [get\_model](#ab65c417ed40c1bab14987f959c095b7d) () const |
| bool | [has\_material\_interaction\_data](#aefed471c915106b82ca654eef4a03042) () const |
| int | [get\_number\_material\_interactions](#a90cc066bcc4f454a5c9d21d69bf57e9e) () const |
| [IRockyPluginDataEntry](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry.md) | [get\_material\_interaction\_data](#a78c76a74cd026948ee16f3b6b4718356) (int index) const |
| bool | [has\_geometry\_data](#a46306bc4ec8fe3a85efc85c37b78fdfb) () const |
| int | [get\_number\_geometries](#a413adf0e206156e543c8dd170eee387e) () const |
| [IRockyPluginDataEntry](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry.md) | [get\_geometry\_data](#ae830fad6e94d455f0e4ad57df4b981de) (int index) const |
| bool | [has\_particle\_group\_data](#af000e5f6b3f1d9f454233b01c8a43515) () const |
| int | [get\_number\_particle\_groups](#a7a39deb0a0b9b782ad0e74e82bc027ce) () const |
| [IRockyPluginDataEntry](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry.md) | [get\_particle\_group\_data](#a224e42565c6730227d5f85c8d0f0004f) (int index) const |
| bool | [has\_material\_data](#af8d04f332d01ab25b7a375552072db2a) () const |
| int | [get\_number\_materials](#ae0a075e183d876a183d37f2c7e818ca4) () const |
| [IRockyPluginDataEntry](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry.md) | [get\_material\_data](#a5c7b4ed26d1a6787279d2c531444666b) (int index) const |

## Detailed Description

[`IRockyPluginData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginData) gathers custom module data entered manually through the Rocky UI. In order to appear on the Rocky UI, custom modules parameters must be specified in the Python file that defines the components of the module. An [`IRockyPluginData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginData) object is only available during the configuration step in `ROCKY_PLUGIN_CONFIGURE`.

## Member Function Documentation

### get\_geometry\_data()

```cpp theme={null}
IRockyPluginDataEntry IRockyPluginData::get_geometry_data(int index) const
```

**Returns**

An [`IRockyPluginDataEntry`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry) object that gives access to the values entered through the Rocky UI, if they exist, for all parameters associated specifically to the module defined in the *geometry* (boundaries) section.

**Parameters**

| Name | Description |
| - | - |
| index | The index that uniquely identifies the specific geometry whose data must be retrieved. |

### get\_material\_data()

```cpp theme={null}
IRockyPluginDataEntry IRockyPluginData::get_material_data(int index) const
```

**Returns**

An [`IRockyPluginDataEntry`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry) object that gives access to the values entered through the Rocky UI, if they exist, for all parameters associated specifically to the module defined in the *material* section.

**Parameters**

| Name | Description |
| - | - |
| index | The index that uniquely identifies the specific material whose data must be retrieved. |

### get\_material\_interaction\_data()

```cpp theme={null}
IRockyPluginDataEntry IRockyPluginData::get_material_interaction_data(int index) const
```

**Returns**

An [`IRockyPluginDataEntry`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry) object that gives access to the values entered through the Rocky UI, if they exist, for all parameters defined in the *material interactions* section of the module.

**Parameters**

| Name | Description |
| - | - |
| index | The index that uniquely identifies the specific material interaction whose data must be retrieved. |

### get\_model()

```cpp theme={null}
IRockyPluginDataEntry IRockyPluginData::get_model() const
```

**Returns**

An [`IRockyPluginDataEntry`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry) object that gives access to the values entered through the Rocky UI for all parameters in the *model* section of the module. These parameters are displayed in the \[Data Editors] panel when the module is selected in the data tree.

### get\_number\_geometries()

```cpp theme={null}
int IRockyPluginData::get_number_geometries() const
```

**Returns**

The total number of geometries (boundaries) in the project.

### get\_number\_material\_interactions()

```cpp theme={null}
int IRockyPluginData::get_number_material_interactions() const
```

**Returns**

The total number of material interactions that it is possible to define with the current materials defined in the Rocky project.

### get\_number\_materials()

```cpp theme={null}
int IRockyPluginData::get_number_materials() const
```

**Returns**

The total number of materials defined in the project.

### get\_number\_particle\_groups()

```cpp theme={null}
int IRockyPluginData::get_number_particle_groups() const
```

**Returns**

The total number of particle groups defined in the project.

### get\_particle\_group\_data()

```cpp theme={null}
IRockyPluginDataEntry IRockyPluginData::get_particle_group_data(int index) const
```

**Returns**

An [`IRockyPluginDataEntry`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/classIRockyPluginDataEntry) object that gives access to the values entered through the Rocky UI, if they exist, for all parameters associated specifically to the module defined in the *particle group* section.

**Parameters**

| Name | Description |
| - | - |
| index | The index that uniquely identifies the specific particle group whose data must be retrieved. |

### has\_geometry\_data()

```cpp theme={null}
bool IRockyPluginData::has_geometry_data() const
```

**Returns**

True if there is geometry data defined for the module, false otherwise.

### has\_material\_data()

```cpp theme={null}
bool IRockyPluginData::has_material_data() const
```

**Returns**

True if there is any material property data defined for the module, false otherwise.

### has\_material\_interaction\_data()

```cpp theme={null}
bool IRockyPluginData::has_material_interaction_data() const
```

**Returns**

True if there is custom material interaction data defined for the module, false otherwise.

### has\_particle\_group\_data()

```cpp theme={null}
bool IRockyPluginData::has_particle_group_data() const
```

**Returns**

True if there is particle group data defined for the module, false otherwise.
