Skip to main content
#include <rocky_boundary_scalars.hpp> Inherits ScalarsModel< rocky20::BoundaryScalarsController >.

Public Member Functions

Detailed Description

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

Member Function Documentation

add()

This method creates a new scalar variable of type double for storing custom values during a simulation, preserving them between time iterations. Parameters Returns The index that will uniquely identify the scalar variable during the execution of the simulation.

find()

This method searches for a scalar variable already created by other modules, in order to allow access to its values, or store new values on it, during the execution of the simulation. Parameters Returns The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.

get_statistics_accumulator_array()

Returns The array of all 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

get_statistics_adder_array()

Returns The array of all 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

reset()

This method resets to zero all values stored in a scalar variable. Parameters

set_dimension()

The purpose of this method is to associate a dimensional factor to a scalar variable. This factor will be used to nondimensionalize their values. For instance, if the scalar represents a force, a force dimensional factor must be associated through this method. Dimensional factors for the fundamental magnitudes are provided by functions of a IRockyModel object. Parameters