IRockyTriangleScalars object gives access to all triangle scalars defined in the project. These triangle scalars can be built-in scalars defined in the solver, or custom triangle scalars defined by the current module or other active modules.
Inherits from:
- EntityScalars< rocky20::TriangleScalars >
Members
- add_scalar
- get_exchanged_heat
- get_poisson_ratio
- get_scalar
- get_thermal_conductivity
- max_scalar
- set_poisson_ratio
- set_scalar
- set_thermal_conductivity
Public functions
Function get_thermal_conductivity
Function set_thermal_conductivity
- value: The value of the triangle’s thermal conductivity.
- const double value
Function get_poisson_ratio
Function set_poisson_ratio
- value: The value of the Poisson’s ratio for the geometry triangle.
- const double value
Function get_exchanged_heat
ROCKY_PLUGINS_POST_MOVE hook. Moreover, the heat values are stored only if the IRockyTriangleScalarsModel::enable_storage_sph_exchanged_heat() function is called during initialization. If that operation is not done, any call to this function during simulation will cause a segmentation fault.
Return type: ROCKY_FUNCTIONS double
Function get_scalar
- scalar_index: The integer index that was associated to the scalar variable during the setup of the module.
- int scalar_index
Function set_scalar
- scalar_index: The integer index that was associated to the scalar variable during the setup of the module.
- value: The value that must be stored.
- int scalar_index
- double value
Function add_scalar
- scalar_index: The integer index that was associated to the scalar variable during the setup of the module.
- value: The value that must be summed to the current stored value.
- int scalar_index
- double value
Function max_scalar
- scalar_index: The integer index that was associated to the scalar variable during the setup of the module.
- value: A value that must be checked if it is greater than the current stored value.
- int scalar_index
- double value