Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline omorr  
#1 Posted : 03 November 2010 23:03:18(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

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!"

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 02 January 2011 11:05:38(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

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!"
Offline PaoloM  
#3 Posted : 14 January 2011 14:12:33(UTC)
PaoloM

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
Offline omorr  
#4 Posted : 14 January 2011 16:16:45(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

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!"
Offline PaoloM  
#5 Posted : 14 January 2011 16:38:01(UTC)
PaoloM

Rank: Newbie

Groups: Registered
Joined: 11/01/2011(UTC)
Posts: 5
Location: Brescia Italy

Thanks Radovan

Bye, Paolo
Users browsing this topic
Similar Topics
using some math functions with units (log) (Questions)
by harry bee 16/04/2024 02:17:52(UTC)
Inconsistent function behavior (Bugs & Problems)
by Luhkoh 13/04/2024 02:56:05(UTC)
Reverse breaks vectorize function (Questions)
by Douwe 09/04/2024 00:04:23(UTC)
Functions for Permutation and combination (Questions)
by netsonicyxf 27/03/2024 17:47:48(UTC)
Vidalista Black 80 Mg Is The Best Popular Pill For Erectile Dysfunction (Features announcements)
by eliadavised 21/02/2024 23:00:18(UTC)
Fildena 150 Tablet Treat Erectile Dysfunction Problem (Questions)
by Sophia Jones 09/01/2024 00:01:08(UTC)
Average If function (Questions)
by gth802s 28/12/2023 09:55:01(UTC)
GorillaFlow: Embrace Prostate Health and Enjoy Improved Urinary Function (Questions)
by Guest 01/12/2023 03:08:19(UTC)
3D Plot function help request (Questions)
by Ale_Biaso 29/11/2023 13:02:54(UTC)
Solving Symbolic Function (Questions)
by Jonah 22/11/2023 23:37:30(UTC)
"Cases" function and for loop (Questions)
by gth802s 21/11/2023 06:06:52(UTC)
Newbie question: why this picewise function not plot? (Questions)
by kaizh 13/11/2023 21:13:03(UTC)
2D plot, parametric functions (Bugs & Problems)
by overlord 12/10/2023 03:51:06(UTC)
Help with Graph Function (Questions)
by Igor_Mag 05/10/2023 19:27:35(UTC)
Cases function new case (Questions)
by cedreine 04/10/2023 22:29:22(UTC)
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.