×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

Plotting Solve Block Results

Plotting Solve Block Results

Plotting Solve Block Results

(OP)
Does anyone know how to do this?

I am having problems sizing a control valve and would like to graph the results to verfiy that my system is stable.  To do this, I would like to iterate my solve block over a range of predetermined values and plot the response of Qbw and PopenR.

If anyone has an example of this, please let me know.  I know that range variables are not allowed in solve blocks, though.  I was wondering how it was done.  

Please pardon the organization of the sheet :).  Just scroll to the end and take a look at the results.  The block works.

gambitjj

RE: Plotting Solve Block Results

You create a function with a list of variables to be changed and assign to it the Find function:

Given
   blah
   blah

func(x,y):=Find(z)

Then, iterate on func(x,y)

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

RE: Plotting Solve Block Results

(OP)
Can I use this approach with units or do the variables have to be dimensionless?

RE: Plotting Solve Block Results

(OP)
I am having a really hard time performing this calc with units.  I've seen web examples of it done without units.  Can someone confirm or provide an example of this being done with units?

RE: Plotting Solve Block Results

I have had problems when using units.  Functions link ln() will not work.  I don't use units because very little of the math I do is simple arithmetic or algebra.

BTW, I can't play because you posted using version 14. I would always post problems using version 11. I have version 13 but I know many have stayed with 11.

I have lots of examples of control using solve, find, minerr etc. Perhaps you can find an example of what you need here even though I don't know exactly what you want.
ftp://ftp.deltacompsys.com/public/NG/Mathcad%20-%20IAE3.pdf
It has a little of everything I think.


 

RE: Plotting Solve Block Results

Wow, this worksheet need some work.  To start with I would assign the table for flows and heads to a variable 'Column'.
I inserted a table that by insert->data->table and copied your data into the one I made
Column:=TableOfHeadsAndFlows
I can't show the Table of Head and flow in text but you know what I mean
 
Flow:=Column<0>
Head:=Column<1>

After I fixed that I got the graph below to work.

I didn't get any data in the System table except a 0 at System0,0

As IRStuff said, you aren't using the given and find correctly.  I didn't see the given for the find.
The proper way to use find is like this
ftp://ftp.deltacompsys.com/public/NG/Mathcad%20-%20CenterOfCircleCalculations.pdf
The answer stretches across a couple of pages.

Quote:


That looks to be a good source of MathCAD examples !
ftp://ftp.deltacompsys.com/public/NG/
There are other directories.  My company, Delta Computer Systems, makes motion controllers so I must be able to do closed loop control and simulations. I generated these pdf files to make my points clear on other forums. I can see I need to update some.


 

RE: Plotting Solve Block Results

(OP)
Thanks for the help.  I admit that the sheet has to be organized, but the solve block works fine.  I am just trying to iterate the solve block at this point.

"I didn't get any data in the System table except a 0 at System0,0

As IRStuff said, you aren't using the given and find correctly.  I didn't see the given for the find."

That's weird all components work fine in my version.  Now that you mention it, I do remember when saving as a v11 file, Mathcad warned that I might lose some features.  This is frustrating.  All graphs and the solve block  worked.  The find command is in a hidden region near the end of the sheet where it says "results vector collapsed".

Would a pdf help?

RE: Plotting Solve Block Results

First, you have not defined System.

Next, the vector result (and thus the parameters) of the Find function cannot contain elements with different units.  This is true of any matrix of vector - all elements have to be either unitless or have the same units.
 

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!


Resources