define new Set
define new Set
(OP)
Hi all,
I defined a new set on my aerofoil called setPiezo. Now when I run the script I get the error: "Unknown key setPiezo".
What am I doing wrong?
Thanks!
Best Matterhorn
code:
aeroAssembly.Set(
name='setPiezo',
nodes=
aeroInstance.nodes.getByBoundingBox(
-150, 0-dtol, 30.01,
-303.06, depthProfile+dtol, 22.56
))
# assign piezo section
partAerofoil.SectionAssignment(offset=0.0,
offsetField='', offsetType=MIDDLE_SURFACE,
region=partAerofoil.sets['setPiezo'],
sectionName='aerofoilPiezoSection', thicknessAssignment=FROM_SECTION)
I defined a new set on my aerofoil called setPiezo. Now when I run the script I get the error: "Unknown key setPiezo".
What am I doing wrong?
Thanks!
Best Matterhorn
code:
aeroAssembly.Set(
name='setPiezo',
nodes=
aeroInstance.nodes.getByBoundingBox(
-150, 0-dtol, 30.01,
-303.06, depthProfile+dtol, 22.56
))
# assign piezo section
partAerofoil.SectionAssignment(offset=0.0,
offsetField='', offsetType=MIDDLE_SURFACE,
region=partAerofoil.sets['setPiezo'],
sectionName='aerofoilPiezoSection', thicknessAssignment=FROM_SECTION)





RE: define new Set
Try again by creating an element set with your bounding box.
RE: define new Set
I don't get it..
RE: define new Set
RE: define new Set
I tried with the new code but it didn't work. I am sorry but I really don't know how to do it?
aeroAssembly.Set(
name='setPiezo',
elements=
aeroInstance.elements.getByBoundingBox(
-150, 0-dtol, 30.01,
-303.06, depthProfile+dtol, 22.56
))
RE: define new Set
RE: define new Set
aeroAssembly.Set(
name='setPiezo',
elements=
aeroInstance.elements.getByBoundingBox(
150, 0-dtol, 22.56,
303.06, depthProfile+dtol, 30.01
))
# assign piezo section
partAerofoil.SectionAssignment(offset=0.0,
offsetField='', offsetType=MIDDLE_SURFACE,
region=partAerofoil.sets['setPiezo'],
sectionName='aerofoilPiezoSection', thicknessAssignment=FROM_SECTION)
But now I get the error: "Unknown key SetPiezo". I guess its because I am defining the element setPiezo in aeroAssembly (Mesh) and not in partAerofoil (Part). What do you think?
Thanks in advance.
RE: define new Set
CODE -->
RE: define new Set
So I put this in my command window of Abaqus. It adds a new set with the name 'Set-1' which is good, but when I click on it no red surface appears like when I click on the other sets...
This means that it only generates a new set with a name but doesn't assgin any element or points to it.
RE: define new Set
Would be very glad if you can help me! Thanks in advance!
RE: define new Set
Thanks!
RE: define new Set
RE: define new Set
I tried also to insert the code you gave me when I am in the 'mesh' module.
RE: define new Set
When you see a mesh, then the python command should work. When no mesh is displayed, then there is no mesh in the part. Maybe you've meshed the instance.
Then you have to switch the type of instance from "Independent" to "Dependent" and mesh the part.
RE: define new Set
Before I was assigning the 'setPiezo' to faces, and these faces were also meshed.
So it is possible to make a set on a assembly?!
Or do I have to change the region=partAerofoil.sets['setPiezo'] into regoin=aeroAssembly.sets['setPiezo]?
aeroAssembly.Set(
name='setPiezo',
elements=
aeroInstance.elements.getByBoundingBox(
150, 0-dtol, 22.56,
303.06, depthProfile+dtol, 30.01
))
partAerofoil.SectionAssignment(offset=0.0,
offsetField='', offsetType=MIDDLE_SURFACE,
region=partAerofoil.sets['setPiezo'],
sectionName='aerofoilPiezoSection', thicknessAssignment=FROM_SECTION)
RE: define new Set
offsetField='', offsetType=MIDDLE_SURFACE,
region=partAerofoil.sets['setPiezo'],
sectionName='aerofoilPiezoSection', thicknessAssignment=FROM_SECTION)
to the set I defined in assembly. How can I do this?
RE: define new Set