#include <rocky_sph_element_scalars.hpp>
Inherits ScalarsModel< rocky20::SPHParticleScalarsController >.
Public Member Functions
Detailed Description
AnIRockySPHElementScalarsModel object allows users to add new SPH element scalars, find SPH element scalars created in other modules or activate SPH element scalars defined into the Rocky solver, during the setup stage of a module. SPH element scalars are special variables attached to SPH elements, which are able to store values per SPH element that are preserved between time iterations during a simulation.
Member Function Documentation
add()
double
for storing custom values during a simulation, preserving them between time iterations.
Parameters
Returns
The index that will uniquely identify the scalar variable during the execution of the simulation.
enable_variable_molecular_viscosity()
enable_velocity_gradient()
find()
Returns
The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.
reset()
set_dimension()
IRockyModel object.
Parameters
set_operation()
ROCKY_PLUGIN_PRE_MOVE_ON_SPH_PARTICLE_INTERACTIONS. Moreover, after performing the accumulation of individual heat flow rates, for multi-GPU simulations it will be needed to sum the values stored in halo regions before using them for solving the thermal balance equation for the SPH elements, and then update back those values across devices. The operations currently available and the points at which they can be performed are listed below.
Parameters