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

example core shell: more expressive local vars

parent 7a07035d
No related branches found
No related tags found
1 merge request!1033various cleanup
......@@ -21,19 +21,15 @@ def get_sample():
ff_2 = ba.Box(16*nm, 16*nm, 8*nm)
# Define particles
particle_1 = ba.Particle(material_Core, ff_1)
particle_2 = ba.Particle(material_Shell, ff_2)
core = ba.Particle(material_Core, ff_1)
shell = ba.Particle(material_Shell, ff_2)
# Define core shell particles
particle_3 = ba.ParticleCoreShell(particle_2, particle_1)
# Define interference functions
iff = ba.InterferenceNone()
particle = ba.ParticleCoreShell(shell, core)
# Define particle layouts
layout = ba.ParticleLayout()
layout.addParticle(particle_3)
layout.setInterference(iff)
layout.addParticle(particle)
layout.setTotalParticleSurfaceDensity(0.01)
# Define layers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment