Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with subscript in thermodynamic problem

Status
Not open for further replies.

Rikii

Chemical
Feb 28, 2014
2
0
0
GT
Good night.
I'm using mathcad prime 3.0. I try to solve a problem as stated in my textbook "Introduction to Thermodynamics in Chemical Engineering" Smith & Van Ness but I define the variables that tell me or how to resolve the situation subscript "i, j" which are integers. If anyone can help me I appreciate fully. Attached the document.


thanks

 
Replies continue below

Recommended for you

You made four different errors in your sheet:
[ol 1]
[li]Your range variables are going from 1 to 3, but Prime numbers vector elements beginning with the value of the system variable ORIGIN - in your case from 0 to 2[/li]
[li]You define vectors (3x1 matrices) at the top of your sheet and later you try to use these vectors to create a 3x3 matrix with the same name! You can't use the same name for two different structures at the same time.[/li]
[li]You used the literal index (CTRL + -) where you should have used the vector/matrix index ([). You can't address vector elements with an literal index as this is just part of the variables name.[/li]
[li]In the definition of the matrices Vc and Pc you forgot the indices on the LHS of the definition[/li]
[/ol]
Furthermore I noticed that the vector Pc you define at the top is never used in your sheet but is overwritten later by the definition of a matrix Pc. Not sure if that was done on purpose.

Find attached a sheet which fixes all those errors and makes use of range variables independent of the value of ORIGIN. I deleted your global definition of ORIGIN as the default value is 0 anyway and I renamed you various vectors at the top by adding an underline so we don't get into troubles by defining the matrices with the same value.

 
 http://files.engineering.com/getfile.aspx?folder=cf5c39c6-df1e-4b74-bff6-8ce8edf492f1&file=Factores_fixed.mcdx
Thank you very much for the correction, had not noticed that kind of features in mathcad. Thanks for your time and corredigo document.
 
Status
Not open for further replies.
Back
Top