chrono::utils::ChMixtureIngredient Class Reference

Description

Encapsulation of an ingredient of one of the supported types in a mixture.

Such an object defines size, mass properties and material properties for, all of which can be constant for all mixture components of this type or else obtained from associated truncated normal distributions. In addition, a mixture ingredient defines the ratio of this particular type in the containing mixture.

#include <ChUtilsGenerators.h>

Classes

class  AddBodyCallback
 Class to be used as a callback interface for some user-defined action to be taken each time the generator creates and adds a body based on this mixture ingredient to the system. More...
 

Public Member Functions

 ChMixtureIngredient (ChGenerator *generator, MixtureType type, double ratio)
 
void SetDefaultMaterial (std::shared_ptr< ChContactMaterial > mat)
 
void SetDefaultDensity (double density)
 
void SetDefaultSize (const ChVector3d &size)
 
void SetDistributionFriction (float friction_mean, float friction_stddev, float friction_min, float friction_max)
 
void SetDistributionCohesion (float cohesion_mean, float cohesion_stddev, float cohesion_min, float cohesion_max)
 
void SetDistributionYoung (float young_mean, float young_stddev, float young_min, float young_max)
 
void SetDistributionPoisson (float poisson_mean, float poisson_stddev, float poisson_min, float poisson_max)
 
void SetDistributionRestitution (float restitution_mean, float restitution_stddev, float restitution_min, float restitution_max)
 
void SetDistributionDensity (double density_mean, double density_stddev, double density_min, double density_max)
 
void SetDistributionSize (double size_mean, double size_stddev, const ChVector3d &size_min, const ChVector3d &size_max)
 
void RegisterAddBodyCallback (std::shared_ptr< AddBodyCallback > callback)
 Specify a callback object to be used each time a body is generated using this mixture ingredient specification.
 

Friends

class ChGenerator
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/utils/ChUtilsGenerators.h
  • /builds/uwsbel/chrono/src/chrono/utils/ChUtilsGenerators.cpp