@@ -52,10 +52,10 @@ def custom_XY_DSPC(params, bulk_in, bulk_out, contrast):
5252 z = np .arange (0 , 141 )
5353
5454 # Make our Silicon substrate
55- vfSilicon , siSurf = layer (z , - 25 , 50 , 1 , subRough , subRough )
55+ vfSilicon , siSurf = make_layer (z , - 25 , 50 , 1 , subRough , subRough )
5656
5757 # Add the Oxide
58- vfOxide , oxSurface = layer (z , siSurf , oxideThick , 1 , subRough , subRough )
58+ vfOxide , oxSurface = make_layer (z , siSurf , oxideThick , 1 , subRough , subRough )
5959
6060 # We fill in the water at the end, but there may be a hydration layer between the bilayer and the oxide,
6161 # so we start the bilayer stack an appropriate distance away
@@ -66,15 +66,15 @@ def custom_XY_DSPC(params, bulk_in, bulk_out, contrast):
6666 headThick = vHead / lipidAPM
6767
6868 # ... and make a box for the volume fraction (1 for now, we correct for coverage later)
69- vfHeadL , headLSurface = layer (z , watSurface , headThick , 1 , bilayerRough , bilayerRough )
69+ vfHeadL , headLSurface = make_layer (z , watSurface , headThick , 1 , bilayerRough , bilayerRough )
7070
7171 # ... also do the same for the tails
7272 # We'll make both together, so the thickness will be twice the volume
7373 tailsThick = (2 * vTail ) / lipidAPM
74- vfTails , tailsSurf = layer (z , headLSurface , tailsThick , 1 , bilayerRough , bilayerRough )
74+ vfTails , tailsSurf = make_layer (z , headLSurface , tailsThick , 1 , bilayerRough , bilayerRough )
7575
7676 # Finally the upper head ...
77- vfHeadR , headSurface = layer (z , tailsSurf , headThick , 1 , bilayerRough , bilayerRough )
77+ vfHeadR , headSurface = make_layer (z , tailsSurf , headThick , 1 , bilayerRough , bilayerRough )
7878
7979 # Making the model
8080 # We've created the volume fraction profiles corresponding to each of the groups.
@@ -120,7 +120,7 @@ def custom_XY_DSPC(params, bulk_in, bulk_out, contrast):
120120 return SLD , subRough
121121
122122
123- def layer (z , prevLaySurf , thickness , height , Sigma_L , Sigma_R ):
123+ def make_layer (z , prevLaySurf , thickness , height , Sigma_L , Sigma_R ):
124124 """Produce a layer, with a defined thickness, height and roughness.
125125
126126 Each side of the layer has its own roughness value.
0 commit comments