Design Response Spectra - Graphing

Design Response Spectra - Graphing - Messaggi

#1 Pubblicato: 09/05/2023 05:31:47
GFDIntano

GFDIntano

0 apprezzamenti in 8 post.

Gruppo: User

Good day,

So I was shifting from Mathcad to SMath and I can't seem to do this properly. How do I get around graphing this response spectra.I'm quite new to SMath so please be understanding if I don't know of some functions within the program.

Design Response Spectra.sm (27,5 KiB) scaricato 1420 volta(e).
Design Response Spectra.PNG

This is hot it works finely in Mathcad, what would be your suggestions?

Mathcad Design Response Spectra.PNG

Thank you for any help,
#2 Pubblicato: 09/05/2023 07:42:11
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Here you have your file fixed.

Design Response Spectra_00.sm (28,4 KiB) scaricato 1406 volta(e).

The issues:

The function was made using "while", that is a loop iterator. You have to use if(), or cases() if you prefer (the latter is part of a 3rd party plugin).
2023-05-09 12_37_35-SMath Solver - [Design Response Spectra_00.sm].png

The evaluation for multiple values has to be done using vectorize() or alternatively by a loop
2023-05-09 12_37_51-SMath Solver - [Design Response Spectra_00.sm].png

The built-in plot variable is always x for static plots, t to add animations.
2023-05-09 12_37_44-SMath Solver - [Design Response Spectra_00.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Pubblicato: 09/05/2023 08:45:17
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Thank you for any help,


Doctored in Smath SS 6179.
Cheers ... Jean.

Design Response Spectra Doctored.sm (32,53 KiB) scaricato 1423 volta(e).
#4 Pubblicato: 10/05/2023 08:19:24
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... smooth derivative added.

Bolean.PNG

Design Response Spectra Doctored.sm (108,16 KiB) scaricato 1371 volta(e).
#5 Pubblicato: 10/05/2023 14:55:05
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

An alternative way to write boolean of your function is using ltle() function.
It is one of functions of Custom Functions Plugin.

Regards

2023-05-10_20-53.png
#6 Pubblicato: 11/05/2023 11:41:33
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Thank you for any help,


Thanks for your project. Saved in my personal project files.
I best remember visiting Manilla [April 1987]
Take care in Philippines ... Jean

Project Seismic Manilla.sm (570,28 KiB) scaricato 1429 volta(e).
  • Nuovi post
  • Nessun nuovo post