Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline Jesus_Solano  
#1 Posted : 29 July 2022 19:13:09(UTC)
Jesus_Solano

Rank: Newbie

Groups: Registered
Joined: 15/06/2020(UTC)
Posts: 6
Peru
Location: Lima

Hi everyone ,I'm doing a momentum curvature usign Popovic's Method and found a big problem beacuse to divide a polygon(convex and concave) into small fiber like this image but with more lines:
General Polygon

it's not so easy to do an algorithm. I did a smath file when the polygon it's rectangular but for more general case my smath code doesn't work, I'd like know an algorithm, code or function if it's posible in smath or other language to develop.

Best regards.
Jesus.

Verificacion_de_fluencia_en_acero_fiber_method_degradation_forum.pdf (551kb) downloaded 25 time(s).

Edited by user 29 July 2022 19:31:21(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 29 July 2022 22:45:52(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
If I understand ...
Your polygon has 9 vertices, we can try a circular spline.
That will add as many points between vertices, is it ?
From there: Area, Perimeter, Center of Gravity.
Give the vertices... Jean.
Offline Jesus_Solano  
#3 Posted : 30 July 2022 00:10:04(UTC)
Jesus_Solano

Rank: Newbie

Groups: Registered
Joined: 15/06/2020(UTC)
Posts: 6
Peru
Location: Lima

Hi Jean, exactly I need to known the area, center of gravity and perimeter of the division but the polygon doesn't need to have 9 vertices, this is an example in this case. In general ,I'd like to calculate for n vertices polygon(convex or concave),let me give an example in smath for regular polygon.

image.png

polygon_2.sm (37kb) downloaded 8 time(s).

Best regards.
Jesus.

Edited by user 30 July 2022 06:30:45(UTC)  | Reason: Adding and plotting polygon convex and concave

Offline Jesus_Solano  
#4 Posted : 30 July 2022 21:49:15(UTC)
Jesus_Solano

Rank: Newbie

Groups: Registered
Joined: 15/06/2020(UTC)
Posts: 6
Peru
Location: Lima

Hi Jean, it was a good solution and you give some ideas to do a code but I'd like to do for more lines and I'd like to optimize the code or algorithm. I did a code in smath maybe need to optimize some parts and get some interesting results, i hope you take a look because a I'd like to aply to convex and no convex polygon, I think it's so hard but I'd like to know the algorithm or code that other programs use. My code doesn't work for some slopes though

Page5 Polygon Copy.sm (117kb) downloaded 10 time(s).

Best regards.
Jesus.

Edited by user 31 July 2022 02:48:47(UTC)  | Reason: correction

Offline mkraska  
#5 Posted : 31 July 2022 13:45:01(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1126 time(s) in 723 post(s)
Originally Posted by: Jesus_Solano Go to Quoted Post
Hi everyone ,I'm doing a momentum curvature usign Popovic's Method and found a big problem beacuse to divide a polygon(convex and concave) into small fiber like this image but with more lines:
General Polygon

it's not so easy to do an algorithm. I did a smath file when the polygon it's rectangular but for more general case my smath code doesn't work, I'd like know an algorithm, code or function if it's posible in smath or other language to develop.

Best regards.
Jesus.

Verificacion_de_fluencia_en_acero_fiber_method_degradation_forum.pdf (551kb) downloaded 25 time(s).


This might be an application for the GPC wrapper plugin by Davide.

gpc1.sm (13kb) downloaded 15 time(s).
gpc1.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jesus_Solano  
#6 Posted : 31 July 2022 18:37:52(UTC)
Jesus_Solano

Rank: Newbie

Groups: Registered
Joined: 15/06/2020(UTC)
Posts: 6
Peru
Location: Lima

Thank you so much, mkraska and Jean, I'll take a look this package (GPC wrapper).

Best regards

Jesús.
Offline Jesus_Solano  
#7 Posted : 31 July 2022 22:06:27(UTC)
Jesus_Solano

Rank: Newbie

Groups: Registered
Joined: 15/06/2020(UTC)
Posts: 6
Peru
Location: Lima

Ok Jean, I hope You'll find an algorithm to solve that problem.

Best regards
Jesus
Offline loha  
#8 Posted : 01 August 2022 20:09:35(UTC)
loha


Rank: Advanced Member

Groups: Registered
Joined: 13/09/2011(UTC)
Posts: 63
Location: Kolkata

Was thanked: 9 time(s) in 9 post(s)
very exciting project!
Offline Jesus_Solano  
#9 Posted : 01 August 2022 20:23:17(UTC)
Jesus_Solano

Rank: Newbie

Groups: Registered
Joined: 15/06/2020(UTC)
Posts: 6
Peru
Location: Lima

Hi Jean it's an excellent solution, thank you so much Clap, I did a code with GPC plugin and I could get this results.

fibers.png

fibers1.png

polygon_irregular_fiber_borrador1.sm (35kb) downloaded 15 time(s).

polygon_regular_fiber_borrador1.sm (36kb) downloaded 14 time(s).

Best regards

Jesus

Edited by user 01 August 2022 21:46:11(UTC)  | Reason: Not specified

Offline Jean Giraud  
#10 Posted : 01 August 2022 21:19:08(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: loha Go to Quoted Post
very exciting project!

... algo style to collapse in utilities.

Polygon.PNG
Offline mkraska  
#11 Posted : 02 August 2022 01:06:15(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1126 time(s) in 723 post(s)
General hatching procedure for arbitrary contours

gpc2.png
gpc2.sm (43kb) downloaded 19 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Razonar  
#12 Posted : 02 August 2022 06:05:56(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. In the attached, a function for see if a point is inside or outside a polygon, and a code for double integrals using Gauss-Legendre coefficients.

InPoly.pdf (98kb) downloaded 16 time(s).
InPoly.sm (44kb) downloaded 27 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 02/08/2022(UTC)
Offline loha  
#13 Posted : 02 August 2022 08:44:17(UTC)
loha


Rank: Advanced Member

Groups: Registered
Joined: 13/09/2011(UTC)
Posts: 63
Location: Kolkata

Was thanked: 9 time(s) in 9 post(s)
Wow!
Will we be able to calculate the static moment and the moment of inertia of any section with these tools?
Offline mkraska  
#14 Posted : 02 August 2022 12:41:33(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1126 time(s) in 723 post(s)
gpc3.sm (136kb) downloaded 43 time(s).
2022-08-02 11_11_43-SMath Solver 1.0.8238 - [gpc3.sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 02/08/2022(UTC)
Offline loha  
#15 Posted : 02 August 2022 15:21:54(UTC)
loha


Rank: Advanced Member

Groups: Registered
Joined: 13/09/2011(UTC)
Posts: 63
Location: Kolkata

Was thanked: 9 time(s) in 9 post(s)
That's superb!
Clap Clap Clap
Thanks a lot!

Has anyone worked on polyhedra, convex hulls and polar polyhedra?
Offline Jean Giraud  
#16 Posted : 02 August 2022 17:16:59(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... refreshed for convenience.

Maths Polygon Create.sm (100kb) downloaded 16 time(s).

Offline Jean Giraud  
#17 Posted : 02 August 2022 18:35:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: loha Go to Quoted Post
Has anyone worked on polyhedra, convex hulls and polar polyhedra?

I may have something on convex hull
Polyhedra, we have C_60 extracted from the adjacency matrix.
Jean

Offline loha  
#18 Posted : 02 August 2022 19:41:40(UTC)
loha


Rank: Advanced Member

Groups: Registered
Joined: 13/09/2011(UTC)
Posts: 63
Location: Kolkata

Was thanked: 9 time(s) in 9 post(s)
anything on the adjacency matrix I am super interested!
Handling the adjacency matrix is the only difficulty in fact. Polarity of points-planes is easy.
Offline Jean Giraud  
#19 Posted : 03 August 2022 02:47:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: loha Go to Quoted Post
anything on the adjacency matrix I am super interested!
Handling the adjacency matrix is the only difficulty in fact. Polarity of points-planes is easy.

1. In the attached Buckyball, adjacency matrix is from Mathsoft,
Mathsoft borrowed fro Matlab.
2. I have the Mathcad convex hull ORIGIN 0
RemToDo ORIGIN 1 for Smath coding.
Cheers ... Jean.

Buckyball Adjacency.sm (17kb) downloaded 11 time(s).
0Anim Buckyball.sm (108kb) downloaded 9 time(s).
Buckyball.sm (177kb) downloaded 13 time(s).

thanks 1 user thanked Jean Giraud for this useful post.
on 03/08/2022(UTC)
Offline cleisonmanrique  
#20 Posted : 24 May 2023 23:25:09(UTC)
cleisonmanrique

Rank: Newbie

Groups: Registered
Joined: 05/01/2023(UTC)
Posts: 2
Peru
Location: Arequipa

Originally Posted by: mkraska Go to Quoted Post
gpc3.sm (136kb) downloaded 43 time(s).
2022-08-02 11_11_43-SMath Solver 1.0.8238 - [gpc3.sm_].png


I guess we can not use the same matrix of contour point to get the area and de center of mass ... Or am I wrong ?
Users browsing this topic
Guest
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.