Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guang
x-cigale
Commits
8ac897ca
Commit
8ac897ca
authored
Jun 19, 2019
by
Guang
Committed by
Guang
Oct 23, 2019
Browse files
modify skirtor module so that the central source is isotropic
parent
d8cacbab
Changes
2
Hide whitespace changes
Inline
Side-by-side
pcigale/sed_modules/fritz2006.py
View file @
8ac897ca
...
...
@@ -125,9 +125,7 @@ class Fritz2006(SedModule):
x
=
self
.
fritz2006
.
wave
)
# Apply polar-dust obscuration
# 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¯¹.
# We define various constants necessary to compute the model
self
.
c
=
cst
.
c
*
1e9
lambda_0
=
200e3
# Calculate the extinction (SMC)
...
...
pcigale/sed_modules/skirtor2016.py
View file @
8ac897ca
...
...
@@ -101,6 +101,15 @@ class SKIRTOR2016(SedModule):
self
.
oa
,
self
.
R
,
self
.
Mcl
,
self
.
i
)
# Modify the model so that the central source is isotropic
# Calculate the coverting factors disk emission
# (only for type-1 case, since disk emission in type-2 is zero)
# (since dust emission is normalized to unity; it remains same)
if
self
.
i
<=
(
90
-
self
.
oa
):
self
.
SKIRTOR2016
.
disk
*=
(
4
*
np
.
sin
(
self
.
oa
*
np
.
pi
/
180
)
**
2
+
3
*
np
.
sin
(
self
.
oa
*
np
.
pi
/
180
))
/
\
(
12
*
np
.
cos
(
self
.
i
*
np
.
pi
/
180
)
**
2
+
6
*
np
.
cos
(
self
.
i
*
np
.
pi
/
180
))
def
process
(
self
,
sed
):
"""Add the IR re-emission contributions
...
...
Write
Preview
Supports
Markdown
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