IRockyGeometryScalarsModel object allows users to create and configure custom geometry scalars. Geometry scalars are special variables that can have a value associated to every geometry defined in the project.
Inherits from:
- ScalarsModel< rocky20::BoundaryScalarsController >
Members
Public functions
Function get_statistics_adder_array
IRockyStatisticsAdder objects currently stored in a given scalar. The size of this array will be equal to the number of geometries in the project, and the contained objects will be ordered according to the geometry indexes.
Parameters:
- scalar_index: The index that identifies the scalar, attributed when it was created.
- int scalar_index
Function get_statistics_accumulator_array
IRockyStatisticsAccumulator objects currently stored in a given scalar. The size of this array will be equal to the number of geometries in the project, and the contained objects will be ordered according to the geometry indexes.
Parameters:
- scalar_index: The index that identifies the scalar, attributed when it was created.
- int scalar_index
Function find
- name: The name given to the scalar at the moment of its creation.
- const char * name
Function add
double:
for storing custom values during a simulation, preserving them between time iterations.
Parameters:
- name: The name given to the scalar variable. The purpose of this name is twofold. First, it enables to find this scalar variable from other module, in order to share their values. Second, if the scalar variable can be displayed in a 3D window as a property, this name will identify it in the Rocky UI.
- unit: A string specifying the unit in S.I. associated to the scalar variable.
- output: Enables/disables the storage in disk at output times, for the visualization and post-processing of the scalar values.
- const char * name
- const char * unit
- bool output = true
Function reset
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- int scalar_index
Function set_dimension
IRockyModel object.
Parameters:
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- dimension_factor: The appropriate dimensional factor for the scalar variable.
- int scalar_index
- double dimension_factor