cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Convergence problems with functions and sampled signals

xyz123
11-Garnet

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:

 

xyz123_0-1674836557322.pngxyz123_1-1674836589632.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ttokoro
20-Turquoise
(To:xyz123)

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

 

image.pngimage.pngimage.png

View solution in original post

3 REPLIES 3
xyz123
11-Garnet
(To:xyz123)

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. 

Werner_E
24-Ruby V
(To:xyz123)

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.

ttokoro
20-Turquoise
(To:xyz123)

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

 

image.pngimage.pngimage.png

Top Tags