chrono::particlefactory::ChRandomParticlePositionOnGeometry Class Reference

Description

Class for generator of random particle positions scattered over a parametric surface.

#include <ChRandomParticlePosition.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticlePositionOnGeometry:
Collaboration diagram for chrono::particlefactory::ChRandomParticlePositionOnGeometry:

Public Member Functions

virtual ChVector RandomPosition () override
 Function that creates a random position each time it is called. More...
 
void SetGeometry (std::shared_ptr< geometry::ChGeometry > mgeometry)
 Set the parametric surface used for this outlet. More...
 

Member Function Documentation

virtual ChVector chrono::particlefactory::ChRandomParticlePositionOnGeometry::RandomPosition ( )
overridevirtual

Function that creates a random position each time it is called.

Reimplemented from chrono::particlefactory::ChRandomParticlePosition.

void chrono::particlefactory::ChRandomParticlePositionOnGeometry::SetGeometry ( std::shared_ptr< geometry::ChGeometry mgeometry)

Set the parametric surface used for this outlet.

The surface will be sampled uniformly over its U,V parametric coordinaters. In cas of lines, oly U is used, in case of parametric volumes, U,V,W.