Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Offline Davide Carpi  
#1 Posted : 08 March 2013 23:11:13(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
Hi all,

This is a SMath Studio worksheet to calculate properties of generic polygons (perimeter, area, centroid, second moment of area, radius of gyration, elastic section modulus, plastic section modulus, orientation of principal axes of inertia, principal moments of inertia, radii of gyration about principal axes of inertia); the script contains a wide range of shortcuts to plot and transform the most common polygons.





Below attached the very first version (OUTDATED), look in the gallery for the latest revision.

Edited by user 26 September 2018 16:38:17(UTC)  | Reason: Not specified

File Attachment(s):
PolyProperties_2013.02.01.sm (970kb) downloaded 219 time(s).
Davide Carpi attached the following image(s):
SMath Studio - [PolyProperties_2013.02.00.sm].png
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 4 users thanked Davide Carpi for this useful post.
on 09/03/2013(UTC),  on 09/03/2013(UTC),  on 09/03/2013(UTC),  on 10/03/2013(UTC)
Offline mkraska  
#2 Posted : 09 March 2013 13:43:49(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,443
Germany

Was thanked: 761 time(s) in 488 post(s)
Hi Davide,

great stuff (as usual). Unfortunately I was only able to open the file with the portable version of SMath. The installed version throws an "empty stack" error message, even if all external plugins are disabled.

I wonder if you could take advantage of the gpc plugin or extend it with your functions. Of course, this proposal collides with the problem reported above.

There is a gpc topic in the russian forum.

Martin

Edited by user 09 March 2013 13:52:05(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline Davide Carpi  
#3 Posted : 09 March 2013 14:43:27(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
Thank you Martin, Good

The issue is related with a previously reported SMath bug: str2num problems with regional settings (2nd post); Waiting for the official fix, I've reuploaded the file with an hidden hack (I've used the greek semicolon Íž instead of the latin semicolon ; ).

About the GPC plugin I think will be useful an english translation for this side of the forum (all examples and screenshots are in russian)


best regards,

w3b5urf3r


Davide Carpi attached the following image(s):
Mappa caratteri.png
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline mkraska  
#4 Posted : 09 March 2013 15:49:10(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,443
Germany

Was thanked: 761 time(s) in 488 post(s)
Hi Davide,

the modified file works, thank you. In the german handbook there is a section on the gpc plugin, explaining the matrix object structure. Also, the functions of the plugin (all starting with gpc_) are listed and shortly explained in the function reference part (best access via index).

Perhaps the essential part is the matrix format.

mat(r,range(el(p.,1),el(p.,r)),range(range(el(x,1,1),el(x,1,el(p,1))),range(el(x,r,1),el(x,r,el(p,r)))),p,range(el(f.,1),el(f.,r)),range(range(el(y,1,1),el(y,1,el(p,1))),range(el(y,r,1),el(y,r,el(p,r)))),2,3)

r: number of boundaries
p: number vertices
p.i is the number of vertices in the i-th boundary
f.i is the hole-flag. 1=boundary defines a hole, 0 otherwise
x[i;j is the vertex co-ordinate of the j-th vertex in the i-th boundary.

The matrix has 1 + r + sum(p[i) columns.

some day I shall add some examples to the handbook, e.g. for area and centroid calculation.

Martin
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 09/03/2013(UTC)
Offline Davide Carpi  
#5 Posted : 04 June 2013 09:54:03(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
Added to the Gallery (SMath Studio 0.96.4902) Good


best regards,

w3b5urf3r
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 1 user thanked Davide Carpi for this useful post.
on 04/06/2013(UTC)
Offline sublim21  
#6 Posted : 03 September 2013 21:16:45(UTC)
sublim21


Rank: Advanced Member

Groups: Registered
Joined: 18/05/2011(UTC)
Posts: 36

Was thanked: 3 time(s) in 3 post(s)
Excellent Job Man. I was working on something similar. I'll post my version when it's ready.


Also, love that you licensed your work the way you did.

-Pete
Offline Davide Carpi  
#7 Posted : 04 September 2013 01:20:09(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
Originally Posted by: sublim21 Go to Quoted Post
Excellent Job Man. I was working on something similar. I'll post my version when it's ready.


Also, love that you licensed your work the way you did.

-Pete

Cool, I'll wait your worksheet Good
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline Flenders  
#8 Posted : 24 September 2018 09:40:53(UTC)
Flenders

Rank: Newbie

Groups: Registered
Joined: 18/09/2018(UTC)
Posts: 6
Slovakia

Hello,

Firstly, let me thank you for such a wonderful work. It is amazing sheet.

To the point, Is it possible to arrange the calculation for horizontally asymmetric I profile? Such as following
Asymmetric profile

Thank you!
Offline Davide Carpi  
#9 Posted : 24 September 2018 10:27:16(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
of course it is possible Good

Ibeam_ha.sm (24kb) downloaded 38 time(s).
Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Offline Flenders  
#10 Posted : 24 September 2018 12:13:47(UTC)
Flenders

Rank: Newbie

Groups: Registered
Joined: 18/09/2018(UTC)
Posts: 6
Slovakia

Originally Posted by: Davide Carpi Go to Quoted Post
of course it is possible Good

Ibeam_ha.sm (24kb) downloaded 38 time(s).


Thank you for such a prompt response Good

If you dont mind, I would like to ask you for short explanation. Ive tried to make it by myself, everything was clear except the part with the fillet. Ive got it flipped around vertical axis. I would really appreciate short explanation to understand it completely Good. Maybe with simple sketch ?! No need to hurry.

Thank you again

Daniel

Edited by user 24 September 2018 13:21:36(UTC)  | Reason: Not specified

Offline Davide Carpi  
#11 Posted : 24 September 2018 13:55:01(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
Sure! Good

First of all what we want to archieve is to draw the shape using less points and operations as possible.

  1. Taking advantage of the symmetry we draw one side
    01.png

  2. Once we have the points, the other side can be drawn by symmetry using the symmetry matrix multiplication, then stacking the points; the problem is that they aren't sorted in the correct order
    02.png

  3. This can be solved by using the reverse() function
    03.png

  4. To close the figure then what you need is only to add as last point the first
    04.png


(I've cleared the eval() that aren't needed)

About the fillet...

  1. You can draw a counterclockwise arc in this way:
    fillet - 01.png

    k/pts*pi/2 is the angle at each loop, and increments from 0 to pi/2 as k increments from 0 to pts

  2. You can add pi to the angles above to have the arc with the correct order of points and the right orientation (remember that we are drawing the RHS of the shape)
    fillet - 02.png

  3. You have only to shift it from the origin to the correct location
    fillet - 03.png


That's all, I think Good

Edited by user 24 September 2018 14:52:57(UTC)  | Reason: fixed wrong formulas in images

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 7 users thanked Davide Carpi for this useful post.
on 24/09/2018(UTC),  on 24/09/2018(UTC),  on 24/09/2018(UTC),  on 24/09/2018(UTC),  on 24/09/2018(UTC),  on 24/09/2018(UTC),  on 24/09/2018(UTC)
Offline uni  
#12 Posted : 24 September 2018 21:46:18(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 850
Man
Russian Federation

Was thanked: 760 time(s) in 434 post(s)
2018-09-24_23-45-46.png
Russia forever!
Viacheslav N. Mezentsev
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
thanks 3 users thanked uni for this useful post.
on 24/09/2018(UTC),  on 25/09/2018(UTC),  on 25/09/2018(UTC)
Offline PompelmoTell  
#13 Posted : 25 September 2018 14:26:56(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 133
Italy
Location: italy

Was thanked: 56 time(s) in 46 post(s)
Davide,
I find this error in the PolyProperties.sm file (also in the definition of CHS_beam)

sergio
thanks 1 user thanked PompelmoTell for this useful post.
on 26/09/2018(UTC)
Offline Flenders  
#14 Posted : 25 September 2018 19:34:15(UTC)
Flenders

Rank: Newbie

Groups: Registered
Joined: 18/09/2018(UTC)
Posts: 6
Slovakia

First of all, Thank you Davide Carpi! Amazing work!



Originally Posted by: uni Go to Quoted Post
2018-09-24_23-45-46.png


Uni, your graph addon is amazing, but I have one question. How can I lock the X-Y ratio of the graph?

Bez nazvu.jpg

Thank you,

Daniel.

Edited by user 25 September 2018 19:37:36(UTC)  | Reason: picture added

Offline Jean Giraud  
#15 Posted : 25 September 2018 21:14:03(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,218
Canada

Was thanked: 631 time(s) in 487 post(s)
... construction for novice.

Hbeam.PNG
Offline Davide Carpi  
#16 Posted : 26 September 2018 13:51:26(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,055
Man
Italy
Location: Italy

Was thanked: 1045 time(s) in 687 post(s)
Originally Posted by: PompelmoTell Go to Quoted Post
Davide,
I find this error in the PolyProperties.sm file (also in the definition of CHS_beam)

sergio


Thank you, updated (in the gallery) Good

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 1 user thanked Davide Carpi for this useful post.
on 26/09/2018(UTC)
Offline uni  
#17 Posted : 26 September 2018 14:25:52(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 850
Man
Russian Federation

Was thanked: 760 time(s) in 434 post(s)
Originally Posted by: Flenders Go to Quoted Post
Uni, your graph addon is amazing, but I have one question. How can I lock the X-Y ratio of the graph?

I'm not sure that this is possible.

Russia forever!
Viacheslav N. Mezentsev
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
Offline Flenders  
#18 Posted : 26 September 2018 16:15:19(UTC)
Flenders

Rank: Newbie

Groups: Registered
Joined: 18/09/2018(UTC)
Posts: 6
Slovakia

Originally Posted by: uni Go to Quoted Post
Originally Posted by: Flenders Go to Quoted Post
Uni, your graph addon is amazing, but I have one question. How can I lock the X-Y ratio of the graph?

I'm not sure that this is possible.



It works perfectly with standard plot. If you want to change the ratio of X-Y axes you just hold either shift or control while graph is selected and scroll up / down. would be perfect to have an option to have it like that with your addon, so you can lock ratio of X-Y to 1:1.

Or maybe Im just picky but its a major option for me since I use graphing as visual check of designed profile and i want it to be in 1:1 ratio. Unsure

Anyways your addon is still really good. OK
Offline uni  
#19 Posted : 26 September 2018 16:36:02(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 850
Man
Russian Federation

Was thanked: 760 time(s) in 434 post(s)
Originally Posted by: Flenders Go to Quoted Post
If you want to change the ratio of X-Y axes you just hold either shift or control while graph is selected and scroll up / down.

This works with X-Y Plot too.
Russia forever!
Viacheslav N. Mezentsev
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
Offline Flenders  
#20 Posted : 26 September 2018 16:57:35(UTC)
Flenders

Rank: Newbie

Groups: Registered
Joined: 18/09/2018(UTC)
Posts: 6
Slovakia

I would have another question regarding poly properties,

I think Ive made a lot of progress but Im stuck on one particular problem.
1) How can I substract areas of these polygons? Either green or violet area.
2) How can I calculate length of red line in overlapping area?

Ive looked up definitions in polyproperties but didnt come up with anyting working. Ive made these polygons with standard methods reversed from Davide Carpi post and his polyprop sheet.

aaa.png

Thank you for any help!

Daniel
Users browsing this topic
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.