default_parameters.xml 14.9 KB
Newer Older
1 2
<?xml version="1.0"?>
<!-- FULL PARAMETER-SET FOR ALL MODULES -->
3 4 5
<!-- author, Jiaxin Wang -->
<!-- email, jiwang@sissa.it -->
<!-- "cue", switches for usage -->
6
<root>
7 8 9
    <!-- observable output -->
    <Obsout>
    </Obsout>
10 11 12
    <!-- physical field grid in/out -->
    <!-- resolution defined in './Grid/Box' -->
    <!-- CRE field resolution defined in './CRE/Numeric' -->
13
    <Fieldout>
14 15 16 17 18 19 20 21
        <!-- regular magnetic field -->
        <breg_grid read="0" write="0" filename="breg.bin"/>
        <!-- turbulent magnetic field -->
        <brnd_grid read="0" write="0" filename="brnd.bin"/>
        <!-- free electron field -->
        <fe_grid read="0" write="0" filename="ymw16.bin"/>
        <!-- turbulent free electron field -->
        <fernd_grid read="0" write="0" filename="fernd.bin"/>
22
        <!-- cosmic ray electron field -->
23
        <cre_grid read="0" write="0" filename="cre.bin"/>
24
    </Fieldout>
25
    
26 27
    <!-- field & observable grid -->
    <Grid>
28 29 30 31 32
        <SunPosition>
            <x value="-8.3"/> <!-- kpc -->
            <y value="0"/> <!-- kpc -->
            <z value="6"/> <!-- pc -->
        </SunPosition>
Jiaxin Wang's avatar
Jiaxin Wang committed
33 34
        <!-- GMF field grid -->
        <Box_GMF>
35
            <!-- grid vertex number -->
36 37 38
            <nx value="800"/>
            <ny value="800"/>
            <nz value="160"/>
39 40 41 42 43 44 45
            <!-- box limit, in Galactic-centric frame -->
            <x_min value="-20.0"/> <!-- kpc -->
            <x_max value="20.0"/> <!-- kpc -->
            <y_min value="-20.0"/> <!-- kpc -->
            <y_max value="20.0"/> <!-- kpc -->
            <z_min value="-4.0"/> <!-- kpc -->
            <z_max value="4.0"/> <!-- kpc -->
Jiaxin Wang's avatar
Jiaxin Wang committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
        </Box_GMF>
        <!-- FE field grid -->
        <Box_FE>
            <!-- grid vertex number -->
            <nx value="800"/>
            <ny value="800"/>
            <nz value="160"/>
            <!-- box limit, in Galactic-centric frame -->
            <x_min value="-20.0"/> <!-- kpc -->
            <x_max value="20.0"/> <!-- kpc -->
            <y_min value="-20.0"/> <!-- kpc -->
            <y_max value="20.0"/> <!-- kpc -->
            <z_min value="-4.0"/> <!-- kpc -->
            <z_max value="4.0"/> <!-- kpc -->
        </Box_FE>
        <!-- CRE field grid -->
        <Box_CRE>
            <nz value="80"/>
            <nx value="80"/>
            <ny value="80"/>
            <nE value="80"/>
            <x_min value="0.0"/> <!-- kpc -->
            <x_max value="0.0"/> <!-- kpc -->
            <y_min value="0.0"/> <!-- kpc -->
            <y_max value="0.0"/> <!-- kpc -->
            <z_min value="-4.0"/> <!-- kpc -->
            <z_max value="4.0"/> <!-- kpc -->
            <!-- E_max = E_min*exp(nE*E_fact) -->
            <E_min value="0.1"/> <!-- GeV -->
            <E_max value="100.0"/> <!-- GeV -->
        </Box_CRE>
77
        <!-- LOS integration setting -->
Jiaxin Wang's avatar
Jiaxin Wang committed
78 79
        <Shell>
            <layer type="auto">
80 81
                <auto>
                    <shell_num value="1"/> <!-- total shell number -->
82
                    <nside_min value="32"/> <!-- inner most shell resolution -->
83 84
                </auto>
                <!-- set shell resolution from inside out -->
Jiaxin Wang's avatar
Jiaxin Wang committed
85
                <!-- set shell cutting point from inside out -->
86
                <manual> <!-- total shell number calculated automatically -->
Jiaxin Wang's avatar
Jiaxin Wang committed
87
                    <cut value="0.5"/> <!-- cut at half of total shell radius -->
88 89 90
                    <nside value="32"/> <!-- inner most shell Nside -->
                    <nside value="16"/>
                </manual>
Jiaxin Wang's avatar
Jiaxin Wang committed
91
            </layer>
92
            <nside_sim value="32"/> <!-- output map resolution -->
93
            <!-- maximum radius in earth/Galactic centric frame -->
94
            <ec_r_max value="30.0"/> <!-- kpc -->
95
            <gc_r_max value="20.0"/> <!-- kpc -->
96
            <!-- maximum height in galactic centric frame -->
97
            <gc_z_max value="10.0"/> <!-- kpc -->
98
            <!-- radial resolution -->
Jiaxin Wang's avatar
Jiaxin Wang committed
99
            <ec_r_res value="0.05"/> <!-- kpc -->
100
            <!-- galactic latitude lower limit -->
101
            <lat_lim value="0."/> <!-- [0,90] -->
Jiaxin Wang's avatar
Jiaxin Wang committed
102
        </Shell>
103 104
    </Grid>
    
105 106 107
    <!-- magnetic fields -->
    <MagneticField>
        <!-- regular fields -->
Jiaxin Wang's avatar
Jiaxin Wang committed
108
        <Regular cue="1" type="Test">
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
            <!-- WMAP LSA -->
            <WMAP>
                <b0 value="1.2"/> <!-- microG -->
                <psi0 value="27.0"/> <!-- deg -->
                <psi1 value="0.9"/> <!-- deg -->
                <chi0 value="25.0"/> <!-- deg -->
            </WMAP>
            <!-- Jaffe -->
            <Jaffe>
                <quadruple cue="0"/> <!-- quadruple pattern in halo -->
                <bss cue="0"/> <!-- bi-symmetric -->
                
                <disk_amp value="0.167"/> <!-- disk amplitude, microG -->
                <disk_z0 value="0.1"/> <!-- disk height scale, kpc -->
                <halo_amp value="1.38"/> <!-- halo amplitude, microG -->
                <halo_z0 value="3.0"/> <!-- halo height scale, kpc -->
                <r_inner value="0.5"/> <!-- inner R scale, kpc -->
                <r_scale value="20"/> <!-- R scale, kpc -->
                <r_peak value="0"/> <!-- R peak, kpc -->
                
                <ring cue="0"/> <!-- molecular ring -->
                <bar cue="1"/> <!-- elliptical bar -->
                <!-- either ring or bar -->
                <ring_amp value="0.023"/> <!-- ring field amplitude, microG -->
                <ring_r value="5.0"/> <!-- ring radius, kpc -->
                <bar_amp value="0.023"/> <!-- bar field amplitude, microG -->
                <bar_a value="5.0"/> <!-- major scale, kpc -->
                <bar_b value="3.0"/> <!-- minor scale, kpc -->
                <bar_phi0 value="45.0"/> <!-- bar major direction -->
                
                <arm_num value="4"/> <!-- spiral arms -->
                <arm_r0 value="7.1"/> <!-- arm ref radius -->
                <arm_z0 value="0.1"/> <!-- arm heigth scale, kpc -->
                <arm_phi1 value="70"/> <!-- arm ref angles, deg -->
                <arm_phi2 value="160"/>
                <arm_phi3 value="250"/>
                <arm_phi4 value="340"/>
                <arm_amp1 value="2"/> <!-- arm field amplitudes, microG -->
                <arm_amp2 value="0.133"/>
                <arm_amp3 value="-3.78"/>
                <arm_amp4 value="0.32"/>
                <arm_pitch value="11.5"/> <!-- pitch angle, deg -->
                
                <comp_c value="0.5"/> <!-- compress factor -->
                <comp_d value="0.3"/> <!-- arm cross-sec scale, kpc -->
                <comp_r value="12"/> <!-- radial cutoff scale, kpc -->
                <comp_p value="3"/> <!-- cutoff power -->
            </Jaffe>
            <!-- verification -->
Jiaxin Wang's avatar
Jiaxin Wang committed
158
            <Test>
159 160 161
                <b0 value="2.0"/> <!-- microG -->
                <l0 value="70"/> <!-- deg -->
                <r value="0.3"/>
Jiaxin Wang's avatar
Jiaxin Wang committed
162
            </Test>
163
        </Regular>
Jiaxin Wang's avatar
Jiaxin Wang committed
164 165 166
        <!-- random/turbulent fields -->
        <!-- seed should be non-negative int -->
        <!-- seed=0, seed according to thread id and time -->
167
        <Random cue="0" type="Local" seed="0">
Jiaxin Wang's avatar
Jiaxin Wang committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
            <!-- global generators -->
            <Global type="ES">
                <!-- Ensslin-Steininger method -->
                <ES>
                    <rms value="0.8"/> <!-- RMS -->
                    <k0 value="0.5"/> <!-- cutoff, 1/(Lambda in kpc) -->
                    <a0 value="1.7"/> <!-- 5/3, Kolmogorov -->
                    <rho value="0.5"/> <!-- [0,1] -->
                    <!-- energy density rescaling -->
                    <r0 value="8.0"/> <!-- in kpc -->
                    <z0 value="1.0"/> <!-- in kpc -->
                </ES>
                <!-- Jaffe method -->
                <Jaffe>
                    <!-- to be implemented -->
                </Jaffe>
184
            </Global>
Jiaxin Wang's avatar
Jiaxin Wang committed
185 186 187 188 189 190 191 192 193 194 195 196 197 198
            <!-- local generators -->
            <Local type="MHD">
                <!-- compressive MHD approximation -->
                <MHD>
                    <pa0  value="1"/> <!-- Alfven power norm at k0 -->
                    <pf0 value="1"/> <!-- fast power norm at k0 -->
                    <ps0 value="1"/> <!-- slow power norm at k0 -->
                    <aa0 value="1.7"/> <!-- Kolmogorov -->
                    <af0 value="1.5"/>
                    <as0 value="1.7"/>
                    <k0 value="0.5"/> <!-- cutoff, 1/(Lambda in kpc) -->
                    <beta value="0.1"/> <!-- plasma beta -->
                    <ma value="0.5"/> <!-- Alfven Mach number -->
                </MHD>
199 200 201 202 203 204
            </Local>
        </Random>
    </MagneticField>
    
    <!-- free electron field -->
    <FreeElectron>
Jiaxin Wang's avatar
Jiaxin Wang committed
205
        <Regular cue="1" type="Test">
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
            <!-- YMW16 -->
            <YMW16>
                <Warp>
                    <R_warp value="8.4"/> <!-- Galactic warp, kpc -->
                    <Gamma_w value="0.14"/> <!-- warp ratio -->
                    <R0 value="8.3"/> <!-- Sun radial position, kpc -->
                </Warp>
                <ThickDisk>
                    <Ad value="2500"/>
                    <Bd value="15000"/>
                    <n1 value="0.01132"/>
                    <H1 value="1673"/>
                </ThickDisk>
                <ThinDisk>
                    <A2 value="1200"/>
                    <B2 value="4000"/>
                    <n2 value="0.404"/>
                    <K2 value="1.54"/>
                </ThinDisk>
                <!-- using HH14 SpiralArms -->
                <SpiralArm>
                    <B2s value="4000"/>
Jiaxin Wang's avatar
Jiaxin Wang committed
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
                    <Ele_arm_0 value="0.135000"/> <!-- electron density norm, cm^-3 -->
                    <Ele_arm_1 value="0.129000"/> <!-- electron density norm, cm^-3 -->
                    <Ele_arm_2 value="0.103000"/> <!-- electron density norm, cm^-3 -->
                    <Ele_arm_3 value="0.116000"/> <!-- electron density norm, cm^-3 -->
                    <Ele_arm_4 value="0.005700"/> <!-- electron density norm, cm^-3 -->
                    <Wid_arm_0 value="300"/> <!-- typical arm width, pc -->
                    <Wid_arm_1 value="500"/> <!-- typical arm width, pc -->
                    <Wid_arm_2 value="300"/> <!-- typical arm width, pc -->
                    <Wid_arm_3 value="500"/> <!-- typical arm width, pc -->
                    <Wid_arm_4 value="300"/> <!-- typical arm width, pc -->
                    <Rref_arm_0 value="3.35"/> <!-- arm reference radius, kpc -->
                    <Rref_arm_1 value="3.707"/> <!-- arm reference radius, kpc -->
                    <Rref_arm_2 value="3.56"/> <!-- arm reference radius, kpc -->
                    <Rref_arm_3 value="3.670"/> <!-- arm reference radius, kpc -->
                    <Rref_arm_4 value="8.21"/> <!-- arm reference radius, kpc -->
                    <Phiref_arm_0 value="44.4"/> <!-- arm reference azimuthal angle, deg -->
                    <Phiref_arm_1 value="120.0"/> <!-- arm reference azimuthal angle, deg -->
                    <Phiref_arm_2 value="218.6"/> <!-- arm reference azimuthal angle, deg -->
                    <Phiref_arm_3 value="330.3"/> <!-- arm reference azimuthal angle, deg -->
                    <Phiref_arm_4 value="55.1"/> <!-- arm reference azimuthal angle, deg -->
                    <pitch_arm_0 value="11.43"/> <!-- arm pitch angle, deg -->
                    <pitch_arm_1 value="9.84"/> <!-- arm pitch angle, deg -->
                    <pitch_arm_2 value="10.38"/> <!-- arm pitch angle, deg -->
                    <pitch_arm_3 value="10.54"/> <!-- arm pitch angle, deg -->
                    <pitch_arm_4 value="2.77"/> <!-- arm pitch angle, deg -->
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
                    <Aa value="11680"/>
                    <Ka value="5.015"/>
                    <ncn value="2.4"/>
                    <wcn value="8.2"/>
                    <thetacn value="109"/>
                    <nsg value="0.626"/>
                    <wsg value="20"/>
                    <thetasg value="75.8"/>
                </SpiralArm>
                <GalCenter>
                    <ngc value="6.2"/>
                    <Agc value="160"/>
                    <Hgc value="35"/>
                </GalCenter>
                <GumNebula>
                    <ngn value="1.84"/>
                    <Wgn value="15.1"/>
                    <Agn value="125.8"/>
                    <Kgn value="1.4"/>
                </GumNebula>
                <LocalBubble>
                    <J_LB value="0.480"/>
                    <nlb1 value="1.094"/>
                    <detlb1 value="28.4"/>
                    <wlb1 value="14.2"/>
                    <hlb1 value="112.9"/>
                    <thetalb1 value="195.4"/>
                    <nlb2 value="2.33"/>
                    <detlb2 value="14.7"/>
                    <wlb2 value="15.6"/>
                    <hlb2 value="43.6"/>
                    <thetalb2 value="278.2"/>
                </LocalBubble>
                <LoopI>
                    <nLI value="1.907"/>
                    <RLI value="80.0"/>
                    <WLI value="15.0"/>
                    <detthetaLI value="30.0"/>
                    <thetaLI value="40.0"/>
                </LoopI>
            </YMW16>
            <!-- verification -->
Jiaxin Wang's avatar
Jiaxin Wang committed
295
            <Test>
296 297
                <n0 value="0.01"/> <!-- pccm -->
                <r0 value="3.0"/> <!-- kpc -->
Jiaxin Wang's avatar
Jiaxin Wang committed
298
            </Test>
299
        </Regular>
Jiaxin Wang's avatar
Jiaxin Wang committed
300
        <!-- random/turbulent free electron -->
301
        <Random cue="0" type="Global" seed="0">
Jiaxin Wang's avatar
Jiaxin Wang committed
302 303 304 305 306 307 308 309 310 311 312
            <!-- global generator -->
            <Global type="DFT">
                <!-- default global generator -->
                <DFT>
                    <rms value="1.0"/>
                    <k0 value="2.0"/> <!-- cutoff 1/Lambda in kpc -->
                    <a0 value="-1.7"/>
                    <!-- field strength rescaling -->
                    <r0 value="8.0"/> <!-- in kpc -->
                    <z0 value="1.0"/> <!-- in kpc -->
                </DFT>
313
            </Global>
Jiaxin Wang's avatar
Jiaxin Wang committed
314
            <!-- local generator -->
315
            <Local>
Jiaxin Wang's avatar
Jiaxin Wang committed
316
                <!-- to be implemented -->
317 318 319
            </Local>
        </Random>
    </FreeElectron>
320
    
321
    <!-- analytic/numeric CRE -->
Jiaxin Wang's avatar
Jiaxin Wang committed
322 323
    <!-- flux norm comes with unit [GeV m^2 s Sr]^-1 -->
    <CRE type="Test">
324
        <Analytic>
325
            <!-- CRE spectral index: -alpha+beta*r+theta*z, Galactic cylindric frame -->
326 327 328
            <alpha value="3.0"/>
            <beta value="0.0"/>
            <theta value="0.0"/>
329 330 331 332 333
            <r0 value="5.0"/> <!-- kpc -->
            <z0 value="1.0"/> <!-- kpc -->
            <!-- by default, we choose AMS02 20.6GeV -->
            <E0 value="20.6"/> <!-- CRE kinetic energy reference, GeV -->
            <j0 value="0.0217"/> <!-- local CRE flux norm factor @ E0 -->
334 335
        </Analytic>
        
Jiaxin Wang's avatar
Jiaxin Wang committed
336 337
        <Numeric>
            <!-- info of numeric CRE in root->Grid->Box_CRE -->
338
        </Numeric>
339 340
        
        <!-- verification -->
Jiaxin Wang's avatar
Jiaxin Wang committed
341
        <Test>
342 343
            <alpha value="3.0"/>
            <r0 value="3.0"/> <!-- cutoff radius, kpc -->
344 345 346
            <!-- by default, we choose AMS02 20.6GeV -->
            <E0 value="20.6"/> <!-- CRE kinetic energy reference, GeV -->
            <j0 value="0.0217"/> <!-- local CRE flux norm factor @ E0 -->
Jiaxin Wang's avatar
Jiaxin Wang committed
347
        </Test>
348 349
    </CRE>
</root>