Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

** Community Tip** - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email.
X

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Oct 15, 2023
03:15 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
03:15 AM

Piecewise Linear function Error

Hi,

I am new to Mathcad and face some problems. I have attached a file in which I am trying to plot the displacement using the Piecewise Linear Interpolation method of structural dynamics. I have defined all variables and put them in the loop, but when I try to plot displacement (u) versus time (t1), I get an error "this value must be a vector".

I would really appreciate it if you could help me resolve this issue.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

Oct 15, 2023
07:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
07:51 AM

Just had a quick glance at your sheet and here are a few remarks:

I had not looked further to spot the reason for the unit mismatch and had not looked further down in the sheet.

5 REPLIES 5

Oct 15, 2023
07:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
07:51 AM

Just had a quick glance at your sheet and here are a few remarks:

I had not looked further to spot the reason for the unit mismatch and had not looked further down in the sheet.

Oct 15, 2023
10:36 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
10:36 AM

Looked further and spotted the unit mismatch. In the calculation of D1 you were missing dt.1 in the denominator.

See attached file.

I also assumed that you actually did not want u to be a function of the four arguments you provided and so I changed that , too.

Oct 15, 2023
01:10 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
01:10 PM

Thank you very much @Werner_E. I really appreciate your quick response and solving my error. Yes, I will incorporate these changes.

Once again, thank you

Abdur

Oct 15, 2023
02:14 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
02:14 PM

You're welcome.

Just an additional note: Its not necessary to apply vectorization when calculating u and u' as the calculation only deals with scalars.

Oct 15, 2023
02:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 15, 2023
02:20 PM

Yes, I got it.

Thanks for the help. It cleared my confusion.

Abdur