Skip to content
Snippets Groups Projects
Commit ceddf600 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

HollowSpheres: use standard_samples

parent 21709772
No related branches found
No related tags found
1 merge request!1034Evarious corrs; ran 'make figures'; add example 'HollowSpheres'
...@@ -3,32 +3,16 @@ ...@@ -3,32 +3,16 @@
SAS by hollow spheres SAS by hollow spheres
""" """
import bornagain as ba import bornagain as ba
from bornagain import ba_plot as bp, deg, nm, std_simulations from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
def get_sample(): def get_sample():
# Define materials mat = ba.RefractiveMaterial("Particle", 6e-05, 2e-08)
material_Particle = ba.RefractiveMaterial("Particle", 6e-05, 2e-08)
material_Vacuum = ba.RefractiveMaterial("Vacuum", 0, 0)
# Define particle
ff = ba.HollowSphere(4*nm, 1*nm) ff = ba.HollowSphere(4*nm, 1*nm)
particle = ba.Particle(material_Particle, ff) particle = ba.Particle(mat, ff)
# Define particle layouts return std_samples.sas_sample_with_particle(particle)
layout = ba.ParticleLayout()
layout.addParticle(particle)
layout.setTotalParticleSurfaceDensity(0.01)
# Define layers
layer = ba.Layer(material_Vacuum)
layer.addLayout(layout)
# Define sample
sample = ba.MultiLayer()
sample.addLayer(layer)
return sample
if __name__ == '__main__': if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment