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** - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements.
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

Jan 27, 2023
11:24 AM

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

Jan 27, 2023
11:24 AM

Convergence problems with functions and sampled signals

Hello all,

I have attached a sheet with a simple example function where the voltage jumps. This causes convergence problems.

I am working actually more complex signal at a capacitor, but I cant share my actual sheet.

Basically my attached example is the same... I have waveform with a discontinuity.

Later I do a derivation of the voltage signal.

Also I want to do a FFT of this signal and therefore I sample it.

In any way I have convergence problems and I dont know how to handle that. Do you have an idea?

Here is a screenshot of the sheet in case you cannot open it:

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Jan 27, 2023
07:21 PM

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

Jan 27, 2023
07:21 PM

Use sampling data you can get what you want. Prime 8 sheet attached.

If you want its Fourier series, my answer bellow shows how to do it.

Fourier Puzzle - PTC Community

3 REPLIES 3

Jan 27, 2023
12:01 PM

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

Jan 27, 2023
12:01 PM

I changed to voltage function in the new sheet, have a look. This is more realistical to my actual convergence problem than the previous sheet.

Jan 27, 2023
01:32 PM

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

Jan 27, 2023
01:32 PM

How about defining Icap(t) using a "try ... on error ...." construct.?

The "try" case would contain the original definition of Icap and the "on error" case a meaningful value or rather a NaN.

Jan 27, 2023
07:21 PM

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

Jan 27, 2023
07:21 PM

Use sampling data you can get what you want. Prime 8 sheet attached.

If you want its Fourier series, my answer bellow shows how to do it.

Fourier Puzzle - PTC Community