IRockySPHElementHost is the host counterpart of IRockySPHElement. Both share the same data, the main difference between them is that the data of IRockySPHElementHost resides within the host memory; therefore, it is used exclusively within initialization hooks, which are executed always in the host.
!> Attention This class is deprecated in favor of IRockySPHElement and will be removed in Rocky version 25.2 Inherits from:
Members
- add_acceleration
- add_force
- get_acceleration
- get_density
- get_force
- get_kernel
- get_kernel_derivative
- get_linked_dem_particle
- get_linked_dem_particle
- get_mass
- get_molecular_viscosity
- get_normal
- get_position
- get_pressure
- get_refinement_count
- get_release_time
- get_scalars
- get_size
- get_smoothing_length
- get_strain_rate_tensor
- get_temperature
- get_velocity
- is_dem_coupled
- is_enabled
- is_frozen
- set_frozen
- set_marked_for_refinement
- set_molecular_viscosity
- set_skip_for_coarsening
Public functions
Function get_linked_dem_particle
IRockyParticleHost object representing the DEM particle linked to the SPH particle, if the latter is actually a DEM-coupled SPH element.
Parameters:
- IRockyModel & model
Function is_dem_coupled
Function get_density
Function get_pressure
Function get_release_time
Function get_position
Function get_velocity
Function get_normal
Function get_force
Function get_acceleration
Function get_scalars
IRockySPHElementScalars object that gives access to all SPH element scalars variables defined in the project.
Return type: IRockySPHElementScalars
Function get_strain_rate_tensor
SymmetricTensor<float> object that represents the strain rate tensor of the element. To get strain rate, please enable the Gradient Velocity Scalars by calling IRockySPHElementScalarsModel::enable_gradient_velocity() at setup hook.
Return type: ROCKY_FUNCTIONS SymmetricTensor< float >