Identification of different type of materials

Theo_Score's picture
Submitted by Theo_Score on Sat, 03/05/2016 - 08:29

Good Day,

I have two different particles, m1 (oranges) and m2 (Apples) in transportation with a conveyor belt (m3). I want to be able to identify m1 and m2 by their type (group) in the simulation. Also, m1 and m2 have different mesh/surface/planar fixes as they are getting into the domain at different positions and times as shown in the attached screenshot. Some sections of the script have:

create_box 3 reg (for m1, m2 and m3)

fix conv all mesh/surface file meshes/conv_belt.stl type 1 surface_vel -5.0 0.0 0.0
fix ins_mesh1 all mesh/surface/planar file meshes/m1.stl type 1
fix ins_mesh2 all mesh/surface/planar file meshes/m2.stl type 1

fix pts1 all particletemplate/sphere 1 atom_type 1 density constant 2000 radius constant 0.010 (I defined distribution)
fix pdd1 all particledistribution/discrete 63243 1 pts1 1.0 (Composed of different particles according to template)

fix pts2 all particletemplate/sphere 1 atom_type 1 density constant 1500 radius constant 0.010 (I defined distribution)
fix pdd2 all particledistribution/discrete 63243 1 pts1 1.0 (Composed of different particles according to template)

I want to know the correct way to define the above so that I will be able to see them is space and time.

Thank you and I look forward to your assistance.

AttachmentSize
Image icon particle_id.jpg61.05 KB
aaigner's picture

aaigner | Sun, 03/06/2016 - 22:46

Hi Theo_Score,

You should use the correct atom_type for your conveyor as well as the particles.
For instance,
fix conv all mesh/surface file meshes/conv_belt.stl type 3 surface_vel -5.0 0.0 0.0
...
fix pts1 all particletemplate/sphere 1 atom_type 1 density constant 2000 radius constant 0.010 (I defined distribution)
fix pdd1 all particledistribution/discrete 63243 1 pts1 1.0 (Composed of different particles according to template)

fix pts2 all particletemplate/sphere 1 atom_type 2 density constant 1500 radius constant 0.010 (I defined distribution)
fix pdd2 all particledistribution/discrete 63243 1 pts2 1.0 (Composed of different particles according to template)

Bests
Andreas

Theo_Score's picture

Theo_Score | Mon, 03/07/2016 - 00:33

Hi Andries,

I have implemented as suggested but I get the attached result (edited the first comment attachments). Full script code is attached as well. Essentially I made all boundaries type 3 including the particle generation meshes. I have also tried to make particle generation meshes to type 1 and 2 with respect to atom types generated by the respective mesh and the result is the same.

I look forward to your assistance.

Best regards,
Theo_Score

Theo_Score's picture

Theo_Score | Mon, 03/07/2016 - 00:50

Hi Andries,

Thank you, it was the solution. I had made a mistake of putting the same distribution template.

Best regards,
Theo_Score