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.
Members
- add_curve
- create_dataset
- create_geometry_curve
- create_geometry_dataset
- create_geometry_time_curve
- create_particles_curve
- create_particles_dataset
- create_particles_time_curve
- create_solver_curve
- create_solver_dataset
- create_solver_time_curve
- create_time_curve
- setup_dataset_dimension
- setup_geometry_dataset_dimension
- setup_geometry_time_curve_dimension
- setup_particles_dataset_dimension
- setup_particles_time_curve_dimension
- setup_solver_dataset_dimension
- setup_solver_time_curve_dimension
- setup_time_curve_dimension
- update_dataset
- update_geometry_dataset
- update_geometry_time_curve
- update_particles_dataset
- update_particles_time_curve
- update_solver_dataset
- update_solver_time_curve
- update_time_curve
Public functions
Function create_particles_dataset
IRockyCurveCollectionData::update_particles_dataset during the simulation.
Parameters:
- 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.
- const std::string & name
- const std::string & unit
Function create_solver_dataset
IRockyCurveCollectionData::update_solver_dataset during the simulation.
Parameters:
- 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.
- const std::string & name
- const std::string & unit
Function create_geometry_dataset
IRockyCurveCollectionData::update_geometry_dataset.
Parameters:
- 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.
- int geometry_id
- const std::string & name
- const std::string & unit
Function create_dataset
IRockyCurveCollectionData::update_dataset.
Parameters:
- 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.
- const std::string & owner_name
- const std::string & name
- const std::string & unit
Function create_particles_curve
- domain_dataset: The name of the domain dataset.
- image_dataset: The unit of the image dataset.
- const std::string & domain_dataset
- const std::string & image_dataset
Function create_solver_curve
- domain_dataset: The name of the domain dataset.
- image_dataset: The unit of the image dataset.
- const std::string & domain_dataset
- const std::string & image_dataset
Function create_geometry_curve
- geometry_id: The geometry unique identifier (index)
- domain_dataset: The name of the domain dataset.
- image_dataset: The unit of the image dataset.
- int geometry_id
- const std::string & domain_dataset
- const std::string & image_dataset
Function add_curve
- owner_name: The entity unique identifier (string)
- domain_dataset: The name of the domain dataset.
- image_dataset: The unit of the image dataset.
- const std::string & owner_name
- const std::string & domain_dataset
- const std::string & image_dataset
Function setup_particles_dataset_dimension
IRockyModel object.
Parameters:
- name: The name of the dataset.
- dimension: The appropriate dimensional factor for the dataset.
- const std::string & name
- double dimension
Function setup_solver_dataset_dimension
IRockyModel object.
Parameters:
- name: The name of the dataset.
- dimension: The appropriate dimensional factor for the dataset.
- const std::string & name
- double dimension
Function setup_geometry_dataset_dimension
IRockyModel object.
Parameters:
- geometry_id: The geometry unique identifier (index)
- name: The name of the dataset.
- dimension: The appropriate dimensional factor for the dataset.
- int geometry_id
- const std::string & name
- double dimension
Function setup_dataset_dimension
IRockyModel object.
Parameters:
- owner_name: The entity unique identifier (string)
- name: The name of the dataset.
- dimension: The appropriate dimensional factor for the dataset.
- const std::string & owner_name
- const std::string & name
- double dimension
Function update_particles_dataset
IRockyCurveCollectionData::create_particles_dataset, otherwise it throws an error.
Parameters:
- 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
- const std::string & name
- const double * dataset
- size_t size
Function update_solver_dataset
IRockyCurveCollectionData::create_solver_dataset, otherwise it throws an error.
Parameters:
- 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
- const std::string & name
- const double * dataset
- size_t size
Function update_geometry_dataset
IRockyCurveCollectionData::create_geometry_dataset, otherwise it throws an error.
Parameters:
- 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
- int geometry_id
- const std::string & name
- const double * dataset
- size_t size
Function update_dataset
IRockyCurveCollectionData::create_dataset, otherwise it throws an error.
Parameters:
- 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
- const std::string & owner_name
- const std::string & name
- const double * dataset
- size_t size
Function create_particles_time_curve
IRockyCurveCollectionData::update_particles_time_curve during the simulation.
Parameters:
- 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.
- const std::string & name
- const std::string & unit
Function create_solver_time_curve
IRockyCurveCollectionData::update_solver_time_curve during the simulation.
Parameters:
- 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.
- const std::string & name
- const std::string & unit
Function create_geometry_time_curve
IRockyCurveCollectionData::update_geometry_time_curve.
Parameters:
- 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.
- int geometry_id
- const std::string & name
- const std::string & unit
Function create_time_curve
IRockyCurveCollectionData::update_time_curve during the simulation.
Parameters:
- 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.
- const std::string & owner_name
- const std::string & name
- const std::string & unit
Function setup_particles_time_curve_dimension
IRockyModel object.
Parameters:
- name: The name of the time curve.
- dimension: The appropriate dimensional factor for the time curve.
- const std::string & name
- double dimension
Function setup_solver_time_curve_dimension
IRockyModel object.
Parameters:
- name: The name of the time curve.
- dimension: The appropriate dimensional factor for the time curve.
- const std::string & name
- double dimension
Function setup_geometry_time_curve_dimension
IRockyModel object.
Parameters:
- geometry_id: The geometry unique identifier (index)
- name: The name of the time curve.
- dimension: The appropriate dimensional factor for the time curve.
- int geometry_id
- const std::string & name
- double dimension
Function setup_time_curve_dimension
IRockyModel object.
Parameters:
- 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.
- const std::string & owner_name
- const std::string & name
- double dimension
Function update_particles_time_curve
IRockyCurveCollectionData::create_particles_time_curve, otherwise it throws an error.
Parameters:
- name: The name of the time curve.
- value: The value to be appended into the curve.
- const std::string & name
- double value
Function update_solver_time_curve
IRockyCurveCollectionData::create_solver_time_curve, otherwise it throws an error.
Parameters:
- name: The name of the time curve.
- value: The value to be appended into the curve.
- const std::string & name
- double value
Function update_geometry_time_curve
IRockyCurveCollectionData::create_geometry_time_curve, otherwise it throws an error.
Parameters:
- geometry_id: The geometry unique identifier (index)
- name: The name of the time curve.
- value: The value to be appended into the curve.
- int geometry_id
- const std::string & name
- double value
Function update_time_curve
IRockyCurveCollectionData::create_time_curve, otherwise it throws an error.
Parameters:
- owner_name: The entity unique identifier (string)
- name: The name of the time curve.
- value: The value to be appended into the curve.
- const std::string & owner_name
- const std::string & name
- double value