Get Help

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

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Laplace Circuit Analysis "Replace complex values a...

Options

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

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

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-19-2019
02:20 AM

02-19-2019
02:20 AM

Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Hi,

I'm trying to make a template that can be used for circuit analysing using Laplace transform.

Here, we have a second order RC lowpass filter and I want to use an repetitive input signal.

In V2(s) equation, where we have the input voltage I would like to use the f(s) input function or even better g(s) repetitive input function.

In the file attached you can see that I have 3 plots: one with input voltage as a constant, where it works and the plot is ok, and another two using f(s) and g(s), where it returns this error "Replace complex values and NaNs by real numbers".

What can be improved in order to use the repetitive s domain function?

Mathcad using is Prime 4 and you cand find attached a .pdf too.

Thanks.

Labels:

10 REPLIES 10

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-19-2019
02:49 AM

02-19-2019
02:49 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Try to evaluate V.2_f for, lets say, t=10^-5, numerically!

You run into an overflow error - the calculation of a subexpression yields a result greater than the numerical limit of 10^307 and throws an error.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-19-2019
09:15 AM

02-19-2019
09:15 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Hi,

Although realized with mathcad15, you can rewrite it in Prime. You should proceed in this way:

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-23-2019
09:10 AM

02-23-2019
09:10 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-23-2019
12:41 PM

02-23-2019
12:41 PM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Hi,

I enclose the Mathcad 15 worksheet related to your problem and which you can easily import into Prime. Learn the art and put it aside...

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-25-2019
06:19 AM

02-25-2019
06:19 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Hi -MF-,

If i rewrite your input signal, when I try to plot returns the following error: "This value must be a real number"

LE: I solved this step, I will go on and return with news.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-25-2019
06:25 AM

02-25-2019
06:25 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-25-2019
11:58 AM

02-25-2019
11:58 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Hi,

It is not necessary to rewrite the whole worksheet. It is sufficient and very fast (a few seconds) to import the file into Prime. Then you have to do some adaptation.

If you've already done it, did you import the file in Prime correctly?

(Vsqw is dimensionless while V.sqw isn't.)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-26-2019
09:09 AM

02-26-2019
09:09 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

If C=2*10^-6 then tau is 10000 times faster than my result as already Werner_E wrote.

So the output signal shape is same to input waveform, 5(u(t)-u(t-2)).

My results change the C to 2*10^-2, therefore, transient change in output signal is visible. However, Prime 5 of my devise only solve one or two input series of inverse Laplace transformation. It can also solve numerically three input pulse series. Therefore, I made the 3^{rd} response as a series of rest 7 pulse responses.

Because the 1^{st} to 2^{nd} responses after the 3^{rd} response is too small to affect the results in my graph scales.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-28-2019
02:59 AM

02-28-2019
02:59 AM

Re: Laplace Circuit Analysis "Replace complex values and NaNs by real numbers"

Hello again -MF-,

Sorry all for my slow reply.

Yes I imported as you shown but it does't have the same result. See picture attached

Thank you.

Top Tags