We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce347f5 commit 6409285Copy full SHA for 6409285
1 file changed
include/DiskDensityFunc.H
@@ -21,11 +21,11 @@
21
creation.
22
23
"""
24
- a = 1.0 # Scale radius
25
- h = 0.2 # Scale height
26
- f = math.exp(-math.fabs(z)/h) # Prevent overflows
27
- sech = 2.0*f / (1.0 + f*f) #
28
- return math.exp(-R/a)*sech*sech/(4*math.pi*h*a*a)
+ a = 1.0 # Scale radius
+ h = 0.2 # Scale height
+ f = math.exp(-0.5*math.fabs(z)/h) # Prevent overflows
+ sech = 2.0*f / (1.0 + f*f) #
+ return math.exp(-R/a)*sech*sech/(8*math.pi*h*a*a)
29
30
--------------------------cut here--------------------------------
31
0 commit comments