export file for ls-dyna

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
mao
Posts: 1
Joined: Wed Nov 13, 2013 9:07 pm

export file for ls-dyna

Post by mao »

Hi,
i am working on a dry fibre simulation in ls dyna and want to ask which export file is best for Ls dyna? i used IGES, STEP and ABAQUS dry fibre file, it seems that the ABAQUS dry fibre is best choice, but how could i change the meshing density?

mao
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: export file for ls-dyna

Post by louisepb »

Hi Mao,

You can change the mesh density in the dry fibre export by changing the yarn resolution. If you are creating your textile using a script then call the yarn.SetResolution function. Using the function with one parameter will set the number of section points around the circumference of the yarn. This is used to generate the dry fibre mesh. The length of the elements will be calculated to be a suitable value. If you want to specify the length of the elements along the yarn as well then this is governed by the number of slave nodes between the main nodes. Call SetResolution with two parameters: SetResolution( NumSlaveNodes, NumSectionPoints). If you have created the textile in the GUI you can call the function from the Python Console. In this case you will need to get the textile and yarn first, something like:
textile = GetTextile()
yarn = textile.GetYarn(0)
yarn.SetResolution(15,20)

Descriptions of the yarn class functions are given here: http://texgen.sourceforge.net/api/class ... _yarn.html

You can see the effect of changing the resolution by using the Render Textile Volume. This renders the mesh which is exported in the dry fibre export.

Alternatively, if you have saved your textile, you can edit the .tg3 file. For each yarn you will see NumSlaveNodes and a NumSectionPoints parameters. Simply change the values of the parameters to change the resolution, and hence the mesh density.

Hope that helps,
Louise
Post Reply