Design Response Spectra - Graphing

Design Response Spectra - Graphing - Poruke

#1 Objavljeno: 9. 5. 2023. 05:31:47
GFDIntano

GFDIntano

0 svidjanja u 8 postova.

Grupa: 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) preuzeto 1449 put(ova).
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 Objavljeno: 9. 5. 2023. 07:42:11
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Here you have your file fixed.

Design Response Spectra_00.sm (28,4 KiB) preuzeto 1435 put(ova).

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 Objavljeno: 9. 5. 2023. 08:45:17
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Thank you for any help,


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

Design Response Spectra Doctored.sm (32,53 KiB) preuzeto 1449 put(ova).
#4 Objavljeno: 10. 5. 2023. 08:19:24
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... smooth derivative added.

Bolean.PNG

Design Response Spectra Doctored.sm (108,16 KiB) preuzeto 1394 put(ova).
#5 Objavljeno: 10. 5. 2023. 14:55:05
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 11. 5. 2023. 11:41:33
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1454 put(ova).
  • Novi postovi
  • Nema novih postova