I'm trying to write a python script for dry fiber mesh. I would like to clarify with you because I'm afraid I might commenting them incorrectly. What I'm trying to do is to get the same loading condition as applied in voxel mesh option. So as you mentioned before, I just need to leave the scale as 1. Am I right? The code is as follows;
Code: Select all
# Add the textile with the name "Textile#"
AddTextile("SNM2", Textile) ##
SaveToXML(r"C:\Users\Public\Documents\SENSE\MKSNM\SNM2.tg3", "SNM2", OUTPUT_STANDARD) ##
# Define a linear transformation
LoadScale = CLinearTransformation()
# Add a scale in the X direction
LoadScale.AddScale(1.0, 1.0, 1.0)
# Create an instance of the TextileDeformerAbaqus class
deformer = TextileDeformerAbaqus()
# Add the tensile deformation step
deformer.AddDeformationStep(LoadScale)
# Read in a TexGen model
ReadFromXML('SNM2.tg3')
textile = GetTextile()
# This is where all the work is done, note this may take a long time to run
deformer.DeformTextile(textile)
# Save the result back to a new TexGen model
SaveToXML('SNM2.tg3')Traceback (most recent call last):
File "gui", line 1, in <module>
File "C:\Users\Public\Documents\SENSE\MKSNM\MKSNM-Dry.py", line 124, in <module>
deformer.DeformTextile(textile)
File ".\Python\libxtra\TexGen\Abaqus.py", line 296, in DeformTextile
RuntimeError: ABAQUS has failed with error code: -1073741510
What when wrong actually? Hope you could guide me then.
Many thanks.
Yanie