Displacement Loading with local direction

Post Reply
Lei Lei
Posts: 124
Joined: Mon Jul 10, 2023 1:28 pm

Displacement Loading with local direction

Post by Lei Lei » Fri Jun 28, 2024 7:41 am

Dear STKO team,

I want to apply some forced displacement to an edge, but the direction is not along the global coordinates but along the local coordinates, what should I do? As shown in the following picture.

Similarly, if I don't want to apply a uniform displacement on this edge, but a displacement that varies with position, can I do that? The same is true for edge force loading.

Is there a convenient way to apply different node forces to multiple nodes simultaneously instead of defining them individually in condition?

Thanks!
22b7bbcd7c1b45e1b2b31eeb6eb89ae.png
22b7bbcd7c1b45e1b2b31eeb6eb89ae.png (11.84 KiB) Viewed 2646 times

kesavapraba
Posts: 467
Joined: Sat Mar 28, 2020 2:25 pm

Re: Displacement Loading with local direction

Post by kesavapraba » Fri Jun 28, 2024 2:23 pm

Hi, All your requirements can be easily scripted into a Python API. You need to use PyMpc package from STKO to do that. Please refer the link provided below.
https://asdeasoft.net/stko-wiki/

The webinar given below explains how to use Python API in postprocessing, you can follow similar approach for pre-processing (including loading)
https://www.youtube.com/watch?v=TrHhvJ8L9ao

Additionally, you can write Python function directly into the displacement load option as shown in the attached figure.
Attachments
LoadFunction.png
LoadFunction.png (43.05 KiB) Viewed 2635 times
:: With best wishes ::
Prabakaran Kesavan

STKO Team
Posts: 2920
Joined: Tue Oct 29, 2019 8:45 am

Re: Displacement Loading with local direction

Post by STKO Team » Mon Jul 29, 2024 2:42 pm

SP are defined in global coordinates, so you can use the custom function to define the X and Y components as function of the x and y coordinates. In this example I'm applying x disp = -cos(alpha) and y disp = -sin(alpha)
LAX_2.png
LAX_2.png (15.95 KiB) Viewed 2403 times

Loads instead can also be defined in local coordinates.
If you look you can see the local axes of the edge:
LAX_1.png
LAX_1.png (47.42 KiB) Viewed 2403 times
And you can easily define the load function in local coordinates:
LAX_3.png
LAX_3.png (39.54 KiB) Viewed 2403 times

Post Reply