../fullrmc/Examples/SiOxNanosphere/
Isolated Silicon oxide spherical nano-particle is create using 2315 silicon atom and 1094 oxygen atom dispersed in the outer layers at different concentration ratios that decreases with the depth of the nano-particle.
PairDistributionConstraint
constraint data.IMPORTING USEFUL DEFINITIONS:
All useful packages, modules and definitions are imported.
CREATE ENGINE:
Check if engine already saved on disk. In the affirmative load it to continue
fitting from last saved configuration. Otherwise, build the engine and the needed
constraints. Starting from fullrmc version 1.0.0, fitting non-periodic boundary
conditions is possible. This is done by computing a shape function that corrects
for density fluctuation and void at large distances. Here, set_shape_function_parameters
method is used to fit a shape function ShapeFunction
upon computing the
experimental constraint PairDistributionConstraint
.
DIFFERENT RUNS:
Define functions to run the fitting engine. All of the following functions finish running the engine using Engine.run method.
RecursiveGroupSelector
group selector and runs
explore mode.DirectionalOrderSelector
group selector
and wraps it with RecursiveGroupSelector
to allow different fitting
modes. DirectionalOrderSelector
is initialized with both expand and
adjustMoveGenerators set to True. This means that it will automatically select
groups starting from outer layers to the deapest ones and will automatically
set and adjust groups move generators to a collection of randomRotation
and TranslationTowardsCenterGenerator
using
MoveGeneratorCollector
.RUN SIMULATION:
run the different functions to fit the system.
PLOT PDF CONSTRAINT:
Plotting PairDistributionConstraint
data after fitting.