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

# IRockyCurveCollectionData Struct Reference

`#include <rocky_output_collections_api.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| void | [create\_particles\_dataset](#aa3ea8900da748813b0e1eba05372cb53) (const std::string \&name, const std::string \&unit) |
| void | [create\_geometry\_dataset](#aac6750ba6fce2ee80a5a1fe1edb356e4) (int geometry\_id, const std::string \&name, const std::string \&unit) |
| void | [create\_dataset](#a9d540d1d87039559fe088e897504fd99) (const std::string \&owner\_name, const std::string \&name, const std::string \&unit) |
| void | [create\_particles\_curve](#a88494c4828a9d06cea380ca4d21fdc73) (const std::string \&domain\_dataset, const std::string \&image\_dataset) |
| void | [create\_geometry\_curve](#add0cf572f25fb257dd0f007b53593f21) (int geometry\_id, const std::string \&domain\_dataset, const std::string \&image\_dataset) |
| void | [add\_curve](#a9ac4b935090edf6975d4f46cf74aa86e) (const std::string \&owner\_name, const std::string \&domain\_dataset, const std::string \&image\_dataset) |
| void | [setup\_particles\_dataset\_dimension](#a7942a28df7cd10c70ed086b9d11ebf2b) (const std::string \&name, double dimension) |
| void | [setup\_geometry\_dataset\_dimension](#ab5752c7598d6b2f21c090e470eb50d3b) (int geometry\_id, const std::string \&name, double dimension) |
| void | [setup\_dataset\_dimension](#a4316fe7409b88eb683ed59d60d5b5fae) (const std::string \&owner\_name, const std::string \&name, double dimension) |
| void | [update\_particles\_dataset](#a7f24452610d153c6f8da6e25f7bb1185) (const std::string \&name, const double \*dataset, size\_t size) |
| void | [update\_geometry\_dataset](#aee59308015e7f60c741a0296a1c17a25) (int geometry\_id, const std::string \&name, const double \*dataset, size\_t size) |
| void | [update\_dataset](#a77d905fa54397c6f5b7fdc84795b01a6) (const std::string \&owner\_name, const std::string \&name, const double \*dataset, size\_t size) |
| void | [create\_particles\_time\_curve](#ae638f72f97d27b18d69ad0ded3b26d4b) (const std::string \&name, const std::string \&unit) |
| void | [create\_geometry\_time\_curve](#aab6ad0a64db6e08afcc4c09643f2fbaa) (int geometry\_id, const std::string \&name, const std::string \&unit) |
| void | [create\_time\_curve](#a521adcdec892f96ea7b628c5aa1a3560) (const std::string \&owner\_name, const std::string \&name, const std::string \&unit) |
| void | [setup\_particles\_time\_curve\_dimension](#a230f2f9be559dcb98d57a4e5c7218dd0) (const std::string \&name, double dimension) |
| void | [setup\_geometry\_time\_curve\_dimension](#aa445fbd38bfb1770a1c197f806890908) (int geometry\_id, const std::string \&name, double dimension) |
| void | [setup\_time\_curve\_dimension](#ad43383c1fe177dc20d46ec205f8cb675) (const std::string \&owner\_name, const std::string \&name, double dimension) |
| void | [update\_particles\_time\_curve](#a650d74b4c42f6d63489f98ee5835d942) (const std::string \&name, double value) |
| void | [update\_geometry\_time\_curve](#a3da24f758d62665100b5c43b8f1075d9) (int geometry\_id, const std::string \&name, double value) |
| void | [update\_time\_curve](#a024664c7b45eb7a6728a3207eeb82ee3) (const std::string \&owner\_name, const std::string \&name, double value) |

## Detailed Description

[`IRockyCurveCollectionData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyCurveCollectionData) is a data structure intended to hold data that will be used by Rocky to create a custom collection of cross plot curves and/or time curves for particles and geometries.

A curve is composed of a pair of domain and image datasets. A dataset is a set of values that may change over time in values and size. When creating a dataset, one must provide its name and unit. During the simulation, such datasets must be updated with custom data, which will be written on disk by Rocky at output times. The most adequate hook to perform that data update is `ROCKY_PLUGIN_PRE_OUTPUT`, because it is executed immediately before the data output. However, depending on the particular needs of the module, that operation can be done in other hooks as well. After an output operation, all dataset values are automatically erased, and must be updated again for the next output. At any given output, a domain and an image datasets for a cross-plot curve must have the same size, otherwise an error will be thrown.

## Member Function Documentation

### add\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::add_curve(
    const std::string & owner_name,
    const std::string & domain_dataset,
    const std::string & image_dataset
)
```

**This method creates a curve by specifying the names of domain and image datasets. Such**

curve is related to a given named entity. Shown within the Rocky UI as a curve.

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| domain\_dataset | The name of the domain dataset. |
| image\_dataset | The unit of the image dataset. |

### create\_dataset()

```cpp theme={null}
void IRockyCurveCollectionData::create_dataset(
    const std::string & owner_name,
    const std::string & name,
    const std::string & unit
)
```

**This method creates a dataset by specifying its name and the unit of the**

physical magnitude associated. Such dataset is related to a given named owner entity. Initially empty, the dataset must be updated with values during the simulation by using [`IRockyCurveCollectionData::update_dataset`](#a77d905fa54397c6f5b7fdc84795b01a6).

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| name | The name of the dataset. |
| unit | The unit of the related magnitude, which will be associated to an axis of the cross plot where the dataset will be displayed. |

### create\_geometry\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::create_geometry_curve(
    int geometry_id,
    const std::string & domain_dataset,
    const std::string & image_dataset
)
```

**This method creates a curve by specifying the names of domain and image datasets. Such**

curve is related to a geometry. Shown within the Rocky UI as a curve.

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| domain\_dataset | The name of the domain dataset. |
| image\_dataset | The unit of the image dataset. |

### create\_geometry\_dataset()

```cpp theme={null}
void IRockyCurveCollectionData::create_geometry_dataset(
    int geometry_id,
    const std::string & name,
    const std::string & unit
)
```

**This method creates a dataset related to a geometry by specifying**

its name and the unit of the associated physical magnitude. Initially empty, the dataset must be updated with values by using [`IRockyCurveCollectionData::update_geometry_dataset`](#aee59308015e7f60c741a0296a1c17a25).

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| name | The name of the dataset. |
| unit | The unit of the related magnitude, which will be associated to an axis of the cross plot where the dataset will be displayed. |

### create\_geometry\_time\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::create_geometry_time_curve(
    int geometry_id,
    const std::string & name,
    const std::string & unit
)
```

**This method creates a time curve associated to a specific geometry, by specifying its**

name and the unit of the physical magnitude associated. Initially empty, the time curve must be filled with data during a simulation by using [`IRockyCurveCollectionData::update_geometry_time_curve`](#a3da24f758d62665100b5c43b8f1075d9).

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| name | The name of the time curve. Shown within the Rocky UI as the curve label. |
| unit | The unit of the magnitude displayed in the vertical axis of the time curve. |

### create\_particles\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::create_particles_curve(
    const std::string & domain_dataset,
    const std::string & image_dataset
)
```

**This method creates a curve by specifying the names of domain and image datasets. Such**

curve is related to particles. Shown within the Rocky UI as a curve.

**Parameters**

| Name | Description |
| - | - |
| domain\_dataset | The name of the domain dataset. |
| image\_dataset | The unit of the image dataset. |

### create\_particles\_dataset()

```cpp theme={null}
void IRockyCurveCollectionData::create_particles_dataset(
    const std::string & name,
    const std::string & unit
)
```

**This method creates a dataset related to particles by specifying its name**

and the unit of the physical magnitude associated. Initially empty, the dataset must be updated with values by using [`IRockyCurveCollectionData::update_particles_dataset`](#a7f24452610d153c6f8da6e25f7bb1185) during the simulation.

**Parameters**

| Name | Description |
| - | - |
| name | The name of the dataset. |
| unit | The unit of the related magnitude, which will be associated to an axis of the cross plot where the dataset will be displayed. |

### create\_particles\_time\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::create_particles_time_curve(
    const std::string & name,
    const std::string & unit
)
```

**This method creates a time curve associated to particles by specifying its name and the**

unit of the physical magnitude associated. Initially empty, the curve must be filled with data by using [`IRockyCurveCollectionData::update_particles_time_curve`](#a650d74b4c42f6d63489f98ee5835d942) during the simulation.

**Parameters**

| Name | Description |
| - | - |
| name | The name of the time curve. Shown within the Rocky UI as the curve label. |
| unit | The unit of the magnitude displayed in the vertical axis of the time curve. |

### create\_time\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::create_time_curve(
    const std::string & owner_name,
    const std::string & name,
    const std::string & unit
)
```

**This method creates a time curve associated to a given entity by specifying its**

name and the unit of the physical magnitude associated. Initially empty, the time curve must be filled with data by using [`IRockyCurveCollectionData::update_time_curve`](#a024664c7b45eb7a6728a3207eeb82ee3) during the simulation.

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| name | The name of the time curve. Shown within the Rocky UI as the curve label. |
| unit | The unit of the magnitude displayed in the vertical axis of the time curve. |

### setup\_dataset\_dimension()

```cpp theme={null}
void IRockyCurveCollectionData::setup_dataset_dimension(
    const std::string & owner_name,
    const std::string & name,
    double dimension
)
```

**The purpose of this method is to associate a dimensional factor to a dataset.**

This factor will be used to nondimensionalize their values for calculations. Dimensional factors for the fundamental magnitudes are provided by functions of a [`IRockyModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyModel) object.

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| name | The name of the dataset. |
| dimension | The appropriate dimensional factor for the dataset. |

### setup\_geometry\_dataset\_dimension()

```cpp theme={null}
void IRockyCurveCollectionData::setup_geometry_dataset_dimension(
    int geometry_id,
    const std::string & name,
    double dimension
)
```

**The purpose of this method is to associate a dimensional factor to a dataset.**

This factor will be used to nondimensionalize their values for the calculations. Dimensional factors for the fundamental magnitudes are provided by functions of a [`IRockyModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyModel) object.

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| name | The name of the dataset. |
| dimension | The appropriate dimensional factor for the dataset. |

### setup\_geometry\_time\_curve\_dimension()

```cpp theme={null}
void IRockyCurveCollectionData::setup_geometry_time_curve_dimension(
    int geometry_id,
    const std::string & name,
    double dimension
)
```

**The purpose of this method is to associate a dimensional factor to a time curve.**

This factor will be used to nondimensionalize their values. Dimensional factors for the fundamental magnitudes are provided by functions of a [`IRockyModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyModel) object.

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| name | The name of the time curve. |
| dimension | The appropriate dimensional factor for the time curve. |

### setup\_particles\_dataset\_dimension()

```cpp theme={null}
void IRockyCurveCollectionData::setup_particles_dataset_dimension(
    const std::string & name,
    double dimension
)
```

**The purpose of this method is to associate a dimensional factor to a dataset.**

This factor will be used to nondimensionalize their values for the calculations. Dimensional factors for the fundamental magnitudes are provided by functions of a [`IRockyModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyModel) object.

**Parameters**

| Name | Description |
| - | - |
| name | The name of the dataset. |
| dimension | The appropriate dimensional factor for the dataset. |

### setup\_particles\_time\_curve\_dimension()

```cpp theme={null}
void IRockyCurveCollectionData::setup_particles_time_curve_dimension(
    const std::string & name,
    double dimension
)
```

**The purpose of this method is to associate a dimensional factor to a time curve.**

This factor will be used to nondimensionalize their values. Dimensional factors for the fundamental magnitudes are provided by functions of a [`IRockyModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyModel) object.

**Parameters**

| Name | Description |
| - | - |
| name | The name of the time curve. |
| dimension | The appropriate dimensional factor for the time curve. |

### setup\_time\_curve\_dimension()

```cpp theme={null}
void IRockyCurveCollectionData::setup_time_curve_dimension(
    const std::string & owner_name,
    const std::string & name,
    double dimension
)
```

**The purpose of this method is to associate a dimensional factor to a time curve.**

This factor will be used to nondimensionalize their values. Dimensional factors for the fundamental magnitudes are provided by functions of a [`IRockyModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyModel) object.

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| name | The name of the time curve. Shown within the Rocky UI as the curve label. |
| dimension | The appropriate dimensional factor for the time curve. |

### update\_dataset()

```cpp theme={null}
void IRockyCurveCollectionData::update_dataset(
    const std::string & owner_name,
    const std::string & name,
    const double * dataset,
    size_t size
)
```

**This method updates a dataset by inserting new dataset values.**

Intended to be used only at output times. The dataset to be added should correspond to the output time at which this method is called. It only works with datasets previously created using [`IRockyCurveCollectionData::create_dataset`](#a9d540d1d87039559fe088e897504fd99), otherwise it throws an error.

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| name | The name of the dataset. |
| dataset | A data pointer to the new dataset data to be copied into dataset. |
| size | The number of elements of the given dataset |

### update\_geometry\_dataset()

```cpp theme={null}
void IRockyCurveCollectionData::update_geometry_dataset(
    int geometry_id,
    const std::string & name,
    const double * dataset,
    size_t size
)
```

**This method updates a dataset by inserting new dataset values.**

Intended to be used only at output times. The dataset to be added should correspond to the output time at which this method is called. It only works with datasets previously created using [`IRockyCurveCollectionData::create_geometry_dataset`](#aac6750ba6fce2ee80a5a1fe1edb356e4), otherwise it throws an error.

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| name | The name of the dataset. |
| dataset | A data pointer to the new dataset data to be copied into dataset. |
| size | The number of elements of the given dataset |

### update\_geometry\_time\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::update_geometry_time_curve(
    int geometry_id,
    const std::string & name,
    double value
)
```

**This method updates a time curve by inserting a new value.**

Intended to be used only at output times. The value to be added should correspond to the output time at which this method is called. It only works with time curves previously created using [`IRockyCurveCollectionData::create_geometry_time_curve`](#aab6ad0a64db6e08afcc4c09643f2fbaa), otherwise it throws an error.

**Parameters**

| Name | Description |
| - | - |
| geometry\_id | The geometry unique identifier (index) |
| name | The name of the time curve. |
| value | The value to be appended into the curve. |

### update\_particles\_dataset()

```cpp theme={null}
void IRockyCurveCollectionData::update_particles_dataset(
    const std::string & name,
    const double * dataset,
    size_t size
)
```

**This method updates a dataset by inserting new values.**

Intended to be used only at output times. The dataset to be added should correspond to the output time at which this method is called. It only works with datasets previously created using [`IRockyCurveCollectionData::create_particles_dataset`](#aa3ea8900da748813b0e1eba05372cb53), otherwise it throws an error.

**Parameters**

| Name | Description |
| - | - |
| name | The name of the dataset. |
| dataset | A data pointer to the new dataset data to be copied into dataset. |
| size | The number of elements of the given dataset |

### update\_particles\_time\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::update_particles_time_curve(
    const std::string & name,
    double value
)
```

**This method updates a time curve by inserting a new value.**

Intended to be used only at output times. The value to be added should correspond to the output time at which this method is called. It only works with time curves previously created using [`IRockyCurveCollectionData::create_particles_time_curve`](#ae638f72f97d27b18d69ad0ded3b26d4b), otherwise it throws an error.

**Parameters**

| Name | Description |
| - | - |
| name | The name of the time curve. |
| value | The value to be appended into the curve. |

### update\_time\_curve()

```cpp theme={null}
void IRockyCurveCollectionData::update_time_curve(
    const std::string & owner_name,
    const std::string & name,
    double value
)
```

**This method updates a time curve by inserting a new value.**

Intended to be used only at output times. The value to be added should correspond to the output time at which this method is called. It only works with time curves previously created using [`IRockyCurveCollectionData::create_time_curve`](#a521adcdec892f96ea7b628c5aa1a3560), otherwise it throws an error.

**Parameters**

| Name | Description |
| - | - |
| owner\_name | The entity unique identifier (string) |
| name | The name of the time curve. |
| value | The value to be appended into the curve. |
