Skip to main content
#include <rocky_output_collections_api.hpp>

Public Member Functions

Detailed Description

IRockyCurveCollectionData 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()

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

create_dataset()

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

create_geometry_curve()

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

create_geometry_dataset()

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

create_geometry_time_curve()

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

create_particles_curve()

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

create_particles_dataset()

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 during the simulation. Parameters

create_particles_time_curve()

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 during the simulation. Parameters

create_time_curve()

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 during the simulation. Parameters

setup_dataset_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 object. Parameters

setup_geometry_dataset_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 object. Parameters

setup_geometry_time_curve_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 object. Parameters

setup_particles_dataset_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 object. Parameters

setup_particles_time_curve_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 object. Parameters

setup_time_curve_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 object. Parameters

update_dataset()

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, otherwise it throws an error. Parameters

update_geometry_dataset()

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, otherwise it throws an error. Parameters

update_geometry_time_curve()

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, otherwise it throws an error. Parameters

update_particles_dataset()

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, otherwise it throws an error. Parameters

update_particles_time_curve()

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, otherwise it throws an error. Parameters

update_time_curve()

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, otherwise it throws an error. Parameters