Design Response Spectra - Graphing

Design Response Spectra - Graphing - Сообщения

#1 Опубликовано: 09.05.2023 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 КиБ) скачан 407 раз(а).
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 Опубликовано: 09.05.2023 07:42:11
Davide Carpi

Davide Carpi

1 434 сообщений из 2 908 понравились пользователям.

Группа: Moderator

Here you have your file fixed.

Design Response Spectra_00.sm (28,4 КиБ) скачан 410 раз(а).

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 Опубликовано: 09.05.2023 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 КиБ) скачан 402 раз(а).
#4 Опубликовано: 10.05.2023 08:19:24
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

... smooth derivative added.

Bolean.PNG

Design Response Spectra Doctored.sm (108,16 КиБ) скачан 387 раз(а).
#5 Опубликовано: 10.05.2023 14:55:05
overlord

overlord

573 сообщений из 1 345 понравились пользователям.

Группа: 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 Опубликовано: 11.05.2023 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 КиБ) скачан 408 раз(а).
  • Новые сообщения
  • Нет новых сообщений