-
-
June 28, 2018 at 12:03 pmlilhaq93Subscriber
Hi,
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 :
KSEL,S,LOC,Z,6
KPLOT
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
*vget,kplocs(1,1),kp,1,loc,x
*vget,kplocs(1,2),kp,1,loc,y
*vget,kplocs(1,3),kp,1,loc,z
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
lstr,kp(jj,ky(2),kz(2)), kp(jj,ky(3),kz(3))
! repeat for other lines
*enddo
-
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:
*dim,klocs,array,5,2
km=0
*do,jj,1,5
km=kpnext(km)
klocs(jj,1)=km ! minimum selected kp number
klocs(jj,2)=kx(km) ! x coord of it
*enddo
*dim,oldo,array,5
*moper,oldo(1),klocs(1,1),sort,klocs(1,2)
*do,jj,1,4
lstr,klocs(jj),klocs(jj+1)
*enddo
-
- The topic ‘list of keypoints’ is closed to new replies.
Exploring the Power of HPC and Cloud Computing
Join us for this insightful webinar to discover how HPC and cloud computing unlocks the full potential of engineering simulation. Whether you are an engineer, IT manager, researcher, or technology enthusiast, this webinar provides the knowledge and tools to enhance your simulation workflows and drive innovation in your industry.
The Road to Innovation is Driven by Simulation
Join us for Driven by Simulation, an exciting new video series that shows how simulation enables the rapid innovation transforming the way we move — on the street, off-road, or at the track. Each episode celebrates breakthrough tech that’s paving the way for safer, faster, cleaner, more connected driving experiences.
Tensile Test Simulation Best Practices
It is fascinating to compare experimental and simulation test results for a tensile test specimen. The ability to conduct tests virtually, rather than physically, utilizing virtual simulations for testing not only increases efficiency but also leads to significant cost savings. In this crosstalk, we will address some of the challenges typically encountered in uniaxial tensile simulations.
Ansys Blog
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.
- SpaceClaim Error saving design *.scdoc: cannot save the document
- Help with completing geometry of sketch lines
- How to enable the constraints of tangent line tool?
- Spaceclaim Drawing sheets unworkable above 45 sheets
- hi i want to simulate a nonlinear spring (barrel and hourglass)
- Playing with Non-Linear Analysis
- FEM analysis of 2D models created in Python
- nonlinear spring simulation
- Dimensions in SpaceClaim 2024 R1
- Results on lines and Planes
-
967893
-
478469
-
316049
-
253881
-
182950
© 2024 Copyright ANSYS, Inc. All rights reserved.