TexGen to Abaqus Script Request.

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
UOMO
Regular
Posts: 45
Joined: Tue Feb 24, 2015 10:02 am

TexGen to Abaqus Script Request.

Post by UOMO »

Dear all/Louis,
I am wondering if someone of you would have available a script able to do the following:

From TexGen.
1st. Generate a weave model (any).
2nd. Export the center(s) of the yarn cross sections along their length.

From Abaqus:
3rd. Read the centers of the yarns.
4th. Generate a model with a given cross-section and volume fraction.

The intention of this is two things. 1st. The possibility of achieving higher volume fractions than those achieved by using merely TexGen. 2nd. Use different meshing techniques to have for instance a conformal mesh of eight node elements.

Best,

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

Re: TexGen to Abaqus Script Request.

Post by louisepb »

Hi Uomo,

I don't have a script which generates centre points on yarns but if you have created your textile then you can get the points on the yarn at the slave nodes (dependent on the resolution, these are the points at which sections are drawn in the x-ray rendering) using yarn.GetSlaveNodes(LINE) - see http://texgen.sourceforge.net/api/class ... 6cc1a28eed

If you need the points at specific positions along the line then you will need to get the interpolation using yarn.GetInterpolation() and can then use the interpolation.GetNode function - see http://texgen.sourceforge.net/api/class ... 74b45dd5cd

Going the other way, from Abaqus to a TexGen model is more difficult. Steve Green did something very similar in his paper here: https://www.sciencedirect.com/science/a ... via%3Dihub but I don't have any of the scripts that he used to recreate the TexGen deformed structures.

You can create a conformal mesh of just the yarns in TexGen by using the Abaqus Dry Fibre Export option. You can see the mesh that this generates by using the Render->Volume option. This generates a combination of 8 noded hex and 6 noded wedge elements by default but this can be changed by setting the TriangleCorners parameter to false in the section meshes. The simplest way to do this is to edit the tg3 file.

Hope that helps,
Louise
UOMO
Regular
Posts: 45
Joined: Tue Feb 24, 2015 10:02 am

Re: TexGen to Abaqus Script Request.

Post by UOMO »

louisepb wrote:Hi Uomo,

I don't have a script which generates centre points on yarns but if you have created your textile then you can get the points on the yarn at the slave nodes (dependent on the resolution, these are the points at which sections are drawn in the x-ray rendering) using yarn.GetSlaveNodes(LINE) - see http://texgen.sourceforge.net/api/class ... 6cc1a28eed

If you need the points at specific positions along the line then you will need to get the interpolation using yarn.GetInterpolation() and can then use the interpolation.GetNode function - see http://texgen.sourceforge.net/api/class ... 74b45dd5cd

Going the other way, from Abaqus to a TexGen model is more difficult. Steve Green did something very similar in his paper here: https://www.sciencedirect.com/science/a ... via%3Dihub but I don't have any of the scripts that he used to recreate the TexGen deformed structures.

You can create a conformal mesh of just the yarns in TexGen by using the Abaqus Dry Fibre Export option. You can see the mesh that this generates by using the Render->Volume option. This generates a combination of 8 noded hex and 6 noded wedge elements by default but this can be changed by setting the TriangleCorners parameter to false in the section meshes. The simplest way to do this is to edit the tg3 file.

Hope that helps,
Louise


Thank you for your detailed answer Louis. I have however a small doubt. What do you mean when you say "but this can be changed by setting the TriangleCorners parameter to false in the section meshes"... it means that one is able to export only 8-node elements?. If this is the case, how to you set the meshes.TriangleCorners=FALSE?. Is this done via the command line and then exporting?

Thank you again.
/UOMO.
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: TexGen to Abaqus Script Request.

Post by louisepb »

Hi Uomo,

If the TriangleCorners parameter is set to false then only 8-noded elements will be exported. If you look in the section on creating volume meshes, section 2.9 in Sherburn's thesis http://eprints.nottingham.ac.uk/10303/1 ... -final.pdf, you will see that the meshes have triangles in the corners which result in wedge elements when the sections are joined. If Triangle corners is set to false then the section meshes are created with only 4-noded elements and hence only create 8-noded meshes when joined.

The tg3 file is simply a renamed xml file. If you save your model, edit the tg3 file changing any reference to TriangleCorners equal to 0 then, when you reload and export the file it will only create 8 noded elements. This is the simplest way to do this.

Hope that makes sense!
Louise
Post Reply