Design Response Spectra - Graphing

Design Response Spectra - Graphing - 消息

#1 已发布: 2023/5/9 05:31:47
GFDIntano

GFDIntano

0个赞,共8个帖子。

组: 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)已下载 1429 次。
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 已发布: 2023/5/9 07:42:11
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Here you have your file fixed.

Design Response Spectra_00.sm (28.4 KiB)已下载 1417 次。

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 已发布: 2023/5/9 08:45:17
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Thank you for any help,


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

Design Response Spectra Doctored.sm (32.53 KiB)已下载 1432 次。
#4 已发布: 2023/5/10 08:19:24
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... smooth derivative added.

Bolean.PNG

Design Response Spectra Doctored.sm (108.16 KiB)已下载 1380 次。
#5 已发布: 2023/5/10 14:55:05
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2023/5/11 11:41:33
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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)已下载 1439 次。
  • 有新帖
  • 无新帖