Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

0

Mathcad 15.0- Solving Simultaneous Equations


12 replies to this topic
Share this topic:
| More

#1 Dudesons123

Dudesons123

    Gold Member

  • Members
  • 56 posts

Posted 31 May 2017 - 04:32 AM

Dear Engineers/ Scientists,

 

How to solve the simultaneous equations using Mathcad 15.0? Help me, please.  It takes a long time to do it on a piece of paper so I have tried doing it on Mathcad 15.0.

 

 

Attached Files


Edited by Dudesons123, 08 June 2017 - 10:14 AM.


#2 Pilesar

Pilesar

    Gold Member

  • Members
  • 1,382 posts

Posted 31 May 2017 - 08:52 AM

Mathcad is not hard to learn. Read the manual. Try a few sample problems. You should be able to get the hang of it pretty quickly.



#3 Dudesons123

Dudesons123

    Gold Member

  • Members
  • 56 posts

Posted 31 May 2017 - 11:36 AM

The problem is that there are several equations I have to deal with. The figures keep turning red after I have made several tries on fixing equations.



#4 Pilesar

Pilesar

    Gold Member

  • Members
  • 1,382 posts

Posted 31 May 2017 - 12:22 PM

My approach would be:

 

Variables:
Q1
Q2
S
T1
T2
G1
 
Equations:
Q1=f(S)
Q1=f(T1)
Q2=f(T1,T2)
Q2=f(G1,T1)
Q1=f(G1,T1)
Q2=f(G1,T1,T2)
 
For any T1, you can solve for Q1 (eq 2), then for S (eq 1), then for G1 (eq 5), then for Q2 (eq 4), then for T2 (eq 3).
The last equation may not be compatible with the first five equations over the entire range of possible T1.
Adjust T1 so that Q2 found in equation 6 is the same as in equation 4. If there is no value of T1 that satisfies, then the solution sets do not intersect.
Plotting T1 vs Q2 using equations 4 and 6 would be a useful visual aid to show whether there is intersection.


#5 PaoloPemi

PaoloPemi

    Gold Member

  • Members
  • 549 posts

Posted 01 June 2017 - 03:17 AM

There are several examples with mathcad provided by Harvey Hensley

http://www.harveyhen...ool-and-new-sch

(And several threads related to mathcad at cheresources.com)

#6 breizh

breizh

    Gold Member

  • Admin
  • 6,340 posts

Posted 01 June 2017 - 04:20 AM

Hi ,

Did you try google ?

I'm pretty sure if you key in : mathcad 15 system of equation you will find pointers .

 

I found some examples on youtube too.https://www.youtube....h?v=i3Z53i0szs8

 

Good luck.

Breizh


Edited by breizh, 01 June 2017 - 04:28 AM.


#7 Dudesons123

Dudesons123

    Gold Member

  • Members
  • 56 posts

Posted 08 June 2017 - 10:22 AM

Dear Engineers/Scientists,

 

My working is given in the file below. After working on this for several days I am still having problems with Mathcad 15.0. I have tried using solve block but with no success. Please tell me whereabouts I'm going wrong here.

 

Thanks.

Attached Files


Edited by Dudesons123, 08 June 2017 - 11:09 AM.


#8 Francisco Angel

Francisco Angel

    Gold Member

  • Members
  • 88 posts

Posted 08 June 2017 - 12:12 PM

Is there a particular reason why you are sticking to mathcad?


Edited by Francisco Angel, 08 June 2017 - 12:14 PM.


#9 Dudesons123

Dudesons123

    Gold Member

  • Members
  • 56 posts

Posted 08 June 2017 - 12:16 PM

Dear Francisco Angel,

 

Mathcad is one of the softwares I need to be familiar with to help me with my 4th year in chemical engineering. I have stuck on this problem for a long time and I have tried to fix it several times but with no success.

 

Thanks.


Edited by Dudesons123, 08 June 2017 - 12:21 PM.


#10 Dudesons123

Dudesons123

    Gold Member

  • Members
  • 56 posts

Posted 08 June 2017 - 01:19 PM

Dear Scientist/Engineers,

 

I am only familiar with Mathcad 15 and not any other softwares.



#11 Pilesar

Pilesar

    Gold Member

  • Members
  • 1,382 posts

Posted 08 June 2017 - 01:45 PM

Did you try solving without using the last equation? See my detailed response from a week ago indicating that the problem may be over specified. Did you plot the solution sets for Q2 for equations 4 and 6 over values of T1 to find out if they intersect? What did you find?



#12 Dudesons123

Dudesons123

    Gold Member

  • Members
  • 56 posts

Posted 08 June 2017 - 01:54 PM

I have tried to solve without using the last equation. But since there are 6 unknowns I would need 6 equations. I tried plotting Q2 for equations 4 and 6 over values of T1 but the T1 variable on the graph keeps going red. I feel hopeless with Mathcad 15, is there a way you can show me how to do it? Do you have Mathcad 15.0?


Edited by Dudesons123, 08 June 2017 - 01:55 PM.


#13 Pilesar

Pilesar

    Gold Member

  • Members
  • 1,382 posts

Posted 09 June 2017 - 08:59 AM

To begin, use four equations only.

Equations 2, 3, 4, 5 contain unknowns T1, T2, G1, Q1, Q2.

You must supply the value for T1. This adds an additional equation like: 'T1 = 10'.

This set of 5 equations should be solvable by Mathcad. Is it?

Now for any T1 you supply, Mathcad should give the answer to T2, G1, Q1, Q2.

You have additional inequalities for the five variables at the top of your recent docx file.

These inequalities are constraints on the solution set.

Try to solve the problem without constraints initially.

Then add the constraints one at a time to restrict the available space containing the solution.

It is possible that these constraints can be too restrictive and leave you with no solution.

The unconstrained solution may be easier to locate, so experiment to find out how the constraints are affecting the answer.

Equation 6 was not yet needed, but also gives Q2 as a function of G1, T1, T2.

Change Equation 6 so that variable Q2 is replaced with the new variable Q2Prime.

Plot T1 vs Q2 and T1 vs Q2Prime on the same graph over a range of values for T1.

The intersection of the curves will give you the solution for T1.

If they intersect, this would be equivalent to adding the equation 'Q2 = Q2Prime'.

If the plotted curves never intersect, then there does not exist a value for T1 which will satisfy all the equations.

The plots would be your proof that there is no real solution.

(I used Mathcad briefly about 30 years ago, but have not used it since. It can make you feel really smart when it solves complicated problems. But it can be frustrating to troubleshoot. Solve it a step at a time and do not add all the equations at once. See my first reply for the suggested order. Supply a value for T1, then solve for Equation 2, then 1, then 5, then 4, then 3. You will also need to add your constraints. If the solution fails, stop and fix it before proceeding. Plots can help you visualize what is happening.)






Similar Topics