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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline hanskl  
#1 Posted : 05 November 2019 18:52:13(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Hi guys.

I have come across an obstacle that I have not managed to find a satisfactory solution to. I am sure the problem is easy for the experts here, but the solution completely eludes me.

I want to make a function to plot bending moments caused by an eccentric load.

My aim is to make an equation/function that can plot a continuous bending moment diagram, while being able to scale how many loads is acting on the member.

Thank you for your time.

Best regards,
Hans Kristian.

snip.PNG

test.sm (107kb) downloaded 13 time(s).

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

Offline Jean Giraud  
#2 Posted : 05 November 2019 22:43:53(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Do you mean a function that will represent M(x)... up to 100 ?
Certainly from selecting representative support points !

Plot.PNG

test (3).sm (109kb) downloaded 12 time(s).
Offline hanskl  
#3 Posted : 05 November 2019 23:14:42(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Do you mean a function that will represent M(x)... up to 100 ?
Certainly from selecting representative support points !

Plot.PNG

test (3).sm (109kb) downloaded 12 time(s).


Hi Jean,

I want a function that will represent M(x) where the eccentric load P will be divided into n equal loads which are spaced out evenly along the length of the member.

Does that make sense? Crazy
Offline mkraska  
#4 Posted : 06 November 2019 00:33:47(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1120 time(s) in 718 post(s)
saw.sm (8kb) downloaded 10 time(s).
saw.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#5 Posted : 06 November 2019 00:42:15(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: hanskl Go to Quoted Post
Hi Jean,

I want a function that will represent M(x) where the eccentric load P will be divided into n equal loads which are spaced out evenly along the length of the member.

I guess it makes sense, that stuff is not my cup of tea.
You mean the 100 lines is typical of eccentric load model but
each one will be of different parameters [your conditions] ???
Big project in view Captain !
We have a utility that divides a range in N equal spaces>
That will make some lines longer/shorter as per the how those
loads appear on the beam.
Do you have some material from else source ?

Offline mkraska  
#6 Posted : 06 November 2019 00:47:15(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1120 time(s) in 718 post(s)
Now with proper scaling

saw1.png
saw1.sm (6kb) downloaded 18 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline hanskl  
#7 Posted : 06 November 2019 00:57:54(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Hi Jean,

I want a function that will represent M(x) where the eccentric load P will be divided into n equal loads which are spaced out evenly along the length of the member.

I guess it makes sense, that stuff is not my cup of tea.
You mean the 100 lines is typical of eccentric load model but
each one will be of different parameters [your conditions] ???
Big project in view Captain !
We have a utility that divides a range in N equal spaces>
That will make some lines longer/shorter as per the how those
loads appear on the beam.
Do you have some material from else source ?



The application for this sheet is going to be on sandwich concrete wall panels where the weight of the exterior non-bearing layer of concrete acts on the interior bearing layer. The actions to consider are N and M.

In practical application, N will be split into 2-4 equal loads, but I wanted to make a framework that could split the load into n parts, just for fun.. Biggrin
Offline hanskl  
#8 Posted : 06 November 2019 01:02:01(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: mkraska Go to Quoted Post
Now with proper scaling

saw1.png
saw1.sm (6kb) downloaded 18 time(s).


Thank you Martin, this is exactly what I am looking for!

Although your expression is both much simpler and much faster to compute, it does not look anything like what I had in mind.. Goes to show I have so much more to learn when it comes to SMath!

Cheers! Biggrinrinks:
Offline Razonar  
#9 Posted : 06 November 2019 03:47:57(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)
Originally Posted by: mkraska Go to Quoted Post
Now with proper scaling



Just for show why the Martin solution it's correct:

int.gif

Best regards.
Alvaro.
Offline mkraska  
#10 Posted : 06 November 2019 04:39:50(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: hanskl Go to Quoted Post

Thank you Martin, this is exactly what I am looking for!

Although your expression is both much simpler and much faster to compute, it does not look anything like what I had in mind.. Goes to show I have so much more to learn when it comes to SMath!

Cheers! Biggrinrinks:


The approach was purely phenomenological, i.e. to reproduce the plots, no matter what they mean. The idea was to combine a sawtooth function and a linear term (slope). There are many options to get a sawtooth, the modulo function being just one of them. Others are round(), Floor(), Ceil()... The remainder was guessing the coefficients in a heuristic trial and error fashion.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#11 Posted : 06 November 2019 05:03:41(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: hanskl Go to Quoted Post
Although your expression is both much simpler and much faster to compute, it does not look anything like what I had in mind..

That great scaled saw tooth plots on the canvas wrt 'x'.
You then have to subdivide 'x' to imitate your first document.
The attached utilities are general rather than specific to
your project. You can fabricate whatever for purpose.
Stay in love with Smath ... don't hesitate for +.
Cheers ... Jean

Utilities Discrete Algo Range INTERVALS.sm (30kb) downloaded 14 time(s).
Utilities Discrete Algo Range INTERVALS Application.sm (30kb) downloaded 13 time(s).
Utilities Discrete Algo Range INTERVALS Parts 1234.sm (85kb) downloaded 15 time(s).

Offline hanskl  
#12 Posted : 06 November 2019 12:50:02(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Razonar Go to Quoted Post
Originally Posted by: mkraska Go to Quoted Post
Now with proper scaling



Just for show why the Martin solution it's correct:

Best regards.
Alvaro.


Interessting. I have tweaked Martins equations - now n represents the number of loads, not the number of segments between loads/supports.

Any idea why the integral gives me this result? Also, my integral is 10x the value of yours.

Best regards,

Skjermbilde.PNG
Offline hanskl  
#13 Posted : 06 November 2019 12:51:22(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Although your expression is both much simpler and much faster to compute, it does not look anything like what I had in mind..

That great scaled saw tooth plots on the canvas wrt 'x'.
You then have to subdivide 'x' to imitate your first document.
The attached utilities are general rather than specific to
your project. You can fabricate whatever for purpose.
Stay in love with Smath ... don't hesitate for +.
Cheers ... Jean

Utilities Discrete Algo Range INTERVALS.sm (30kb) downloaded 14 time(s).
Utilities Discrete Algo Range INTERVALS Application.sm (30kb) downloaded 13 time(s).
Utilities Discrete Algo Range INTERVALS Parts 1234.sm (85kb) downloaded 15 time(s).



Interesting stuff.. I will have a closer look at that when I have some spare time.

Cheers Biggrin
Offline hanskl  
#14 Posted : 06 November 2019 12:53:18(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: mkraska Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post

Thank you Martin, this is exactly what I am looking for!

Although your expression is both much simpler and much faster to compute, it does not look anything like what I had in mind.. Goes to show I have so much more to learn when it comes to SMath!

Cheers! Biggrinrinks:


The approach was purely phenomenological, i.e. to reproduce the plots, no matter what they mean. The idea was to combine a sawtooth function and a linear term (slope). There are many options to get a sawtooth, the modulo function being just one of them. Others are round(), Floor(), Ceil()... The remainder was guessing the coefficients in a heuristic trial and error fashion.



I thought that might be the case.. Anyways, it was purely to illustrate what happens when n approaches infinity, and your solution worked wonders for that!

Thanks again Victory
Offline Jean Giraud  
#15 Posted : 06 November 2019 16:56:55(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: hanskl Go to Quoted Post
Any idea why the integral gives me this result?

Smath native Simpson integrator ranges from:
1. Exact only few trivial cases.
2. Acceptable but depending upon Options/Calculations/Int. acc
set 1000 in your example.
3. Native Simpson may be TOTALLY useless.
Sooner or later, units system collide in the wall.

Discontinuous integration is poison in the soup.
Master tool box has done all difficult projects
except ONE ... The Inverse_Z transform.

Cheers ... Jean

Integrate Discontinuous [min(x)].sm (9kb) downloaded 11 time(s).
Integrate Discontinuous_1.sm (25kb) downloaded 11 time(s).
Integrate Discontinuous.sm (32kb) downloaded 10 time(s).
Integrate Discontinuous_2.sm (133kb) downloaded 10 time(s).
Integral 00000000 MASTER ToolBox.sm (477kb) downloaded 15 time(s).
Offline hanskl  
#16 Posted : 06 November 2019 23:50:35(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Any idea why the integral gives me this result?

Smath native Simpson integrator ranges from:
1. Exact only few trivial cases.
2. Acceptable but depending upon Options/Calculations/Int. acc
set 1000 in your example.
3. Native Simpson may be TOTALLY useless.
Sooner or later, units system collide in the wall.

Discontinuous integration is poison in the soup.
Master tool box has done all difficult projects
except ONE ... The Inverse_Z transform.

Cheers ... Jean



Thanks again Jean.. I am baffled by the knowledge you guys possess here on the forum!

Best regards,
Hans Kristian.
Offline Jean Giraud  
#17 Posted : 07 November 2019 02:32:03(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: hanskl Go to Quoted Post
Thanks again Jean.. I am baffled by the knowledge you guys possess here on the forum!

At least, two of us are old kookoo from Mathcad.
Smath learning curve has not revealed asymptotic.
Two versions of the 3D rolling Torus.

Rotate Torus [Ber7 20170922].sm (21kb) downloaded 10 time(s).
Rotate Torus.sm (45kb) downloaded 11 time(s).

Offline hanskl  
#18 Posted : 07 November 2019 12:01:13(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Thanks again Jean.. I am baffled by the knowledge you guys possess here on the forum!

At least, two of us are old kookoo from Mathcad.
Smath learning curve has not revealed asymptotic.
Two versions of the 3D rolling Torus.



It took my computer about 3 minutes to compute this sheet.. Crazy
Users browsing this topic
Similar Topics
"Cases" function and for loop (Questions)
by gth802s 21/11/2023 06:06:52(UTC)
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.