Hi @johnsoevans ,
Thank you for your response. I tried your initial suggestion of using one TCHZ in combination with the Gaussian/Lorentzian size/strain macros but didn't get a particularly good result. I had tried various combinations of this is the past but not the particular combination you suggested. Often the CS_L and CS_G parameters limit max every phase to either 10000nm or 0.3nm when I know that the domain size should never exceed 100nm. So instead I am trying to implement some restraint/penalty equations. My question is, is there a way to introduce penalties such that a value can be encouraged to be less than a certain amount? For example, if I want the l_fwhm of the peaks from a TCHZ characterized phase to be less than 0.5 would the following work:
l_fwhm = pkx1*Tan(Th) + pky1/Cos(Th)
penalty = If(l_fwhm < 1/2, (l_fwhm)^2, 0);
Furthermore, when fitting a spectra with multiple HKL peaks, could I then constrain the l_fwhm as a function of theta using the following:
l_fwhm = pkx1*Tan(Th) + pky1/Cos(Th)
penalty = If(l_fwhm < Th/2, (l_fwhm)^2, 0);