# Differences

This shows you the differences between two versions of the page.

 refine_weight_percentage [2015/10/29 06:25]rowlesmr3 refine_weight_percentage [2015/10/29 06:30]rowlesmr3 Both sides previous revision Previous revision 2015/10/29 06:30 rowlesmr3 2015/10/29 06:25 rowlesmr3 2015/10/29 06:24 rowlesmr3 2015/10/29 06:22 rowlesmr3 2015/10/29 06:11 rowlesmr3 created 2015/10/29 06:30 rowlesmr3 2015/10/29 06:25 rowlesmr3 2015/10/29 06:24 rowlesmr3 2015/10/29 06:22 rowlesmr3 2015/10/29 06:11 rowlesmr3 created Line 1: Line 1: ====== Set or refine weight percentages directly ​ ====== ====== Set or refine weight percentages directly ​ ====== - Macro to aid in the setting or refining of weight percentages. The scale factors are calculated from the given weight fractions. Weight fractions can be either fixed or refined. + Macro to aid in the setting or refining of weight percentages ​for up to 9 phases. The scale factors are calculated from the given weight fractions. Weight fractions can be either fixed or refined. - + - The macro can handle up to 8 phases. The equations were calculated in Maple from the standard Hill/Howard quantification algorithm. + Contributors:​ Matthew Rowles, with [[refining_setting_weight_percents_directly|help from Alan]] Contributors:​ Matthew Rowles, with [[refining_setting_weight_percents_directly|help from Alan]] + + The equations were calculated in Maple from the standard Hill/Howard quantification algorithm. + + The Maple syntax used was + <​code>​ + > restart: + > f2 :=x2 *(s1*m1 + s3*m3 + s4*m4); + > f3 :=x3 *(s1*m1 + s2*m2 + s4*m4); + > f4 :=x4 *(s1*m1 + s2*m2 + s3*m3); + > solve({f2=s2,​ f3=s3, f4=s4},[s2, s3, s4]); + ​ + where + <​code>​ + mn = cell_mass * cell_volume + xn = wn / (mn (100 - wn)) + ​ + + ===== To use the macro ===== The first phase must have a scale factor: s1. The first phase must have a scale factor: s1.