Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Multiple-size particle tracing
Posted 2012/10/30 20:24 JST Charged Particle Tracing, Fluid & Heat, Particle Tracing for Fluid Flow Version 5.2, Version 5.2a 13 Replies
Please login with a confirmed email address before reporting spam
I have a short question on the particle tracing module. Does anyone know that whether it is possible to simulat particles of different sizes in the same model. How to implement this since I could only add one unique particle property?
Many thanks
Yuexia
Please login with a confirmed email address before reporting spam
1E-6+2E-7*random(particleindex)
This means the particle mass will range from 9E-7 to 1.1E-6 uniformly.
The function random(particleindex) generates a uniformly distributed random number for each particle between -0.5 and 0.5.
Please login with a confirmed email address before reporting spam
Yuexia
Please login with a confirmed email address before reporting spam
Is there any similar way to simulate only two types of particles? How can I specify the function?
Thanks
Please login with a confirmed email address before reporting spam
1E-6+IF(random(particleindex)<0.5,0,2E-7)
Perhaps this would give you half of your particles at 1 µg and half at 1.2 µg. Although, I have yet to try this. For my case, I think I would need to do that for my sodium and chlorine ion masses but also for the charge of each particle being
IF(random(particleindex)<0.5,1,-1)
Question on this, what if I wanted to associate particle masses with charges found in the previous random number generator? Is it possible to just assign certain particle indexes to specific properties? Say, with 1000 particles,
m = IF(particleindex<500,35.453/N_A_const,22.98976/N_A_const) where N_A_const is a physical constant in COMSOL for avogadro's number
and
Z = IF(particleindex<500,-1,1) for the charge of the same respective ions
Someone (Daniel Smith perhaps) please let me know if there is flawed logic here.
Please login with a confirmed email address before reporting spam
mp = 35.453[kg/mol]/N_A_const-mod(fpt.pidx,2)*12.46324[kg/mol]/N_A_const
Z = -1+2*mod(fpt.pidx,2)
where the mod(fpt.pidx,2) picks every other particle. This was needed because of the placement of particles by particle number. It placed all low number particles in the center of my release circle, this method gives me an even distribution of Na+ and Cl- ions.
The numbers needed to be added for this style of function to work, but it basically gives me properly assigned particle masses and charges for sodium and chlorine ions in the water. Now to get the magnetics to work with it.
Please login with a confirmed email address before reporting spam
I am trying to simulate NaCl ions moving in a variable electric field. Could you let me know how you did the implementation in your model. I am very new to Comsol by the way!
Thanks
Juan
Please login with a confirmed email address before reporting spam
--
~Brock
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
your approach works fine. Thanks!
Would it also be possible to extend your suggestion assuming that my function follows a probability density function: f(x;mu;sigma) = (1/sigma*root(2*pi))*e^-0.5*(x-mu/sigma)^2?
The normal distribution is parametrized in terms of the mean and the variance, denoted by mu and sigma, respectively.
I know my mu and sigma. I am also expecting my particle size ranging from 1 µm to 100 µm.
Thanking you guys in advance!
Nevaf
Please login with a confirmed email address before reporting spam
I need to do simulation for multiple ( 4 particles) spherical particles with different length, frequency and permeability. Could you please tell me how can I do the geometry and define the Infinite element domain and the particle domain.
I am new with COMSOL.
Thanks in Advance.
Nazu
Please login with a confirmed email address before reporting spam
I was actually inserting in charged particle tracing module in comsol
Please login with a confirmed email address before reporting spam
I have the need to know the mass of the particles that reach a boundary in my simulation.
How can this condition be set.
Thanks
Please login with a confirmed email address before reporting spam
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.