DSPC Custom Layers#

This shows an example of using a custom layers model to analyse reflectivity from a supported bilayer of DSPC.

In this example, we can make use of the fact that the volumes, and of course the atomistic composition are known. So, for lipid tails for example, then we can take a literature value for the tails volume, have a fittable parameter for the lipid area per molecule, and then the tail thickness will simply be

\[Tail Thick = Tail Volume / Lipid APM.\]

Since the volume is known, then the SLD of the tails is also obviously easily calculable.

In addition, the datasets for this example, have a resolution (per point) in their fourth column. We use this resolution in our analysis, rather than declaring a constant, fittable one.

This example can be run as a script or interactively using the instructions below.

Note

The custom model used is a MATLAB model - examples/normalReflectivity/customLayers/customBilayerDSPC.m.

Run Script:

root = getappdata(0, 'root');
cd(fullfile(root, 'examples', 'normalReflectivity', 'customLayers'));
customLayersDSPCScript

Run Interactively:

root = getappdata(0, 'root');
cd(fullfile(root, 'examples', 'normalReflectivity', 'customLayers'));
edit customLayersDSPCSheet.mlx

Note

The custom model used is a Python model - RATapi.examples.non_polarised.custom_bilayer_DSPC.py.

Run Script:

python RATapi.examples.non_polarised.DSPC_custom_layers.py

Run as Function:

import RATapi as RAT
problem, results = RATapi.examples.non_polarised.DSPC_custom_layers()

Run Interactively:

jupyter notebook RATapi.examples.non_polarised.DSPC_custom_layers.ipynb