Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
pslocum committed Feb 19, 2018
2 parents d2a4a54 + 0669940 commit 2a4c7e2
Show file tree
Hide file tree
Showing 86 changed files with 2,775 additions and 5,653 deletions.
1 change: 0 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
path = kassiopeia
url = https://github.com/project8/kassiopeia.git
branch = feature/eventmod

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pbuilder_prepare_project()

set_option( USE_CPP11 TRUE )

option( locust_mc_BUILD_WITH_KASSIOPEIA "Option to build with Kassiopeia" TRUE )
option( locust_mc_BUILD_WITH_KASSIOPEIA "Option to build with Kassiopeia" FALSE )

if (locust_mc_BUILD_WITH_KASSIOPEIA)
# Keep KasperDefaults from overriding the install prefix
Expand Down
1 change: 0 additions & 1 deletion Config/LocustTemplateHFSS.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"kass-signal":
{
"lo-frequency": 25.937e9,
"carrier-frequency": 25.937e9,
"xml-filename": "Project8_Template.xml",
"and-filename": "sphere.and"
},
Expand Down
19 changes: 19 additions & 0 deletions Config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Directory Structure
-------------------

* Tutorial - Tutorial outlining usage of locust in Phase II

File Conventions
-------------------
* .xml files are kassiopeia configuration files, and are compatible with the current release of Kassiopeia
Typically, to improve the modularity of the XML files, users create separate xml files specifically specifying the geometry of the electromagnetic trap (ie. Project8Geometry.xml) which can be included in other files.

https://github.com/KATRIN-Experiment/Kassiopeia

* .json files are generally locust configuration files. Locust uses an ordered list of generators (ie. kass-signal, lpf-fft), which either generate signals, or apply transformations, such as filtering, to these signals. These files specify both the list of generators used and the parameters of these generators, in standard JSON format.
In the Tutorial subdirectory, there are katydid.json files, which are used as configuration for katydid. These are clearly marked and explained in the tutorial.


* .and files are HFSS input files. If using the hfss-signal generator, this file is used as input in locust to generate an .nfd file, which is another HFSS configuration file, describing the electron fields. Both the .and and .nfd files are compatible with up to HFSS version 18.1. An issue should be raised on github if future versions are not back-compatible to the current file format.


18 changes: 10 additions & 8 deletions Config/Tutorial/LocustTemplate.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"generators":
[
"freefield-signal",
[
"kass-signal",
"lpf-fft",
"decimate-signal",
"gaussian-noise",
"digitizer"
],

"kass-signal":
{
"lo-frequency": 25.2814e9,
"xml-filename": "/home/penny/locust_mc/Config/Tutorial/Project8Phase2_WithRoot_Template.xml"
"lo-frequency": 25.3106e9,
"xml-filename": "/cmn/p8/locust_mc/Config/Tutorial/Project8Phase1_WithRoot_Template.xml",
"pitchangle-filename": "/cmn/p8/locust_mc/cbuild/bin/pitchangles.txt"
},

"freefield-signal":
Expand All @@ -21,21 +23,21 @@

"simulation":
{
"egg-filename": "/home/penny/locust_mc/cbuild/bin/locust_mc.egg",
"egg-filename": "/cmn/p8/locust_mc/cbuild/bin/locust_mc_josh.egg",
"n-records": 1,
"record-size": 4194304
},

"gaussian-noise":
{
"noise-floor": 20.0e-26,
"noise-floor": 4.0e-23,
"domain": "time"
},

"digitizer":
{
"v-range": 2.0e-7,
"v-offset": -1.0e-7
"v-range": 6.0e-6,
"v-offset": -3.0e-6
}

}
Expand Down
119 changes: 119 additions & 0 deletions Config/Tutorial/Project8Phase1Geometry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@

<!-- waveguide -->

<tag name="project8_rectangular_waveguide_tag">
<box_space
name="new_rectangularwaveguide_space"
xa="-0.005334"
xb="0.005334"
x_mesh_count="10"
x_mesh_power="1."
ya="-0.002159"
yb="0.002159"
y_mesh_count="10"
y_mesh_power="1."
za="-0.0381"
zb="0.0381"
z_mesh_count="10"
z_mesh_power="1."
/>
</tag>


<!-- pinch coil -->

<tag name="magnet_tag" name="center_pinch_coil_tag">
<cylinder_tube_space
name="center_pinch_coil_space"
z1="-.00381"
z2=".00381"
longitudinal_mesh_count="10"
longitudinal_mesh_power="1."
r1="0.0065024"
r2="0.0096774"
radial_mesh_count="30"
radial_mesh_power="1."
axial_mesh_count="128"
/>
</tag>

<!-- bathtub coils -->

<tag name="magnet_tag" name="upstream_bathtub_coil_tag">
<cylinder_tube_space
name="upstream_bathtub_coil_space"
z1="-.003175"
z2=".003175"
longitudinal_mesh_count="10"
longitudinal_mesh_power="1."
r1="0.0065024"
r2="0.0096774"
radial_mesh_count="30"
radial_mesh_power="1."
axial_mesh_count="128"
/>
</tag>

<tag name="magnet_tag" name="downstream_bathtub_coil_tag">
<cylinder_tube_space
name="downstream_bathtub_coil_space"
z1="-.003175"
z2=".003175"
longitudinal_mesh_count="10"
longitudinal_mesh_power="1."
r1="0.0065024"
r2="0.0096774"
radial_mesh_count="30"
radial_mesh_power="1."
axial_mesh_count="128"
/>
</tag>


<!-- assembly -->

<space name="project8_assembly">

<space name="center_pinch_coil" node="center_pinch_coil_space">
<transformation rotation_euler="0. 0. 0."/>
<transformation displacement="{0.} {0.} {0.0}"/>
</space>
<space name="upstream_bathtub_coil" node="upstream_bathtub_coil_space">
<transformation rotation_euler="0. 0. 0."/>
<transformation displacement="{0.} {0.} {0.027051}"/>
</space>
<space name="downstream_bathtub_coil" node="downstream_bathtub_coil_space">
<transformation rotation_euler="0. 0. 0."/>
<transformation displacement="{0.} {0.} {-0.027051}"/>
</space>

<space name="rectangularwaveguide" node="new_rectangularwaveguide_space"/>


</space>




<cylinder_space name="world_space" z1="-50" z2="50" r="20"/>
<space name="world" node="world_space">
<space name="project8" tree="project8_assembly">
<transformation rotation_axis_angle="[alignment] 90. 90."/>
</space>
</space>




<appearance name="app_magnet" color="0 255 96 96" arc="72" surfaces="world/project8/upstream_bathtub_coil/#"/>
<appearance name="app_magnet" color="0 255 96 96" arc="72" surfaces="world/project8/center_pinch_coil/#"/>
<appearance name="app_magnet" color="0 255 96 96" arc="72" surfaces="world/project8/downstream_bathtub_coil/#"/>
<appearance name="app_waveguide" color="255 128 0 96" arc="72" surfaces="world/project8/rectangularwaveguide/top"/>
<appearance name="app_waveguide" color="255 128 0 96" arc="72" surfaces="world/project8/rectangularwaveguide/bottom"/>
<appearance name="app_waveguide" color="255 128 0 96" arc="72" surfaces="world/project8/rectangularwaveguide/jacket"/>




<!-- appearance -->

Loading

0 comments on commit 2a4c7e2

Please sign in to comment.