Packed Bed Generator

Please login with a confirmed email address before reporting spam

Hi,

I'm trying to create a packed bed where the bed is randomly generated. I am using as a base this code: www.comsol.com/blogs/how-to-create-a-randomized-geometry-using-model-methods/

I have removed lines 27-29, because I want the spheres to be a solid inside the cylinder. The problem I have is that I am unable to avoid the overlap between the spheres.

Does anyone know what should I add to the code to fix this?

Thanks a lot


4 Replies Last Post Jan 14, 2021, 8:22 AM EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 weeks ago Jan 12, 2021, 5:06 PM EST

Hello Pablo,

One of the comments in the blog post you mention points to a tool that claims to do what you want.

Best,

Jeff

-------------------
Jeff Hiller
Hello Pablo, One of the comments in the blog post you mention points to a tool that claims to do what you want. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 2 weeks ago Jan 13, 2021, 3:20 AM EST

Hello Pablo,

One of the comments in the blog post you mention points to a tool that claims to do what you want.

Best,

Jeff

Hello Jeff,

Thanks for reply.

If I understood correctly, using the open source code shared by H. Richter in Java, I could create the desired structure and import it into Comsol.

I'm new working with these types of structures and I'm a bit lost...

Thanks for your time.

Pablo

>Hello Pablo, > >One of the comments in the blog post you mention points to a tool that claims to do what you want. > >Best, > >Jeff Hello Jeff, Thanks for reply. If I understood correctly, using the open source code shared by H. Richter in Java, I could create the desired structure and import it into Comsol. I'm new working with these types of structures and I'm a bit lost... Thanks for your time. Pablo

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 weeks ago Jan 13, 2021, 8:40 AM EST

That is my understanding as well. We have not tested that third party's code.

Best,

Jeff

-------------------
Jeff Hiller
That is my understanding as well. We have not tested that third party's code. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 2 weeks ago Jan 14, 2021, 8:22 AM EST

That is my understanding as well. We have not tested that third party's code.

Best,

Jeff

Hi again,

I solved my problem with the external code shared in comments.

Thanks a lot!

Pablo

>That is my understanding as well. We have not tested that third party's code. > >Best, > >Jeff Hi again, I solved my problem with the external code shared in comments. Thanks a lot! Pablo

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.