Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "number of segments" to create_polyline #5506

Open
IreneWoyna-HE opened this issue Nov 29, 2024 · 0 comments
Open

Add "number of segments" to create_polyline #5506

IreneWoyna-HE opened this issue Nov 29, 2024 · 0 comments
Labels
enhancement New features or code improvements

Comments

@IreneWoyna-HE
Copy link

IreneWoyna-HE commented Nov 29, 2024

Description of the feature

Dear pyaedt team,

I'm creating windings using polyline arcs, but I'm missing the possibility to control the number of segments of the polyline arc in pyaedt. Could you please add that? See IronPython below, no. of segments is ca. in the middle. Alternatively / additionally I would happy to know how I could change the number of segments after creating the polyline.

The thing is that I'm creating foil windings, i.e. very thin conductor layers very close to each other, and if I don't have a way to control the no. of segments, solvers throws "mesh leak to the air" or similar error even when I control the mesh appropriately.

Many thanks in advance!

Cheers
Irene

Steps for implementing the feature

oEditor.CreatePolyline(
[
"NAME:PolylineParameters",
"IsPolylineCovered:=" , True,
"IsPolylineClosed:=" , False,
[
"NAME:PolylinePoints",
[
"NAME:PLPoint",
"X:=" , "160mm",
"Y:=" , "-300mm",
"Z:=" , "0mm"
],
[
"NAME:PLPoint",
"X:=" , "243.5580551423mm",
"Y:=" , "-237.232952549388mm",
"Z:=" , "0mm"
],
[
"NAME:PLPoint",
"X:=" , "304.105244939971mm",
"Y:=" , "-152.052622469986mm",
"Z:=" , "0mm"
]
],
[
"NAME:PolylineSegments",
[
"NAME:PLSegment",
"SegmentType:=" , "AngularArc",
"StartIndex:=" , 0,
"NoOfPoints:=" , 3,
"NoOfSegments:=" , "0",
"ArcAngle:=" , "35.3624618870691deg",
"ArcCenterX:=" , "0mm",
"ArcCenterY:=" , "0mm",
"ArcCenterZ:=" , "0mm",
"ArcPlane:=" , "XY"
]
],
[
"NAME:PolylineXSection",
"XSectionType:=" , "None",
"XSectionOrient:=" , "Auto",
"XSectionWidth:=" , "0mm",
"XSectionTopWidth:=" , "0mm",
"XSectionHeight:=" , "0mm",
"XSectionNumSegments:=" , "0",
"XSectionBendType:=" , "Corner"
]
],
[
"NAME:Attributes",
"Name:=" , "Polyline1",
"Flags:=" , "",
"Color:=" , "(143 175 143)",
"Transparency:=" , 0,
"PartCoordinateSystem:=", "Global",
"UDMId:=" , "",
"MaterialValue:=" , ""vacuum"",
"SurfaceMaterialValue:=", """",
"SolveInside:=" , True,
"ShellElement:=" , False,
"ShellElementThickness:=", "0mm",
"ReferenceTemperature:=", "20cel",
"IsMaterialEditable:=" , True,
"IsSurfaceMaterialEditable:=", True,
"UseMaterialAppearance:=", False,
"IsLightweight:=" , False
])

Useful links and references

No response

@IreneWoyna-HE IreneWoyna-HE added the enhancement New features or code improvements label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

No branches or pull requests

1 participant