cloudy
trunk
Loading...
Searching...
No Matches
source
dense_fabden.cpp
Go to the documentation of this file.
1
/* This file is part of Cloudy and is copyright (C)1978-2013 by Gary J. Ferland and
2
* others. For conditions of distribution and use see copyright notice in license.txt */
3
/*dense_fabden called by dlaw command, returns density for any density law */
4
#include "
cddefines.h
"
5
#include "
rfield.h
"
6
#include "
dense.h
"
7
8
/*dense_fabden called by dlaw command, returns density for any density law */
9
double
dense_fabden
(
double
radius
,
10
double
depth)
11
{
12
double
fabden_v = pow(10.,
dense
.DensityLaw[0]);
13
if
(
rfield
.lgUSphON )
14
fabden_v *= pow(
radius
/
rfield
.rstrom,
dense
.DensityLaw[1]);
15
else
16
fabden_v *= pow(depth/
rfield
.rstrom,
dense
.DensityLaw[1]);
17
18
return
fabden_v;
19
}
cddefines.h
dense
t_dense dense
Definition
dense.cpp:24
dense.h
dense_fabden
double dense_fabden(double radius, double depth)
Definition
dense_fabden.cpp:9
radius
t_radius radius
Definition
radius.cpp:5
rfield
t_rfield rfield
Definition
rfield.cpp:8
rfield.h
Generated by
1.14.0