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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Saviind  
#1 Posted : 10 July 2019 20:20:09(UTC)
Saviind

Rank: Newbie

Groups: Registered
Joined: 09/07/2019(UTC)
Posts: 2
India
Location: Mumbai

I have a very basic question to make.
Please review attached file defined to compute stress and deflection of simply supported beam.
The function for Bending moment, stress and deflection are defined with variable x which is defined over the length of beam.

All functions except deflection return right results except deflection. The value shown as a result with function x results incorrect results but when individual values of x is passed on to the function then the results are accurate.

I with to understand what seems to be the issue?

File attached.
Cantilever_beam.sm (24kb) downloaded 14 time(s).
Regards
Saviind
Offline PompelmoTell  
#2 Posted : 10 July 2019 20:52:36(UTC)
PompelmoTell


Rank: Advanced Member

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

Was thanked: 66 time(s) in 55 post(s)
When an evaluation is performed for multiple values (inserted in a vector) you must perform element-by-element evaluation with the "vectorize" function. I also advise you not to use "x" either as a function variable or with vector containing the evaluation points

Cantilever_beam_s.sm (25kb) downloaded 33 time(s).

sergio
Offline Saviind  
#3 Posted : 10 July 2019 22:30:38(UTC)
Saviind

Rank: Newbie

Groups: Registered
Joined: 09/07/2019(UTC)
Posts: 2
India
Location: Mumbai

Sergio@PompelmoTell
Thanks for your advice & support.

Users browsing this topic
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.