birth index divided total number of particles


#1

hi all

using box3, i want to get 0-1 range out of all particles so i am dividing birth index with total number of partilces, both integers but the output of division function is also integer which makes all particles value 0 so how can i get float value so particles value goes from 0 0.1 0.2…1

i have attached picture to show.

thanx in advance.


#2

You need to convert the integer to a real number before you use it.

Input Standard(Birth Index (Integer))–>Convert(Integer to Real)->Function(Divide R1/R2)


#3

perfect!!! worked like a charm. thanks


#4

No problem :slight_smile: