-
-
November 21, 2021 at 12:25 am
ruzfactor
SubscriberHello all,
Really struggling here. Posted a discussion earlier but no luck. I have come up with an idea, may be that will work.
Is it possible to get node's x,y,z coordinates using APDL?
If I have, for example, 10 nodes where I would apply 10 different forces simultaneously (function of x,y,z), is it possible to do that using APDL?
Any advice/suggestion would be of great help. TIA.☹️
November 23, 2021 at 4:41 pmmrife
Ansys EmployeeHi @ruzfactor yes, the *GET command can be used to get a nodes x/y/z position. Please see the MAPDL Help -> Command Guide entry on *GET. There is also a 'short cut' version; NX(n) returns the X location of node n in the current coordinate system. Returning to a parameter value i.e. we can use: n_1=nx(1) that would assign the x coordinate value of node number 1 to n_1. You can use a naming convention that makes sense for you...maybe instead use nx_1=nx(1) or node_position_x_1=nx(1) etc. Anyway gather the y and z position similarly and then run the values through the function etc.
Mike
November 24, 2021 at 1:02 pmruzfactor
SubscriberThanks . Really helpful. I will work on it.
Viewing 2 reply threads- The topic ‘Applying forces to different nodes using commands (APDL)’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
5879
-
1906
-
1420
-
1306
-
1021
Top Rated Tags© 2026 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.
-
Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.