cloudy trunk
Loading...
Searching...
No Matches
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 */
9double 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}
t_dense dense
Definition dense.cpp:24
double dense_fabden(double radius, double depth)
t_radius radius
Definition radius.cpp:5
t_rfield rfield
Definition rfield.cpp:8