
          --------------------------------------------
          !    HELP NOTES FOR PROGRAM "MIXTURE"      !
          --------------------------------------------

Program MIXTURE makes the fitting to the experimental scattering
curve by modelling the multicomponent system represented by
simple geometrical bodies taking into account
interparticle interactions.

The model scattering intensity may be represented by
the linear combination of four several types of particles:
1. spheres
2. cylinders
3. ellipsoids of rotation
4. dumb-bells

The scattering intensity can be expresse as follows:

I(q) =  sum { VolFract * I (q, R, deltaR, contrast) * S (q, Rhs, tau ) }
         j            j   j                            j

The spheres and cylinders may have complicated features:
1. polydispersity of radius with Gauss or Schulz distribution
2. two shells with different contrasts (zero contrast of the inner
   shell means the hole sphere or cylinder).

The interparticle interactions between sphere particles
can be described by structure factor calculated within
Percus-Yevick approximation for hard-sphere or sticky hard-sphere
potential.

For running the program MIXTURE it is necessary to prepare
the command file where one has to specify your model and
initial values of parameters for this model, i.e.
the number of "phases" (components), the type
for each component (SPHERE, CYLINDER, ELLIPSOID, DUMBBELL),
dimension parameters (relative volume fraction, average
sphere radius, its polysidpersity, type of distribution
function (Gauss or Schulz) etc., the upper and lower
boundary values for all fitting parameters.

Below there is an example of command file for
the model containing all four different types of components,
one can design the model containing several components of the
same type (for example large and small spheres, long and short
cylinders etc.), but in all cases one has to follow
the thumb rule of describing the model parameters as it is done
in this example command file:

-------------------------------------------------------------------------------

i                                                    !!  Two initialising
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!      !!      strings
pro us                                               !! Command "Problem user"
SERIES WAI2520 / New AOTSHS                          !! Comment Line 1 (done by user )
T= 15, c =0.2                                        !! Comment Line 2 (done by user )
EXPERIMENT               !! MODE FOR FITTING DATA,  "TEST" MODE FOR EXPERTS
4                        !! Number of Phases (4 for this example)
0.20                     !! System Concentration
SPHERE                   !! Type of the first Phase
0.25   0.0      1.0      !! sphere volume Fraction
0.0    0.0      0.0      !! inner shell sphere radius
0.0    0.0      0.0      !! density(contrast) for inner shell  (hollow sphere)
48.0   40.0     60.0     !! outer shell sphere radius
1.0    1.0      1.0      !! density(contrast) for outer shell
5.0    0.1      25.0     !! sphere polydispersity
75.0   55.0     95.0     !! interaction radius for spheres (hard sphere radius)
2                        !! type of distributions for spheres (1 - Gauss, 2 - Schulz)
0.0    0.0      0.0      !! sticky parameter (0.99<tau<100), if tau=0 no interactions
CYLINDER                 !! Type of the second Phase
0.25   0.0      1.0      !! cylinder volume Fraction
0.0    0.0      0.0      !! inner shell cylinder radius
0.0    0.0      0.0      !! density(contrast) for inner shell
40.0   30.0     60.0     !! outer shell cylinder radius
1.0    1.0      1.0      !! density(contrast) for outer shell
3.0    2.1      10.1     !! cylinder outer shell radius polydispersity
2                        !! type of distributions for cylinders (1 - Gauss, 2 - Schulz)
300.0                    !! cylinder length
ELLIPSOID                !! Type of the third Phase ( sph,  cyl,  dmb,  ell)
0.25   0.0    1.0        !! ellipsoid Fraction
90.0   20.0   100.0      !! SemiAxis for Ellipsoid (Radius r)
1.5    0.5    3.0        !! Ratio of SemiAxes "v" for Ellipsoid (semiaxes r,r,v*r)
DUMBBELL                 !! Type of the fourth Phase ( sph,  cyl,  dmb,  ell)
0.25   0.0    1.0        !! volume Fraction of dumbbells
0.0    0.0    0.0        !! inner sphere radius
0.0    0.0    0.0        !! density(contrast) for inner shell
62.3   40.0   80.0       !! outer sphere radius
1.0    1.0    1.0        !! density(contrast) for outer shell
2.0    0.1    25.0       !! sphere polydispersity
2                        !! type of distributions for spheres in dumbbell
2                        !! type of data (1 - for OTOKO format, 2 - for ASCII format)
test1.dat                !! experimental file data
1                        !! scale for s-vector in A*(-1) (1 for 1.0 coefficient)
1.0                      !! fraction of data taken for evaluation
meth sb                  !! method for minimization (Quisi-Newton with simple bounds)
loa maxit 40             !! maximum number of iterations 40
run                      !! run minimisation process
y                        !! confirm running
y                        !! confirm running
mes 14                   !! message for saving the ouput data
eva                      !! write data
mes 1                    !! prepare for next set data
ex                       !! exit the program
y                        !! confirm exit
y                        !! confirm exit

-------------------------------------------------------------------------------

To start the program one has to have both mixture.exe and mixture.cmd
files in one directory and run with the following command:
        MIXTURE.EXE < MIXTURE.CMD

Below there is the list of the fitting parameters for each type of particles:

PHASE 1 ----------------------------!!!!---------------------------------------

SPHERE

Parameters:

1. relative volume fraction, V(j),      0  <  V(j)  <  1
2. Internal  Shell Radius, Rin
3. Internal  Shell Contrast, rin
4. External Shell Radius, Rout
5. External Shell  Contrast, rout
6. Polydispersity , dRout
   (for the external shell radius)

Taking into account interparticle interactions with sticky hard sphere potential

7. concentration of the system, c
8. Hard sphere radius, Rhs
9. Stickiness parameter, tau, 0.1  < tau  < 100 , if tau=0 no interactions

Possible variants:
monodisperse or polydisperse spheres,
simple spheres or spheres with hollows
interactive or non-interactive spheres

PHASE 2 ----------------------------!!!!---------------------------------------

CYLINDER

Parameters:

1. relative volume fraction, V(j) ,       0  <  V(j) <  1
2. Internal  Shell Radius, Rin
3. Internal  Shell Contrast, rin
4. External Shell Radius, Rout
5. External Shell  Contrast, rout
6. Polydispersity , dRout
   (for the external shell radius)
7. Height, Hcyl

PHASE 3 ----------------------------!!!!---------------------------------------

ELLIPSOID
(with R, R, v*R semiaxes)

Parameters:
1. relative volume fraction,  V(j) ,      0  <  V(j) <  1
2. radius (semiaxis) of ellipsoid, R
3. ellipsoid radius ratio, v,   ellipsoid has R, R, v*R semiaxes

PHASE 4 ----------------------------!!!!---------------------------------------

                       DUMB-BELL
                  (two sticked spheres)
           parameters the same as for spheres (phase 1)

------------------------------------------------------------------------------

The output files of the program mixture are the following:
     3 files with extentions *.fit, *.pam, *.str, where
the names of files coincide with the file name of experimental data
              as well as dumboko.log file

In *.fit files there are three columns, the first comulmn is
the S-vector axis, the second column - experimental data,
the third column - fit to this data.

In *.pam files the number of column is equal to Number of phases in your
model plus one (Nph+1). The first column is S-vector axis and the others
columns contain partial intestities from each component of your model.

In *.str files there is information about structure factor if you used
spheres with interactions. The first column is S-vector axis, the second
column - structure factor with SHS (sticky hard-sphere potential) calculated
for the values of the parameters in your model, the third column - structure
factor with HS (hard-sphere potential) calculated with the same parameters.

Dumboko.log file contains information about the file name of experimental data
and obtained fitting parameters for your model for each component.
After each run the program mixture adds information to this file, so you
will have the whole history of running the program in this file.

                     Useful References:

1. D. I. Svergun, L. A. Feigin, Structure Analysis by Small-Angle X-ray and
   Neutron Scattering, edited by G.W. Taylor, (Sec. Ed. New York: Plenum Press 1989)
2. D.I. Svergun, P.V.Konarev, V.V.Volkov, M.H.J. Koch, W.F.C. Sager,
   J. Smeeth and E.M. Blokhuis // A Small Angle X-ray Scattering Study of the
   Droplet-Cylinder Transition in Oil-Rich Sodium Bis(2-ethylhexyl)
   Sulfosuccinate Microemulsions.  Journal of .Chemical Physics 2000,
   V.113, N. 4, p. 1651-1665
3. C. Robertus, W. H. Philipse, J. G. H. Joosten, and Y. K. Levine,
   Solution of the Percus-Yevick approximation of the multicomponent adhesive
   spheres system applied to the small anglex-ray scattering from
   microemulsions, J. Chem. Phys. 90, 4482-4489 (1989)
