#include <rocky_particle_scalars.hpp>
Inherits ScalarsModel< rocky20::ParticleScalarsController >.
Public Member Functions
Detailed Description
AnIRockyParticleScalarsModel allows users to add new particle scalars, find particle scalars created in other modules or activate particle scalars known to Rocky, during the setup stage of a module. Particle scalars are special variables attached to particles, which are able to store values per particle 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_mass_increment()
enable_variable_poisson_ratio()
enable_variable_specific_heat()
enable_variable_thermal_conductivity()
enable_volume_increment()
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