April 15, 2022 at 3:38 pmMadScientistSubscriber
I have the STEP geometry of an airfoil imported into Spaceclaim and I projected the foil normally on a sketch plane to get the airfoil profile, made of splines. Now I want the XY position of the points generating these profiles. For an earlier airfoil, it was more segmented, so I could get the start and end points through this snippet
curves = Selection.Create(Curve23, Curve24, Curve25, Curve26) for item in curves.Items: x = item.Shape.EndPoint.X * 10 z = item.Shape.EndPoint.Z * 10 if(x > maxXPos): maxXPos = x if(z > maxZPos): maxZPos = z if(i == 1): x = item.Shape.StartPoint.X * 10 z = item.Shape.StartPoint.Z * 10 if(x > maxXPos): maxXPos = x if(z > maxZPos): maxZPos = z i=i+1
But now, these curves are actually Splines, and using the above, I get only 5 points defining the airfoil. So I wanted to know the member functions or variables that will allow me to get intermediate points in a Spline. The image of the foil is as below.April 29, 2022 at 1:34 pmAniketForum Moderatoryou can find knots on a spline using the following code:
curve_knots = myC.Shape.Geometry.Data.Knots
for p in curve_knots:
result = Point.Create(*list(myC.Evaluate(p.Parameter).Point.Vector))
result = SketchPoint.Create(result)
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
Viewing 1 reply thread
Ansys Innovation Space
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- How to work with STL file?
- Rotate tool in ANSYS Design Modeler
- section plane
- Using Symmetry in DesignModeler and Expanding the Results
- ANSYS FLUENT – Operation would result in non manifold bodies
- drawing a geometry by importing a table of points
- material properties
- Coordinates orientation
- “contact pair has no element in it.” how to resolve this problem
- Parameters not imported into Workbench 18.2 from Solidworks/Inventor
Top Rated Tags
© 2023 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.