Skip to main content
#include <rocky_sph_model_api.hpp>

Public Member Functions

Detailed Description

IRockySPHDeviceModel implements methods that provide general configuration parameters of the SPH model. The data associated to an IRockySPHDeviceModel object resides entirely on device memory, consequently, it can be accessed only within hooks executed on devices.

Member Function Documentation

get_boundary_condition_type()

Returns An ESPHBoundaryType enum indicating the type of boundary condition applied at a given wall identified by geometry_index. Currently there are 3 boundary conditions types implemented in Rocky:
btFreeSlip = 0
btNoSlipLaminar = 1
btNoSlipTurbulent = 2
Parameters

get_damping_coefficient()

Returns The value of the damping coefficient used when modeling the dissipative force at boundaries.

get_element_cloud_point()

This function gets an auxiliary object that gives access to cloud point values of the nearest point to a given SPH element. Parameters Returns An IRockySPHElementCloudPoint object, which can be used to get cloud point values of the nearest point to the element passed as argument. For more information about point clouds, please refer to the Rocky User Manual.

get_element_mass()

Returns The mass associated to each one of the SPH elements in the simulation.

get_fluid_density()

Returns The user-prescribed value of the fluid’s density.

get_fluid_specific_heat()

Returns The user-prescribed value of the fluid’s specific heat.

get_fluid_thermal_conductivity()

Returns The user-prescribed value of the fluid’s thermal conductivity.

get_fluid_viscosity()

Returns The user-prescribed value of the fluid’s dynamic viscosity.

get_initial_element_spacing()

Returns The spacing between SPH elements when they enter into the simulation. This is a characteristic length considered in several expressions in the SPH model.

get_kernel_derivative()

Returns The value of the derivative of the kernel function evaluated at a point located at a given distance of the kernel’s support region. Parameters

get_kernel_type()

Returns An ESPHKernelType enum indicating the kernel type used in the SPH model. Currently there are 3 kernel types implemented in Rocky:
ktCubic = 0
ktQuintic = 1
ktWendland = 2

get_kernel_weight()

Returns The value of the kernel function evaluated at a point located at a given distance of the kernel’s support region. Parameters

get_minimum_distance()

Returns The value of the minimum distance between any two neighbor SPH elements in a simulation.

get_minimum_distance_squared()

Returns The squared value of the minimum distance between any two neighbor SPH elements in a simulation.

get_smoothing_length()

Returns The value of the smoothing length considered in the SPH discretization. The radius of the support region of the kernel function is normally an integer multiple of the smoothing length.

get_speed_of_sound()

Returns The user-prescribed value of the speed of sound in the fluid.

get_sph_timestep()

Returns The timestep value used for the integration of all SPH model equations.

get_stiffness()

Returns The value of the stiffness used when modeling the repulsive normal force at boundaries.

get_surface_tension()

Returns The user-prescribed value of the surface tension at a free surface.

get_turbulent_prandtl_number()

Returns The user-prescribed value of the turbulent Prandtl number, which is the ratio between the momentum and the heat transfer diffusivities due turbulence.

get_wall_turbulent_thermal_conductance()

Returns The thermal conductance between a SPH element and a geometry triangle, calculated using the thermal turbulent wall function. The corresponding heat transfer rate can be obtained by multiplying the thermal conductance by the temperature difference between the SPH element and the geometry triangle. Parameters

has_turbulence_modeling()

Returns True if some turbulence model is active, false otherwise.