CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Field Function to create a Random Vector (https://www.cfd-online.com/Forums/star-ccm/140691-field-function-create-random-vector.html)

darsonli August 21, 2014 04:47

Field Function to create a Random Vector
 
When defining the velocity of DEM particle injection, I would like to randomise the direction of the injection velocity.

If I use the "direction and magnitude" method to define the velocity, is there anyway for me to use field function to create a random vector and define the direction of the velocity?

ping August 21, 2014 10:16

not directly with a field function at present but you could probably use a java macro or drive it from a table created externally
some people have created complex field functions that try to mimic a random generator


All times are GMT -4. The time now is 10:12.