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!



0 Replies Last Post 15.01.2025, 03:11 GMT-5
COMSOL Moderator

Hello Aakanksha Baghel

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.