# s1.txt
# mbfit: a sample data for CBED simulation 
# Comment lines:  # or % or COMMENT{  }COMMENT
# ----------------------------------------------------------------------
# job type
# SIM_MODE: CBED simulations
# ----------
SIM_MODE
# ----------------------------------------------------------------------
# For changing internal control parameters
EPS_CONTROL_PARAMETERS{
}EPS_CONTROL_PARAMETERS
# ----------------------------------------------------------------------
# Crystal structural data block
CRYSTAL_STRUCTURE_DATA{
#
LATTICE{
227     # Number of space group
# lattice parameter [in Angstrom units]
5.43    # a
5.43    # b
5.43    # c
90.0    # alpha
90.0    # beta
90.0    # gamma
}LATTICE
#
ATOM{
1  # Number of independent sites.
##
SITE{
SI
0.0    # x (fractional coordinate)
0.0    # y
0.0    # z
ISO    # ISO: isotropic-B / ANISO: anisotropic-B
0.5    # B [A^{2}]
1.0    # occupancy [0.0-1.0]
0      # f table (0:Mott+BK, 1:BK+BK)
}SITE
}ATOM
#
LOW_ORDER_FG{
0    # number of low-order g
}LOW_ORDER_FG
}CRYSTAL_STRUCTURE_DATA
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Simulation: calculation condition block
SIM_CALCULATION_CONDITION{
#
INCIDENT_BEAM{
1   1   1    # Incidence	(upward)
1   1   1    # Surface normal (upward)
2   -2  0    # ZOLZ base vector
0.0          # H tilt
0.0          # G tilt
100.0        # Accelerating Voltage [kV]
}INCIDENT_BEAM
#
CALC_KXY_RANGE{
0     # cal_range_flag  [dummy: always 0]
2     # Calc. type [0:0D, 1:1D, 2:2D disk, 3:2D square]
101   # numh: number of calc. points  > 5  (total~sq(numh))
-1.0  1.0    # hbgn, hend
-1.0  1.0    # gbgn, gend
}CALC_KXY_RANGE
#
#
BEAM_SEARCH{
# Automatic beam search
2                  # Beam search [0:manual, 1:automatic-wg, 2:automatic-sg]
200  4.0  0  0     # num_g_limit, g_max[A^{-1}], lz_min, lz_max
0.02  0.03  1e+11  # sg_exact_max,  sg_bethe_max,  xi_g_max
}BEAM_SEARCH
#
COMMENT{  --------------------------------------------------
BEAM_SEARCH{
# Manual beam input
0     # Beam search method [0:manual, 1:auto[wg], 2:[sg]]
7  0  # num. of exact, num. of bethe
0	0	0  # hkl
2	-2	0
-2	2	0
2	0	-2
-2	0	2
0	2	-2
0	-2	2
}BEAM_SEARCH
}COMMENT  --------------------------------------------------
#
OUTPUT_REFLEX{
0  # Number of reflections to be calculated (0:all)
# indices hkl
#
}OUTPUT_REFLEX
OUTPUT_THICKNESS{
# Number of thicknesses for output
1
# thicknesses (in Angstrom units)
250
}OUTPUT_THICKNESS
}SIM_CALCULATION_CONDITION
