scales

raguelmoon's picture
Submitted by raguelmoon on Thu, 11/04/2010 - 11:36

Hi,
Why I can not find same scales of mesh object in LIGGGHTS when I import it made in Maya? I created mesh in cm in Maya and export it in STL. Then import the same in LIGGGHTS but it doesn't show the same scales of hight and diameter as that of Maya's. I have to rescale the object in LIGGGHTS for required scales. It takes a lot of time. Furthermore, height-diameter ratio will not remain same when it was in Maya.
Thanks,
Ram

ckloss's picture

ckloss | Thu, 11/04/2010 - 13:56

I can not comment on that in detail because I did not try it myself - but I dont think that there is a major bug in the STL import routine because it worked so far with gmesh, salome and netgen as well as any other CAD/meshing software we have tried it with.

Try it with a single triangle generated in maya - maybe it has something to do with what the OS settings for "." and "," for decimal places. Or maybe you exported it as binary STL - LIGGGHTS can currently only read ASCII STL.

Christoph

raguelmoon's picture

raguelmoon | Fri, 11/05/2010 - 05:04

Hi Christoph,
In Maya I created cylinder of diameter 20cm and height 250cm and exported to ASCII STL format. In LIGGGHTS, I chose 0.01 scale factor and its dimensions are 0.4m diameter and height of 1.13m (round about, when viewed in paraview). Can you guide me?
Thanks,
Ram

Ram

ckloss's picture

ckloss | Fri, 11/05/2010 - 08:45

Look at the file itself to make sure which dimensions it has, and look if maja uses "." or "," for decimals - maybe maja uses a different setting than the OS default is? (LIGGGHTS will take the OS default). Try importing it in LIGGGHTS in si units with the right scale factor. Let me know if it works out

Best,
Christoph

raguelmoon's picture

raguelmoon | Fri, 11/05/2010 - 11:57

Hi,
I don't understand the use of "." and ",". I am sending you snapshot of Maya setting, it is in centimetre. I run Maya in fedora OS.
Thanks,
Ram

Ram

cstoltz | Fri, 11/05/2010 - 12:31

There is a freeware program you might want to check out called MeshLab (http://meshlab.sourceforge.net/) that is pretty good for manipulating STL files. You can do a number of simplifications, cleanings, remeshing, etc. and there are some tools for measuring the geometry. Might help to better process your geometry.

cgrohs | Thu, 11/04/2010 - 14:02

Ram,
As far as I know it makes sense to use "units si" in LIGGGHTS which means [m] for lengths. I usually create my meshes in [mm] and use a scale factor of 0.001 in "fix mesh/gran". Maybe it is sufficient for you to use a scale factor of 0.01 in "fix mesh/gran" with the mesh created in [cm], which should not take too much time.

Christian