Skip to content

Commit

Permalink
Merge pull request #162 from fhagemann/config_files
Browse files Browse the repository at this point in the history
ADLChargeDriftModel config files: Relocation and incorporation into detector config files
  • Loading branch information
lmh91 authored Jun 7, 2021
2 parents 1a9c03b + af04672 commit 3dafb40
Show file tree
Hide file tree
Showing 62 changed files with 2,042 additions and 2,038 deletions.
2 changes: 1 addition & 1 deletion docs/src/man/config_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The fourth one is in cartesian coordinates:
* simple cube detector (CGD)

They are all specified in their JSON config files, which can be found under:
`<package_directory>/examples/example_detector_config_files/<config_filename>.json`.
`<package_directory>/examples/example_config_files/<config_filename>.json`.

In Julia, their path is already saved in the SolidStateDetectors.jl package in a dictionary:
```julia
Expand Down
6 changes: 2 additions & 4 deletions docs/src/tutorial_lit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ get_active_volume(simulation.point_types) # approximation (sum of the volume of

# SolidStateDetectors.jl can also calculate the electric potential of a partially depleted detector:

detector_undep = deepcopy(simulation.detector)
detector_undep.contacts[end].potential = 500; # V <-- Bias Voltage of Mantle

simulation_undep = Simulation(detector_undep);
simulation_undep = deepcopy(simulation)
simulation_undep.detector.contacts[end].potential = 500; # V <-- Bias Voltage of Mantle

calculate_electric_potential!( simulation_undep,
depletion_handling = true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"phi110": 0.0,
"material": "Si",
"drift": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"phi110": -0.785398,
"material": "HPGe",
"drift": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"phi110": -0.785398,
"drift": {
"velocity": {
Expand Down Expand Up @@ -27,7 +28,6 @@
"E0": 10000.0
}
}
},
"chrystaltemp": 100
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"X": 0.7853981633974483,
"material": "HPGe",
"drift": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"phi110": 1.25664,
"drift": {
"velocity": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"phi110": 1.25664,
"drift": {
"velocity": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"model": "ADLChargeDriftModel",
"phi110": 1.25664,
"drift": {
"velocity": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
}
},
"medium": "HPGe",
"objects": {
"semiconductors": [
{
"detectors": [
{
"bulk": {
"material": "HPGe",
"temperature": 78.0,
"impurity_density": {
"name": "cylindrical",
"r": {
Expand All @@ -41,7 +42,6 @@
"gradient": 0.0
}
},
"temperature": 77.0,
"geometry": {
"difference": [
{
Expand Down Expand Up @@ -72,51 +72,51 @@
}
]
}
}
],
"contacts": [
{
"material": "HPGe",
"channel": 1,
"potential": 0.0,
"geometry": {
"tube": {
"r": {
"from": 5.0,
"to": 5.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
},
"contacts": [
{
"material": "HPGe",
"channel": 1,
"potential": 0.0,
"geometry": {
"tube": {
"r": {
"from": 5.0,
"to": 5.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
}
}
}
}
},
{
"material": "HPGe",
"channel": 2,
"potential": 10.0,
"geometry": {
"tube": {
"r": {
"from": 35.0,
"to": 35.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
},
{
"material": "HPGe",
"channel": 2,
"potential": 10.0,
"geometry": {
"tube": {
"r": {
"from": 35.0,
"to": 35.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
}
}
}
}
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
}
},
"medium": "HPGe",
"objects": {
"semiconductors": [
{
"detectors": [
{
"bulk": {
"material": "HPGe",
"temperature": 78.0,
"impurity_density": {
"name": "cylindrical",
"r": {
Expand All @@ -42,7 +43,6 @@
"gradient": 0.0
}
},
"temperature": 77.0,
"geometry": {
"difference": [
{
Expand Down Expand Up @@ -73,51 +73,51 @@
}
]
}
}
],
"contacts": [
{
"material": "HPGe",
"channel": 1,
"potential": 0.0,
"geometry": {
"tube": {
"r": {
"from": 5.0,
"to": 5.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
},
"contacts": [
{
"material": "HPGe",
"channel": 1,
"potential": 0.0,
"geometry": {
"tube": {
"r": {
"from": 5.0,
"to": 5.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
}
}
}
}
},
{
"material": "HPGe",
"channel": 2,
"potential": 10.0,
"geometry": {
"tube": {
"r": {
"from": 35.0,
"to": 35.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
},
{
"material": "HPGe",
"channel": 2,
"potential": 10.0,
"geometry": {
"tube": {
"r": {
"from": 35.0,
"to": 35.0
},
"phi": {
"from": 0.0,
"to": 360.0
},
"z": {
"from": -40.0,
"to": 80.0
}
}
}
}
}
]
}
]
}
]
}
Loading

0 comments on commit 3dafb40

Please sign in to comment.