Each L card has its own format, not particularly connected with any other L card.
An L card starts with L then a CCSL-word, which determines what else is on the card. There is no predetermined sequence for L cards. It would be usual, but not essential, to type all L cards starting with the same CCSL-word consecutively.
DATA FOLLOWING ALLOWED CCSL WORDS:
The general CCSL-words MODE, REFI, SCAL, TFAC and WGHT are described first. Then the group FIX, VARY, RELA and FUDG concerned with Least Squares parameters, followed by the group SLAK, ATOM, BOND, ANGL, EQUA, EQUB, LINE and TORS concerned with geometric slack constraints. Finally there is a new (2008 Mark4.4) group comprising DATA and SORC specific to multi-source least squares refinement.
MODE
Data
An integer, MODE, specifying the mode in which reflection data will be given. This is interpreted by main programs SFLSQ, MAGLSQ etc. The integer MODER (in the range 0 to 8) is set to MODE modulo 100 and MODOBS to MODE/100. MODER specifies the format if the data to be read as follows:
The reflection indices, are in format I5 (for MODER=1-6 and 10)
or in F8 (for MODER=7-9). The
numbers Gobs,
its standard deviation,
W the weight to be applied to this observation, and the four
C values are all in format F10. The integers In, Out, Scale
number and Code are in I5, and are given in
parentheses when they are optional.
If MODOBS = 0, Gobs and Dobs give the value of the structure amplitude and
its standard deviation even for IREF=2.
If MODOBS = 1, Gobs and Dobs give the value of the measured integrated intensity
and its standard deviation even for IREF=1
Note that MODOBS=1 is only valid for IREF less than 4.
The Scale number indicates which of several scale factors applies to
this observation. If it is read as zero it is set to 1, so if there
is only one scaling region this number may be omitted from the
data. In flipping ratio or polarised neutron asymmetry refinements
the scale number may be used to indicate measurements made with different
beam polarisation.
The Code is at present only used if MODER is 9 or 10, but the user may wish
to use it in other cases in his own main program.
Assumptions made
if no L MODE card is given, MODER=3.
REFI
Data
An integer, IREF, indicating the type of refinement, that is, the calculated function which is to be compared with the observed data. IREF is consulted by SFLSQ, MAGLSQ etc. Currently recognised values are 1, 2, 4 and 5:
IREF=1 refine on the modulus of the structure factor Fc
IREF=2 refine on the square of Fc
IREF=4 refine on signed Fc (centrosymmetric)
IREF=5 refine on polarised neutron flipping ratio R (magnetic only)
IREF=6 refine on ratio of magnetic to nuclear structure factor: gamma
from cryopad (magnetic only)
IREF=7 refine on polarised neutron asymmetries (magnetic only)
IREF=8 refine using elements of the polarisation matrix (snp only)
IREF=9 refine using polarized neutron intensities from powder data (paramagnetic
only)
Assumptions made
If no L REFI card is given, IREF=1 is assumed.
SCAL
Data
A scale factor for as many scale regions as are
required. These will be indexed 1,2,3 etc as they are read.
The scale factor is used to multiply the calculated function.
If the numbers will not fit on to the 80-character line,
further L SCAL cards may be given.
For IREF = 5 the scale factors are taken to be depolarisation factors
which multiply both the Up and Down polarisations
Assumptions made
If no L SCAL cards are given, the program assumes that there is one factor, with value 1.0, to be refined.
TFAC
Data
Overall temperature factor for structure factors,
used as
assumed units are Å
Assumptions made
If no L TFAC card is given, no overall temperature factor is used.
WGHT
Data
An integer IWGHT, the number of the weighting scheme required. At present IWGHT must be 1 or 2:
vary with the main program, as appropriate.
FIX
Data
sets of parameter specifications .
In main programs for single crystal structure refinement like
SFLSQ,
the following names are defined:
Species in family 1, genus 1 : TFAC DOMR MOSC A* B* C* D* E* F* (A*-F* are for geometric slack constraints)
Genus name for family 1, genus 2: SCAL
Species names for family 2, (the structure parameters whose genus name is their atom name):
X Y Z B11 B12 B13 B22 B23 B33 ITF SCAT SITE
and in addition, for magnetic
structures,
MU MU1 THET THE1 PHI PHI1 PSI1 PSI2 PSI3 PSI4
A parameter specification is one of the following:
Assumptions made
If no L FIX cards are given, the main program's own defaults are taken.
VARY
Data
An L VARY card has exactly the same specification as an L FIX card, except that it causes the specified parameters to be varied rather than to be fixed. If the CCSL-word ONLY occurs on any L VARY card, only the parameters which are explicitly listed are varied.
RELA
Data
Each card contains one relationship between parameters (a constraint ) which the user wishes to impose in addition to those which the system will impose automatically.
The integer after RELA is LRELA, the type of relation; at present types 1 and 2 are available, as described in Chapter 5. The data following LRELA are:
The CCSL-words like ONLY, ALL etc. cannot be used here.
Note also that the constraints apply to the shifts in the parameters,
rather than to the parameters themselves
Example
L RELA 1 1 Co SITE 2 Mn SITE
L RELA 2 1.4 SCAL 1 2.8 SCAL 3 -1.9 SCAL 5
Assumptions made
If there are no L RELA cards, only the constraints which are inherent in the symmetry of the problem are applied.
FUDG
Data
Sets of ( parameter specification , Factor), where the parameter specification is as on FIX and VARY cards except that the CCSL-word ONLY is not used here. The Factor is either a real number or a range indicator. If it is a real number it is a simple multiplicative factor for the shift on the specified parameter.
A range indicator has the form GE limit or LE limit where GE means ``greater than or equal to", LE means ``less than or equal to" and limit is a real number giving the limiting value. If the information will not fit on to an 80-character line several L FUDG cards may be given.
Note
The calculated shifts for the specified parameters are adjusted by the fudge factors before they are applied. In the case of range indicators if, after applying the shift, any of the specified parameters are outside the range, it is set equal to limit . The specified parameters may be individuals or groups.
Example
L FUDG ALL SITE 0.6 Na4 ITF 0.8 L FUDG Mn SITE LE 1.0
Assumptions made
If no L FUDG cards are read, no fudge factors are applied.
The remaining CCSL-words control the imposition of geometric slack constraints.
SLAK
Data
The presence of an L SLAK card asks for geometric slack constraints to be used. The card gives an integer, STYP and a real number, SWGHT.
The units digit of STYP=1 means ``use only slack constraints,
and none of the conventional LSQ observations."
The units digit of STYP=2 means ``use both LSQ observations and
slack constraints."
The tens digit of STYP gives the weighting scheme required for
slack constraints; 1=unit weights, 2=use weight as read,
and 3=read , use
.
Each slack constraint is weighted by its own individual weight,
usually read from the card which specifies the constraint.
If the units digit of STYP=2
it will be weighted, in addition, by multiplication by SWGHT.
ATOM
Data
A new atom name and an Atom Specification .
An L ATOM card is used to assign a name to an atomic position which is equivalent to, but not identical with, one on an A card. Cards like L BOND, L ANGL etc can then refer to this new atom by name. The Atom Specification can be given in one of two formats. In either case it starts with the atom name.
In the first format the new atomic position is specified by
5 integers,
.
is the serial number of the
symmetry operator producing the required position from that on
the A card; it is given negatively if the centre of symmetry
is also involved, and can be found by running a CCSL job which
calls SYMOP and OPSYM(1).
is similarly the number of the lattice
translation used.
,
,
are cell translations
in the
,
and
directions enabling the position generated by
and
to be put
into any of the neighbouring unit cells; their values would
usually be 0, +1 or
1.
In the other format the atom name is simply
followed by the actual
and
fractional coordinates to be
used, and the CCSL works out the values of
,
etc.
The two types of format are distinguished by the presence or absence of a decimal point in the x coordinate.
Example
L ATOM Na1A Na1 2 0 0 0 1
L ATOM Mn99 Mn3 .1234 .2345 .5
BOND
Data
A bond name followed by two atom names, and, optionally,
a bond length and its allowed deviation
.
The atom names
must occur on either an A card or a L ATOM card. If no bond length
is given, this card simply defines the bond name for subsequent use by
L ANGL, L EQUB etc cards.
If and
are given, this is a request
to apply a slack constraint to the calculated length of the
bond
of the form:
Example
L BOND B04 C1 C2 L BOND BMn9 Mn99 Mn9 2.3 0.05
ANGL
Data
An angle name followed by the bond names of
two bonds to a common atom and, optionally, an
angle in degrees and its
. The bond names must occur
on L BOND cards.
If
is not given, this card simply defines the angle
name for subsequent use by L EQUA, L TORS cards.
If and
are given, this is a request to
apply a slack constraint to the calculated bond angle of the form:
Example
L ANGL PHI6 Bnd1 Bnd2 109.5 0.3
EQUA
Data
Two angle names and a . The angle names must occur on
L ANGL cards. This card defines a slack constraint on the
values
,
of the two angles of the form:
Example
L EQUA Phi4 Phi5 0.4
EQUB
Data
Two bond names and a . The bond names must occur on
L BOND cards. This card defines a slack constraint
on the values
,
of the two bonds of the form:
Example
L EQUB Bon1 Bon2 0.001
LINE
Data
Two bond names and a . The bond names must occur on
L BOND cards and must have one atom in common.
If
are the lengths of the two bonds and
the length of
the third bond in the triangle,
this card defines a slack constraint of the form:
Example
L LINE Bon1 Bon2 0.001
TORS
Data
A torsion angle name , 3 bond names, a torsion angle in
degrees
and its allowed deviation
.
The bond names must occur on
L BOND cards. The torsion angle is defined to be the angle between
the plane of bonds 1 and 2 and the plane of bonds 2 and 3.
This card defines a slack constraint on the calculated torsion angle
of the form:
Example
L TORS B1 B47 B23 99.9 .1
DATA
Data
A CCSL-word which identifies a set of data.
The name of the file containing the data may follow or, if absent, will be asked
for interactively.
File names given on the L DATA card card are either absolute path
names or are relative to the current working directory. Environment variables are
recognised at the start of a path name.
SORC
Data
A CCSL-word which must be the same as one appearing on a L DATA card. The identifier
should be followed by one or more CCSL-word/number pairs.
L DATA PA27 $TT/khe27k.pal
L SORC PA27 MODE 9 REFI 8 WGHT 1.0
L DATA SF30 $TT/khe30k.sf
L SORC SF30 MODE 7 REFI 1 WGHT 0.3 SCAL 7.16
L SORC SF30 DPOP 0.25 0.25 0.25 0.25
L SORC PA27 DPOP 0.18 0.07 0.07 0.18 0.18 0.07 0.07 0.18
Z Domain constraints for PA data
L RELA 1 1 PA27 DP08 1 PA27 DP01
L RELA 2 1 PA27 DP01 1 PA27 DP02 1 PA27 DP03 1 PA27 DP04
Z Domain constraints for SF data
L RELA 1 1 SF30 DP07 1 SF30 DP01
L RELA 1 1 SF30 DP05 1 SF30 DP03
L RELA 2 1 SF30 DP01 1 SF30 DP03 1 SF30 DP05 1 SF30 DP07
L FIX SF30 SC01
TELESCOPING OF SIMPLE CARDS:
The REFI , MODE and WGHT information may all occur on the same L card.
Example
L WGHT 2 MODE 1 REFI 4
ROUTINES WHICH READ THE CARDS:
Routines whose names start SFLS in general set up LSQ programs, which includes the reading of L cards. Routines with names starting INPL read a subset of L cards, omitting the FIX, VARY, RELA and FUDG cards and all the cards for geometric constraints.
Called from within routine INPLSF there are:
NOTE:
See also I cards in their application to driving LSQ programs.
Example I card for LSQ:
I NCYC 3 CYC1 10 MCOR 50 CONV 0.05