Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
refining_setting_weight_percents_directly [2011/08/25 08:51]
alancoelho
refining_setting_weight_percents_directly [2015/10/29 06:33] (current)
rowlesmr3
Line 1: Line 1:
 ====== Refining/​Setting Weight Percents directly ====== ====== Refining/​Setting Weight Percents directly ======
 +==== Version 5 ====
 +
 +The macro Known_Weight_Percent can be used to either set a weight percent or to refine a weight percent. For example:
 +
 +   ​str...
 +      ' scale parameter must not be defined for this phase
 +      Known_Weight_Percent(10) ' set weight percent to 10
 +
 +To refine the weight percent then the following could be used:
 +
 +   ​str...
 +      prm wt1 10 min 0 max 100
 +      Known_Weight_Percent(wt1)
 +
 +Only one phase can have its weight percentage set by this macro. All remaining phases must have a scale factor.
 +
 +==== Version 4.1 ====
 +
 Symbols used here are defined in the Technical Reference entry for [cell_mass !E] [cell_volume !E] [weight_percent !E]  ​ Symbols used here are defined in the Technical Reference entry for [cell_mass !E] [cell_volume !E] [weight_percent !E]  ​
  
Line 25: Line 43:
    x2 = w2 / (m2 (1 - w2))    x2 = w2 / (m2 (1 - w2))
    x3 = w3 / (m3 (1 - w3))    x3 = w3 / (m3 (1 - w3))
-   x4 = w4 / (m4 (1 - w4))                                  +   x4 = w4 / (m4 (1 - w4))     
 +    
 +    
 +    
 +If you have need for up to 9 phases, please see [[refine_weight_percentage|this macro]] for help.    
 +                                 
 We need to solve the four equations for three of the scale parameters. We will choose to solve for s1, s2 and s3.  We need to solve the four equations for three of the scale parameters. We will choose to solve for s1, s2 and s3. 
  
Line 59: Line 82:
  
 Below is and INP file ZRO2-WT.INP (with data file ZRO2.DAT) that shows the above working nicely on Zro2. It uses the helper macro wt_dets ​ to hide some of the details. At the top of the file we see: Below is and INP file ZRO2-WT.INP (with data file ZRO2.DAT) that shows the above working nicely on Zro2. It uses the helper macro wt_dets ​ to hide some of the details. At the top of the file we see:
- 
-Here's the ZRO2-WT.INP 
 <code topas>​prm s4  0.01 min 1.0e-12 ​ ' REFINABLE <code topas>​prm s4  0.01 min 1.0e-12 ​ ' REFINABLE
 prm w1  5 min 1.0e-6 '​ Refine of fix depending on prior knowledge prm w1  5 min 1.0e-6 '​ Refine of fix depending on prior knowledge
Line 67: Line 88:
  
 If all of the weight percents were known then the three weight percents should be fixed to their known values. If all of the weight percents were known then the three weight percents should be fixed to their known values.
 +Here's the ZRO2-WT.INP
 <code topas>​macro wt_dets(n) <code topas>​macro wt_dets(n)
 { {
Line 143: Line 164:
       wt_dets(4)</​code>​       wt_dets(4)</​code>​
  
 + --- //​[[alan.coelho@bigpond.com|Alan Coelho]] 2011/08/25 19:09//
 +
 +Weights can be restrained using:
  
 +<code topas>'​---------------------------
 +'​Example of restraining weight percent to a known value
 +penalties_weighting_K1 .2
 +restraint = (Cubic_Zirconia_wt_percent - 36); : 0
 +'​---------------------------</​code>​

Personal Tools