How to Assign Random Numbers for Particle Release at Inlet in Particle Tracing?

Please login with a confirmed email address before reporting spam

Hi everyone,

I'm working on a Particle Tracing for Fluid Flow simulation, and I need to assign random numbers as the input for the number of particles per release at the inlet. My goal is to generate a different random value for each release interval.

Is there a way to achieve this directly in COMSOL, perhaps using expressions or built-in functions like rand()? If not, are there alternative approaches, such as defining variables or importing external data, to accomplish this?

Any advice or examples would be greatly appreciated!

Thanks in advance!



Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.