How to generate tetrahedral mesh of Yarn

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
zzy
Posts: 1
Joined: Wed Jul 17, 2024 2:33 am

How to generate tetrahedral mesh of Yarn

Post by zzy »

H.I'm new to editing Python. After reading the TexGen Scripting Guide.pdf file, I only found a way to create a tetrahedral mesh with CMesher, but this method would output the matrix mesh.I don't want this matrix mesh.
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: How to generate tetrahedral mesh of Yarn

Post by louisepb »

Hi,
Sorry for the slow reply - I've been on holiday :)
Do you definitely need a tetrahedral mesh or are you just looking for a conformal mesh? If it doesn't have to be tetrahedral the the dry fibre export is the most reliable option. The easiest way to see how to do it using Python is to do a dry fibre export in the GUI and then look in the Pythong Output window to see what functions were executed. This just exports the yarns.

The volume mesh does not have an option to save just the yarns but you could edit the .inp file and remove the matrix element set.

Hope that helps,
Louise
Post Reply