Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CIGALE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
CIGALE
Commits
0bac3629
Commit
0bac3629
authored
Jul 10, 2014
by
Laure Ciesla
Committed by
Médéric Boquien
Aug 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Radio non thermal emission
parent
9e47749b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
0 deletions
+89
-0
pcigale/creation_modules/synchrotron.py
pcigale/creation_modules/synchrotron.py
+89
-0
No files found.
pcigale/creation_modules/synchrotron.py
0 → 100644
View file @
0bac3629
# -*- coding: utf-8 -*-
# Copyright (C) 2013 Centre de données Astrophysiques de Marseille
# Copyright (C) 2013 Institute of Astronomy, University of Cambridge
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Médéric Boquien
"""
Radio module
=============================
This module implements the radio emission of galaxies, taking into account only the non-thermal emission.
The thermal emission is handled by the nebular module.
The parameters that this module takes as input are:
- the value of the coefficient of the FIR/radio correlation
- the value of the spectral index of the power law emission from synchrotron.
"""
import
numpy
as
np
import
scipy.constants
as
cst
from
collections
import
OrderedDict
from
.
import
CreationModule
class
Radio
(
CreationModule
):
"""Radio emission
Given the number of Lyman photons, the module computes the free-free (thermal) emission of galaxies.
Based on the SN collapse rate, the module computes the synchrotron (non-thermal) emission of galaxies.
"""
parameter_list
=
OrderedDict
([
(
"qir"
,
(
"float"
,
"The value of the FIR/radio correlation coefficient."
,
2.58
)),
(
"alpha"
,
(
"float"
,
"The slope of the power-law synchrotron emission."
,
0.8
))
])
out_parameter_list
=
OrderedDict
([
(
"qir"
,
"The value of the FIR/radio correlation coefficient."
),
(
"alpha"
,
"The slope of the power-law synchrotron emission."
)
])
def
_init_code
(
self
):
"""Build the model for a given set of parameters."""
qir
=
float
(
self
.
parameters
[
"qir"
])
alpha
=
float
(
self
.
parameters
[
"alpha"
])
# We define various constants necessary to compute the model. For
# consistency, we define the speed of light in nm s¯¹ rather than in
# m s¯¹.
c
=
cst
.
c
*
1e9
# We define the wavelength range for the non thermal emission
self
.
wave
=
np
.
logspace
(
5.
,
9.
,
1000.
)
# We compute the synchrotron emission normalised at 21cm
self
.
lumin_nonthermal
=
(
1.
/
self
.
wave
)
**
(
-
alpha
+
2
)
/
(
1.
/
2.1e8
)
**
(
-
alpha
+
2
)
# Normalisation factor from the FIR/radio correlation to apply to the
# IR luminosity
S21cm
=
(
1.
/
(
10
**
qir
*
3.75e12
))
*
(
c
/
(
2.1e8
)
**
2
)
self
.
lumin_nonthermal
*=
S21cm
def
process
(
self
,
sed
):
"""Add the radio contribution.
Parameters
----------
sed: pcigale.sed.SED object
"""
if
'dust.luminosity'
not
in
sed
.
info
.
keys
():
sed
.
add_info
(
'dust.luminosity'
,
1.
,
True
)
luminosity
=
sed
.
info
[
'dust.luminosity'
]
sed
.
add_module
(
self
.
name
,
self
.
parameters
)
sed
.
add_info
(
"radio.qir"
,
self
.
parameters
[
"qir"
])
sed
.
add_info
(
"radio.alpha"
,
self
.
parameters
[
"alpha"
])
sed
.
add_contribution
(
'radio_nonthermal'
,
self
.
wave
,
self
.
lumin_nonthermal
*
luminosity
)
# CreationModule to be returned by get_module
Module
=
Radio
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment