#include <rocky_triangle_scalars.hpp>
Inherits ScalarsModel< rocky20::TriangleScalarsController >.
Public Member Functions
Detailed Description
IRockyTriangleScalarsModel allows users to add new triangle scalars, find triangle scalars created in other modules or activate triangle scalars known to Rocky, during the setup phase of a module. Triangle scalars are special variables attached to boundary triangles, which are able to store values per triangle that are preserved between time iterations during a simulation.
Member Function Documentation
add()
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.
add_accumulation_scalar()
data_type for storing custom values during a simulation, preserving them between time iterations. The scalar added with this method has a special behavior defined for pulling data from devices in multi-gpu simulations: It will accumulate those values in the host memory.
Parameters
Returns
The index that will uniquely identify the scalar variable during the execution of the simulation.
calculate_sum_over_geometries()
double or IRockyStatisticsAccumulator.
enable_storage_of_exchanged_heat()
IRockyTriangleScalarsModel::reset_exchanged_heat() function.
find()
Returns
The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.
pull_scalar_from_devices()
push_scalar_to_devices()
reset()
reset_exchanged_heat()
ROCKY_PLUGIN_BEGIN_ITERATION hook. In that case, at the end of an iteration, a custom module can get the value of the total heat received by each triangle during the last timestep.
set_dimension()
IRockyModel object.
Parameters