June 28, 2018 at 12:03 pmlilhaq93Subscriber
I'm a new user of Ansys so be clement.
I'm building a model by APDL commands.I want to connect few keypoint by lines.The thing is ,while I'm writing the input file I don't know the number of all my keypoints (some of them are created by KGEN or LGEN) but one thing I know for sure is one of their coordinates so I made a selection like this :
What I want to do now is to make a list(like array or table) of those keypoints (or of their coordinates) so that I can use a *DO to connect the first one to the second by LSTR ,and do the same for the rest of the keypoints.All this without knowing exactly the number of the keypoints
July 3, 2018 at 2:39 pmjpasquerellAnsys Employee
You could use the *VGET command 3 times to get the x y and z values.
*dim,kplocs,array,n,3 ! replace n with max kp number
but this will require a lot of manipulation to sort and get the needed info. Are the lines at a regular interval? If so make the first set of lines then use lgen to make the next set of keypoints and lines. also, if the active csys is 0 then the lines are straight. Another option in a do loop would be like this:
*do,jj,1,4,1 ! 4 loops with spacing of 1
lstr,kp(jj,ky(1),kz(1)), kp(jj,ky(2),kz(2)) ! kp(x,y,z) gets a keypoint number nearest the xyz coordinates and
! kx(k), ky(k) and kz(k) gets the coordinates of keypoint k
! repeat for other lines
July 3, 2018 at 3:02 pmjpasquerellAnsys Employee
If your question is how to create lines going from 3 to 8, 8 to 13 then try:
klocs(jj,1)=km ! minimum selected kp number
klocs(jj,2)=kx(km) ! x coord of it
- The topic ‘list of keypoints’ is closed to new replies.
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.
- No longer possible to import f3d with 2023?
- line bodies and surface body shared topology
- How to chang unit in Ansys Discovery 2023?
- ANSYSLI Exited or could not read server port ANSYSLI_FNE_PORT
- SpaceClaim Script: Selection by FilterByBoundingBox
- Assignment of revolute joint
- Max/min over time results in AIM
- Axisymmetric model – Rubber seal
- To change language in Ansys Discovery
© 2023 Copyright ANSYS, Inc. All rights reserved.