Design Response Spectra - Graphing

Design Response Spectra - Graphing - Messages

#1 Posted: 5/9/2023 5:31:47 AM
GFDIntano

GFDIntano

0 likes in 8 posts.

Group: 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 KiB) downloaded 40 time(s).
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 Posted: 5/9/2023 7:42:11 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Here you have your file fixed.

Design Response Spectra_00.sm (28 KiB) downloaded 42 time(s).

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 Posted: 5/9/2023 8:45:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thank you for any help,


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

Design Response Spectra Doctored.sm (32 KiB) downloaded 36 time(s).
#4 Posted: 5/10/2023 8:19:24 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... smooth derivative added.

Bolean.PNG

Design Response Spectra Doctored.sm (108 KiB) downloaded 40 time(s).
#5 Posted: 5/10/2023 2:55:05 PM
overlord

overlord

551 likes in 1332 posts.

Group: 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 Posted: 5/11/2023 11:41:33 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 34 time(s).
  • New Posts New Posts
  • No New Posts No New Posts