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.
How to export a randomly generated spheres in a volume in Matlab to ANSYS?
- 310 Views
- Last Post 3 hours ago
- Topic Is Solved
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.
I have the coordinates of each sphere (x,y,z,r) and I want to know how to gener the geometry.
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.
I created the geometry in Spaceclaim. Thank you all.
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 ?
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.
I have a similaer problem with a lot of spheres with (x,y,z,R) and the transfer to ANSYS spaceclaim. How did you import it into the space claim? Can you help me with the code?
To import the spheres to SpaceClaim I used a Python code.
could you please share how you imported the spheres using a python code onto spaceclaim, because I am trying to import something similar and I don't know how.
# Python Script, API Version = V17
path = r"C:\Users\X260\spheres.csv"
# Load file
sphere_dims = 
with open(path,'r') as f:
sphere_dims = f.readlines()
for line in sphere_dims:
# For each line we divide number by ;
line = line.split(',')
line = [float(val) for val in line]
# Créer une sphère
SphereBody.Create(Point.Create(MM(line), MM(line), MM(line)), Point.Create(MM(line), MM(line), MM(line)), ExtrudeType.None, Info1)
Are those spheres solid bodies or surface bodies? I need to import a solid body which has two boundaries into SC and I am having trouble in another post on this cite. Do you think python would work for something like this as well?
- All Categories
- Community Rules, Guidelines, and Tips
- News & Announcements
- Student Products
- Pre and Post Processing
- Physics Simulation
- Tutorials, Articles and Textbooks
- Installation and Licensing
- Student Competition Teams
- eMasters Degree from UPM
- Site Feedback