Hello, I have a quick question about the CTextileWeave2D meshing. I am trying to create textiles with the wizard and then changing number of layers and resolution with python. The Resolution is straightforward; but, I am struggling with the number of layers part.
My guess is that I am missing something in the middle, but looking through the API this seemed to be the easier way. Any suggestion or another work around would be really helpful.
Thank you everyone. And I have to congratulate the team, this is an amazing software.
You're on the right track. There is just a slight change needed which is a result of Python functions being created with C++ wrappers. The CTextileWeave2D class inherits from the CTextile class but Python cannot interpret the different classes in the same way that C++ can. After the GetTextile command you need to do
The change that you've made will work if you don't choose the refine option. In this case the yarns have constant cross-section and use the number of layers specified. When the refine option is used then sections are specified at each node and I now realise that there is then an issue because the number of layers will be calculated automatically rather than using the number specified. I'll take a look at that.
I assume that you mean the step in the elements is the thing that goes wrong? This is how the code is written. It keeps the elements intact and checks whether the centre point of the element is inside the domain. If it is then the element is retained in that position. This results in a step in the mesh but keeps the periodicity of the mesh without the risk of malformed elements if they were just sliced to the edge of the domain.
Yeah, not using the refine I am able to change the mesh. But the interference depth when I do not use the refine is too big to export as an ABAQUS Dry Fiber File (even with the default 2 layers).