Calculating partial molar property

6 ビュー (過去 30 日間)
Sepanta Gharib
Sepanta Gharib 2018 年 8 月 26 日
コメント済み: Star Strider 2018 年 8 月 26 日
I want to calculate partial molar property of species i in a binary mixture, which is defined as " abari". Its molar property is defined as " a" and is a function of mole fraction (" yi"). How can I calculate this partial molar property " abari" as a function of mole fraction " yi" in Matlab?
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 8 月 26 日
Maybe all Matlab users are not a chemist, we have no idea what molar property is? Explain the maths, what is the equation, what result you are expecting and mentioned the typical values of all contents and defined variables.
Read Here
Sepanta Gharib
Sepanta Gharib 2018 年 8 月 26 日
編集済み: Sepanta Gharib 2018 年 8 月 26 日
assuming that
a = 2*y1+4*y2^2
and want to calculate " abar" that would obviously be a function of y1 & y2.
The rest of the things said, I think is clear.
Example of a manual calculation is as follows:

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2018 年 8 月 26 日
You will need to use the Symbolic Math Toolbox for this:
syms n n1 n2
y1(n1) = n1/n;
y2(n2) = n2/n;
a(n1,n2) = 2*y1(n1) + 4*y2(n2)^2;
na = n*a
a1_bar = diff(na, n1)
a2_bar = diff(na, n2)
producing:
na(n1, n2) =
n*((2*n1)/n + (4*n2^2)/n^2)
a1_bar(n1, n2) =
2
a2_bar(n1, n2) =
(8*n2)/n
  2 件のコメント
Sepanta Gharib
Sepanta Gharib 2018 年 8 月 26 日
God bless you, dear!
Star Strider
Star Strider 2018 年 8 月 26 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by