chrono::particlefactory::ChRandomShapeCreatorBoxes Class Reference
Description
Class for generating boxes with variable sizes and density.
By default uses constant distributions (all boxes with default fixed sizes) but you can provide your distributions.
#include <ChRandomShapeCreator.h>
Inheritance diagram for chrono::particlefactory::ChRandomShapeCreatorBoxes:
Collaboration diagram for chrono::particlefactory::ChRandomShapeCreatorBoxes:
Public Member Functions | |
virtual std::shared_ptr< ChBody > | RandomGenerate (ChCoordsys<> mcoords) override |
Function that creates a random ChBody particle each time it is called. | |
void | SetXsizeDistribution (std::shared_ptr< ChDistribution > mdistr) |
Set the statistical distribution for the x size, that is the longest axis. | |
void | SetSizeRatioYZDistribution (std::shared_ptr< ChDistribution > mdistr) |
Set the statistical distribution for scaling on both Y,Z widths (the lower <1, the thinner, as a needle). | |
void | SetSizeRatioZDistribution (std::shared_ptr< ChDistribution > mdistr) |
Set the statistical distribution for scaling on Z width (the lower <1, the flatter, as a chip). | |
void | SetDensityDistribution (std::shared_ptr< ChDistribution > mdistr) |
Set the statistical distribution for the random density. | |
Public Member Functions inherited from chrono::particlefactory::ChRandomShapeCreator | |
virtual std::shared_ptr< ChBody > | RandomGenerateAndCallbacks (ChCoordsys<> mcoords) |
This function does RandomGenerate and also executes the the custom callback, if provided. More... | |
void | RegisterAddBodyCallback (AddBodyCallback *callback) |
Set the callback function to execute at each each particle generation. | |
void | SetAddCollisionShape (bool addcoll) |
Set if the created particles must include the collision shape(s). More... | |
void | SetAddVisualizationAsset (bool addvisual) |
Set if the created particles must include the visualization asset(s). More... | |
Additional Inherited Members | |
Protected Attributes inherited from chrono::particlefactory::ChRandomShapeCreator | |
AddBodyCallback * | callback_post_creation |
bool | add_collision_shape |
bool | add_visualization_asset |
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/particlefactory/ChRandomShapeCreator.h