Skip to content

Composite geometries #193

Answered by BenjaminMidtvedt
lauriejy asked this question in Q&A
Discussion options

You must be logged in to vote

@lauriejy Sure! Intensities in deeptrack are additive. So your inner would need to have the negative of the outer particle's intensity. You can add this as a relation between the two if you want:

outer = Sphere(
    refractive_index=1.33,
    intensity=1,            # Squared magnitude of the field
    position_unit="meter",  # Units of position (default meter)
    position=(64, 64),      # Position of the particle
    radius=30e-6,            # Radius of the sphere
    upsample=2,              # Amount the resolution is upsampled for accuracy
    
)
inner = Sphere(
    refractive_index=1.33,
    intensity=outer.intensity * -1,           # Squared magnitude of the field
    position_unit="…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lauriejy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants