×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Please Heeeeelp!

Please Heeeeelp!

Please Heeeeelp!

(OP)
I am writing a program for a resonator. The code seem to be wrong somewhere at the end of the program and I can't figure out how to correct it. Please, kindly help me. I have attached it so you can view and see where the problem is.

Thanks,

Sheeni.

RE: Please Heeeeelp!

That won't load in my version of MathCAD (2001).  Print it in PDF form and repost it.  Maybe I can help.  

John D
 

RE: Please Heeeeelp!

(OP)
I have changed some things in the original file I sent and now it's a bit more plain and simple. the program is shown in the attached PDF file. I want to plot S21_0(f) and P0(f) as shown in the new file I have attached but I could not do so. Any ideas where the problem is? Could you help me to plot it and say where my error is?

Many thanks,

Ganiu.
 

RE: Please Heeeeelp!

Try making S21_0 a function of f and n:  S21_0(f,n).  Then plot for discrete values of n (not range variable).  For instance S21_0(f,1) vs f, S21_0(f,2) vs f, etc.

RE: Please Heeeeelp!

(OP)
Dear pstuckey,

I have tried what you asked me to do but it didn't work. The system displays "Mathcad Application has stopped working - close program" and then shuts down. What do you think is responsible for this? Do you think my program is not correct somewhere? I've tried to figure out where but couldn't. Please help me.

RE: Please Heeeeelp!

(OP)
I have made good progress, thanks man! But there's one or two things left. I have done for one mode as you will see in my program (attached). How do I make more than one mode appear. You will see that I manually put Q0(1) in the equation S21_0(f) and that's why I have only one peak representing Q0(1). How do I do it for Q0(n) to give n number of peaks?

Secondly, P(0)f is not plotting. The program automatically closes when I try to plot it. Why do you think this is happening? It's saying "this value must be a matrix of scalar elements".

Thanks in advance,

Sheeni.

RE: Please Heeeeelp!

Looking back at your original xmcd file, the problem with P0(f) is that you are taking the determinate rather than absolute value.  Unfortunately, Mathcad uses vertical bars for both so you can't tell which it's doing by looking at a printout.  Point the mouse at the S21_0 term in P0(f) and right click, if the box for determinate is checked, change it to absolute value.  Note that both the matrix toolbar and the calculator toolbar have a button for vertical bars, matrix toolbar is determinate, calculator toolbar is absolute value.

For your question about Q0, it will be easiest to work with the xmcd file.  Please attach that to your next post.

Peter

 

RE: Please Heeeeelp!

(OP)
Hi Peter, I must confess you are a GURU! LOL! I have been able to plot my P0(f) after following your advice, thanks. Though both S21_0(f) and P0(f) look alike, which I don't think should be, I should be able to figure it out easily. What I need now is the Q0. I have attached the xmcd file as you asked me to. I used MathCAD version 14 now so I hope you'll be able to open it from your side this time. Thanks once again, I look forward to hearing from you soon.

Regards,

Sheeni.

RE: Please Heeeeelp!

(OP)
Thanks Peter for your effort. This not exactly what I have in mind. If you look at my code, I designed the resonant frequency of my resonator to length 83.8 mm which resonates at a fundamental frequency (f0) of 1.25 GHz. So what I have in mind is to plot S21 for 6 modes and have peaks for S21 at 1.25 GHz, 2.5 GHz, 3.75 GHz, 5 GHz, 6.25 GHz, and 7.5 GHz. In your plot, there is only one peak for different values of f. The first peak on my plot and yours are not at 1.25 GHz (should be around 1.8 GHz) and that's what I've been trying to fix. Can you do that for me?

Thanks.

RE: Please Heeeeelp!

(OP)
Hi Peter,

I have attached a word document too maybe you'll understand better what I want to achieve. I have modelled a resonator used for broadband measurement. The fundamental frequency is 1.25 GHz and has other modes as shown in the file attached. What i want to do is to reproduce what is in the attachment in MathCAD using the equation S21 which I have developed. I think you'll understand better if you view the attached file. Thanks.

RE: Please Heeeeelp!

Sheeni,

Thanks that does help.  I can tell you the form that the solution must take at least.  For each peak in the response, you need one 'zero' in the denominator.  The way your current equation is written the location of the zero is determined by (f-f0).  since f0 is a constant, the zero is always at the same frequency irregardless of the value of Q0.

I've attached a worksheet to demonstrate the form the equation must take.  The caveat being that this is SOLELY to demonstrate the form of the equation - see the explanation in the xmcd file.

Peter
 

RE: Please Heeeeelp!

(OP)
Hi Peter
I have a lower version of mathcad so i can't view your document. Please can you save it with a lower version and resend it? thanks.

RE: Please Heeeeelp!

(OP)
This looks very interesting Peter. I will have a deeper look into it and see what I can make out. Thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close