IRockySPHElement is the code representation of an individual SPH element, which is the basic unit for representing the fluid flow in a SPH model. It has several methods to access the values of physical properties carried by the SPH elements, as well as _ SPH element scalars_, which are special variables that store custom property values per SPH element that are preserved between time iterations.
Inherited by:
Members
- add_acceleration
- add_force
- get_acceleration
- get_density
- get_force
- get_kernel
- get_kernel_derivative
- 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
IRockyParticle object representing the DEM particle linked to the SPH particle, if the latter is actually a DEM-coupled SPH element.
Parameters:
- IRockyDeviceModel & model
Function add_force
- force: The added force vector, expressed in Cartesian coordinates.
- const float3 & force
Function add_acceleration
- acceleration: The added acceleration vector, expressed in Cartesian coordinates.
- const float3 & acceleration
Function is_enabled
Function set_frozen
true, the solution of the motion equations for it is skipped.
Parameters:
- frozen: True if the particle should be frozen. False, otherwise.
- bool frozen
Function is_frozen
Function is_dem_coupled
Function get_density
Function get_pressure
Function get_temperature
Function get_release_time
Function get_position
Function get_velocity
Function get_normal
Function get_force
Function get_acceleration
Function get_kernel
- distance: The distance from the SPH element to the point at which the kernel function will be evaluated.
- near_element: The near element used to calculate the average smoothing length.
- const float distance
- const IRockySPHElement & near_element
Function get_kernel_derivative
- distance: The distance from the SPH element to the point at which the kernel function will be evaluated.
- near_element: The near element used to calculate the average smoothing length.
- const float distance
- const IRockySPHElement & near_element
Function get_mass
Function get_smoothing_length
Function get_size
Function get_scalars
IRockySPHElementScalars object that gives access to all SPH element scalars variables defined in the project.
Return type: ROCKY_FUNCTIONS 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 >
Function get_molecular_viscosity
Function set_molecular_viscosity
- const float molecular_viscosity
Function get_refinement_count
Function set_marked_for_refinement
- bool mark_for_refinement = true
Function set_skip_for_coarsening
- bool skip_for_coarsening = true