Function not delivering right results with range variable

Function not delivering right results with range variable - Function not delivering right results with range variable - Messaggi

#1 Pubblicato: 10/07/2019 14:20:09
Sarvesh Ambekar

Sarvesh Ambekar

0 apprezzamenti in 5 post.

Gruppo: User

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 (23,97 KiB) scaricato 1397 volta(e).
Regards
Saviind
#2 Pubblicato: 10/07/2019 14:52:36
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

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 (24,16 KiB) scaricato 1449 volta(e).

sergio
#3 Pubblicato: 10/07/2019 16:30:38
Sarvesh Ambekar

Sarvesh Ambekar

0 apprezzamenti in 5 post.

Gruppo: User

Sergio@PompelmoTell
Thanks for your advice & support.

  • Nuovi post
  • Nessun nuovo post