IRockySPHElementScalars object gives access to all SPH element scalars defined in the project. These SPH element scalars can be built-in scalars defined within the Rocky solver, or custom SPH element scalars defined by the current module or other active modules.
Inherits from:
- EntityScalars< rocky20::SPHParticleScalars >
Members
- add_heat_transfer
- add_scalar
- add_temperature
- add_turbulent_viscosity
- get_heat_transfer
- get_scalar
- get_temperature
- get_turbulent_viscosity
- get_velocity_gradient_x
- get_velocity_gradient_y
- get_velocity_gradient_z
- max_scalar
- set_heat_transfer
- set_scalar
- set_temperature
- set_turbulent_viscosity
Public functions
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 get_turbulent_viscosity
Function get_temperature
Function get_heat_transfer
Function get_velocity_gradient_x
IRockySPHElementScalarsModel::enable_gradient_velocity() at setup hook.
Return type: ROCKY_FUNCTIONS float3
Function get_velocity_gradient_y
IRockySPHElementScalarsModel::enable_gradient_velocity() at setup hook.
Return type: ROCKY_FUNCTIONS float3
Function get_velocity_gradient_z
IRockySPHElementScalarsModel::enable_gradient_velocity() at setup hook.
Return type: ROCKY_FUNCTIONS float3
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
- _data_type value
Function set_turbulent_viscosity
- value: The value of the turbulent viscosity.
- const float value
Function set_temperature
- value: The value of the temperature to be set.
- const float value
Function set_heat_transfer
- value: The value of the heat transfer rate to be set.
- const float 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
- _data_type value
Function add_turbulent_viscosity
- value: The value summed to the turbulent viscosity.
- const float value
Function add_temperature
- value: The value to be added to the temperature.
- const float value
Function add_heat_transfer
- value: The heat transfer rate value to be added.
- const float 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
- _data_type value