Skip to content
Discussion options

You must be logged in to vote

I just had a quick look at this, and can provide you something.
Feel free to modify it accordingly:

using SolidStateDetectors
using Plots; pyplot()
using LinearAlgebra
using Unitful

T = Float32
sim = Simulation{T}(SSD_examples[:CGD])
simulate!(sim)

clims = (0,1000)

# Cross-section in xz-plane at y = 0
y = 0
yidx = SolidStateDetectors.searchsortednearest(sim.electric_field.grid[2], T(y))
y = sim.electric_field.grid[2][yidx]

xs = sim.electric_field.grid[1].ticks
ys = sim.electric_field.grid[2].ticks
zidx = findall(z -> z >= -0.00275, sim.electric_field.grid[3].ticks)
zs = sim.electric_field.grid[3].ticks[zidx]

xx, yy, zz = xs' .* ones(length(zs)) * u"m",  (xs' .* zeros(length(zs)) .+ y) *

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fhagemann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #454 on February 10, 2025 18:06.