How to export a randomly generated spheres in a volume in Matlab to ANSYS?

  • 156 Views
  • Last Post 16 May 2019
  • Topic Is Solved
auob07 posted this 29 March 2019

I want to develop model of a a cube with sand particles (Spheres) inside. I want to analyze it in ANSYS. Spheres are randomly generated in Matlab as shown in the Figure. I want to export the geometry to ANSYS and mesh it.

Order By: Standard | Newest | Votes
SandeepMedikonda posted this 30 March 2019

ANSYS is CAD Neutral. Write it out in one of the formats such as para solid etc. and import it back into Design Modeler or SpaceClaim.

Help

  • Liked by
  • auob07
peteroznewman posted this 30 March 2019

Here is a matlab script that exports IGES files, which you could open directly using SpaceClaim.

Since you have some programming skills aoub07, you can learn the scripting language of SpaceClaim and have the script read a simple text file of the x, y, z, r values of the center and radius of the spheres, then have the SpaceClaim script create the spheres.

  • Liked by
  • auob07
auob07 posted this 03 April 2019

I have the coordinates of each sphere (x,y,z,r) and I want to know how to gener the geometry.

rwoolhou posted this 05 April 2019

I'm sure I answered this question a few days ago: there are journal features in SpaceClaim that'll help with this. Note, you'll need to make sure the spheres don't touch otherwise the mesh count will most likely be too high to solve on the Student software.

  • Liked by
  • auob07
auob07 posted this 05 April 2019

I created the geometry in Spaceclaim. Thank you all.

 

 

 

sudhir249 posted this 18 April 2019

Hey aub07

Is it possible to make that packing in a cylindrical container ?

I made a packing in blender (exported as .stl file) but is giving me errors during meshing

Could you help me out here ?

Hadi posted this 13 May 2019

auob07

I have the same problem. I imported the file from MATLAB using space claim but I couldn't mesh the generated geometry. Could u plz help me in doing that.

auob07 posted this 16 May 2019

Hey Hadi 

Can you describe the problem

auob07 posted this 16 May 2019

Hey

Yes you can

Close