p
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
p [2009/08/27 11:17] – clare | p [2022/11/03 15:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== p ====== | ||
+ | **[// | ||
+ | |||
+ | Sets the peak type for a phase. The following // | ||
+ | |||
+ | | **Peak type** | **$type** | **Parameters** | | ||
+ | | Fundamental Parameters | fp | | | ||
+ | | Pseudo-Voigt | pv | [//pv_lor E pv_fwhm E//] //pv_lor// is the Lorentzian fraction of the peak profile(s). //pv_fwhm// is the FWHM of the peak profile(s). | | ||
+ | | Split-PearsonVII | spvii | [//h1// E //h2// E //m1// E //m2// E] The sum of //h1// and //h2// gives the FWHM of the composite peak. //m1, m//2 are the PearsonVII exponents of the left and right composite peak, respectively. | | ||
+ | | Split-PseudoVoigt | spv | [//spv_h1// E //spv_h2// E //spv_l1// E //spv_l2// E] The sum of //spv_h1// and //spv_h2// gives the full width at half maximum of the composite peak. //spv_l1, spv_l2//: the Lorentzian fractions of the left and right composite peak, respectively. | | ||
+ | |||
+ | **[// | ||
+ | |||
+ | As the shapes of phase peaks do not change significantly over a short 2q range, a new peak shape is calculated only if the position of the last peak shape calculated is more than the distance defined by // | ||
+ | |||
+ | The reserved parameter names of H, K, L, M or parameter names associated with the keywords // | ||
+ | |||
+ | When defined // | ||
+ | |||
+ | // | ||
+ | |||
+ | **[// | ||
+ | |||
+ | Defines a penalty function that can be a function of other parameters. Penalties are useful for stabilizing refinements as in for example their use in bond-length restraints. | ||
+ | |||
+ | Example HOCK.INP uses penalties to minimize on the Hock and Schittkowski problem number 65 function. | ||
+ | |||
+ | prm x1 1 min -4.5 max 4.5 val_on_continue = Rand(-4.5, 4.5); del .01 | ||
+ | |||
+ | prm x2 1 min -4.5 max 4.5 val_on_continue = Rand(-4.5, 4.5); del .01 | ||
+ | |||
+ | prm x3 1 min -5.0 max 5.0 val_on_continue = Rand(-5.0, 5.0); del .01 | ||
+ | |||
+ | |||
+ | |||
+ | ' Hock and Schittkowski problem number 65 function | ||
+ | |||
+ | penalty = (x1-x2)^2 + (1/9) (x1 + x2 - 10)^2 + (x3 - 5)^2; : 0 | ||
+ | |||
+ | |||
+ | |||
+ | prm contraint_1 = x1^2 + x2^2 + x3^2; | ||
+ | |||
+ | penalty = If(contraint_1 < 48, 0, (contraint_1-48)^2); | ||
+ | |||
+ | The next example applies a User defined penalty function to lattice and crystallite size parameters, which are expected to be 5.41011 Å and 200 nm respectively: | ||
+ | |||
+ | str... | ||
+ | |||
+ | Cubic(lp_ceo2 5.41011) | ||
+ | |||
+ | penalty = (lp_ceo2-5.41011)^2; | ||
+ | |||
+ | CS_L(cs_l, 200) | ||
+ | |||
+ | penalty =(cs_l-200)^2; | ||
+ | |||
+ | Minimizing on penalty functions in the presence of observed data is possible with the use of the // | ||
+ | |||
+ | **[// | ||
+ | |||
+ | Defines the weighting K< | ||
+ | |||
+ | **[// | ||
+ | |||
+ | Defines the percentage of the A matrix than can be zero before sparse matrix methods are invoked. The default value is 60%. | ||
+ | |||
+ | **[// | ||
+ | |||
+ | Calculates the mass absorption coefficient in cm< | ||
+ | |||
+ | **[// | ||
+ | |||
+ | Used for writing phase dependent details to file. See the keyword //out// for a description of // | ||
+ | |||
+ | **[// | ||
+ | |||
+ | Provides a mechanism for transforming peak position to an x-axis position. For example, the peak position for neutron time-of-flight data is typically calculated in time-of-flight space, tof, or: | ||
+ | |||
+ | tof = t0 + t1 d< | ||
+ | |||
+ | where t0 and t1 and t2 are diffractometer constants. //pk_xo// can be used to refine TOF data as shown in examples TOF_Balzar_sh1.inp and TOF_Balzar_br1.inp. | ||
+ | |||
+ | **[// | ||
+ | |||
+ | The name given to a phase; used for reporting purposes. | ||
+ | |||
+ | **[// | ||
+ | |||
+ | **[// | ||
+ | |||
+ | **[// | ||
+ | |||
+ | // | ||
+ | |||
+ | < | ||
+ | |||
+ | #h, #k, #l are user defined hkls; they are used for formulating the phase penalties. #Re and #Im are the real and imaginary parts of < | ||
+ | |||
+ | penalty = pp1; | ||
+ | |||
+ | phase_penalties * pp1 | ||
+ | |||
+ | load hkl_Re_Im | ||
+ | |||
+ | { | ||
+ | |||
+ | 0 1 2 1 0 | ||
+ | |||
+ | 1 0 -2 1 0 | ||
+ | |||
+ | 1 -2 -1 1 0 | ||
+ | |||
+ | } | ||
+ | |||
+ | hkls chosen for phase penalties should comprise those that are of high intensity, large d-spacing and isolated from other peaks to avoid peak overlap. Origin defining hkls are typically chosen. | ||
+ | |||
+ | // | ||
+ | |||
+ | temperature 1 | ||
+ | |||
+ | temperature 1 | ||
+ | |||
+ | temperature 1 | ||
+ | |||
+ | temperature 1 | ||
+ | |||
+ | temperature 10 | ||
+ | |||
+ | ...move_to_the_next_temperature_regardless_of_the_change_in_rwp | ||
+ | |||
+ | accumulate_phases_and_save_to_file SOME_FILE.TXT | ||
+ | |||
+ | accumulate_phases_when = T == 10; | ||
+ | |||
+ | Here phases with the best Rwp since the last accumulation are accumulated when the current temperature is 10. | ||
+ | |||
+ | ** [// | ||
+ | |||
+ | Displays process times on termination of refinement. |
p.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1