Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello,
I think you made few mistakes in using RK equation of state and roots function in finding the molar volume. Here is how this could work properly: V.id=0.0248 P(V.id,T.f)-P.x=-709.8795 res:roots(P(_V,T.f)-P.x,_V,V.id) res=0.0246 P(res,T.f)-P.x=3.3237*10^{-10} Do not use variable ( second argument of "roots" ) which is already defined (I used here _V). The guess value here could be the molar volume of ideal gas Vid. BTW, do not use units in the integration - it is not advisable at the moment.
Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello skylo, skylo wrote:omorr wrote:Hello,
I think you made few mistakes in using RK equation of state and roots function in finding the molar volume. Here is how this could work properly: V.id=0.0248 P(V.id,T.f)-P.x=-709.8795 res:roots(P(_V,T.f)-P.x,_V,V.id) res=0.0246 P(res,T.f)-P.x=3.3237*10^{-10} Do not use variable ( second argument of "roots" ) which is already defined (I used here _V). The guess value here could be the molar volume of ideal gas Vid. BTW, do not use units in the integration - it is not advisable at the moment.
Regards, Radovan Hi, I want to ask what is "res". Thank you very much. Do not understand why "res" confuses you. It is a simple variable, and it receives the result of the expression on the right hand side of the assignment operator ( := ) - the result of the function "roots" calling in this case. In this case, "res" is actually the value of the volume you are looking for. You could have used here the variable name which suits you the most - it is irrelevant. Regards, Radovan Edited by user 02 January 2011 11:08:54(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/01/2011(UTC) Posts: 5 Location: Brescia Italy
|
Hello,
Is it available the Mathcad "Reference" in SMath? If not, how to refer to formulas and data included in a different SMath file?
Thanks
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello Paolo, PaoloM wrote:Is it available the Mathcad "Reference" in SMath? If not, how to refer to formulas and data included in a different SMath file? There is no "Reference" in the sense to "include" the file contents at the appropriate place into another file. However, you have the "Snippets" mechanism ( 0.89.8 Beta features). That means that you can make a "Snippet" file from an ordinary SMath file. Just save it into the dedicated "snippets" folder. It is located in the SMath subfolder "..\SMath\snippets\". After that the Snippet manager Tools=>Snippet Manager can be used to insert the file into another SMath file. It can be inserted as "Area" region. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/01/2011(UTC) Posts: 5 Location: Brescia Italy
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.