cloudy trunk
Loading...
Searching...
No Matches
grains.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void GrainDrive (void)
void GrainDrift (void)
void GrainZero (void)
void GrainStartIter (void)
void GrainRestartIter (void)
void SetNChrgStates (long)
void GrainsInit (void)
void GrainMakeDiffuse (void)
void qheat (vector< double > &, vector< double > &, long *, size_t)
void InitEnthalpy (void)
void mie_write_opc (const char *, const char *, long int)
void mie_read_opc (const char *, const GrainPar &)
void gauss_init (long int, double, double, const vector< double > &, const vector< double > &, vector< double > &, vector< double > &)
void gauss_legendre (long int, vector< double > &, vector< double > &)
void find_arr (double, const vector< double > &, long int, long int *, bool *)

Function Documentation

◆ find_arr()

void find_arr ( double x,
const vector< double > & xa,
long int n,
long int * ind,
bool * lgOutOfBounds )

find index ind such that min(xa[ind],xa[ind+1]) <= x <= max(xa[ind],xa[ind+1]). xa is assumed to be strictly monotically increasing or decreasing. if x is outside the range spanned by xa, lgOutOfBounds is raised and ind is set to -1 n is the number of elements in xa.

Parameters
x
xa[]
n
[out]*ind
[out]*lgOutOfBounds

Definition at line 4563 of file grains_mie.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, max(), min(), and sign3().

Referenced by init_eps(), mie_calc_ial(), mie_cs(), size_distr(), and tbl_fun().

Here is the call graph for this function:

◆ gauss_init()

void gauss_init ( long int nn,
double xbot,
double xtop,
const vector< double > & x,
const vector< double > & a,
vector< double > & rr,
vector< double > & ww )

set up Gaussian quadrature for arbitrary interval

Parameters
nn
xbot
xtop
x[]
a[]
rr[]
ww[]

Definition at line 4425 of file grains_mie.cpp.

References DEBUG_ENTRY.

Referenced by DebyeDeriv(), and mie_integrate().

◆ gauss_legendre()

void gauss_legendre ( long int nn,
vector< double > & x,
vector< double > & a )

set up abscissas and weights for Gauss-Legendre intergration of arbitrary even order

Parameters
nn
x[]
a[]

Definition at line 4453 of file grains_mie.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, pow2(), and SAFETY.

Referenced by DebyeDeriv(), and mie_integrate().

Here is the call graph for this function:

◆ GrainDrift()

void GrainDrift ( void )

GrainDrift computes grains drift velocity

Definition at line 4884 of file grains.cpp.

References ASSERT, BOLTZMANN, DEBUG_ENTRY, dense, EN1RYD, gv, ioQQQ, ipHELIUM, ipHYDROGEN, phycon, POW2, POW3, rfield, SPEEDLIGHT, TE1RYD, and trace.

Referenced by ConvPresTempEdenIoniz().

◆ GrainDrive()

void GrainDrive ( void )

GrainDrive main routine to converge grains thermal solution

Definition at line 1591 of file grains.cpp.

References chrg2pot(), conv, DEBUG_ENTRY, dense, EVRYD, fp_equal(), GrainChargeTemp(), GrainUpdateRadius1(), GrainUpdateRadius2(), gv, hmi, ioQQQ, ipHYDROGEN, LIMELM, nCalledGrainDrive, nzone, phycon, SDIV(), thermal, and trace.

Referenced by ConvBase(), and mole_h2_grain_form().

Here is the call graph for this function:

◆ GrainMakeDiffuse()

void GrainMakeDiffuse ( void )

main routine for generating the grain diffuse emission

Definition at line 170 of file grains_qheat.cpp.

References ASSERT, CONSERV_TOL, DEBUG_ENTRY, dense, EN1RYD, FR1RYD, gv, hmi, ipHYDROGEN, lgAbort, MAX2, NQGRID, PI4, POW2, qheat(), rfield, SPEEDLIGHT, STRG_CAR, STRG_SIL, TE1RYD, thermal, and TotalInsanity().

Referenced by RT_diffuse().

Here is the call graph for this function:

◆ GrainRestartIter()

void GrainRestartIter ( void )

this routine is called by IterRestart()

Definition at line 551 of file grains.cpp.

References DEBUG_ENTRY, and gv.

Referenced by IterRestart().

◆ GrainsInit()

◆ GrainStartIter()

void GrainStartIter ( void )

this routine is called by IterStart()

Definition at line 513 of file grains.cpp.

References DEBUG_ENTRY, and gv.

Referenced by IterStart().

◆ GrainZero()

void GrainZero ( void )

this routine is called by zero(), so it should contain initializations that need to be done every time before the input lines get parsed

Definition at line 500 of file grains.cpp.

References DEBUG_ENTRY, and gv.

Referenced by zero().

◆ InitEnthalpy()

void InitEnthalpy ( void )

initialize interpolation arrays for grain enthalpy

Definition at line 2482 of file grains_qheat.cpp.

References DEBUG_ENTRY, GRAIN_TMIN, gv, log_integral(), NDEMS, spline(), tlim, and uderiv().

Referenced by GrainsInit().

Here is the call graph for this function:

◆ mie_read_opc()

void mie_read_opc ( const char * chFile,
const GrainPar & gp )

◆ mie_write_opc()

void mie_write_opc ( const char * rfi_file,
const char * szd_file,
long int nbin )

◆ qheat()

void qheat ( vector< double > & ,
vector< double > & ,
long * ,
size_t  )

main routine for quantum heating

Referenced by mole_h2_grain_form().

◆ SetNChrgStates()

void SetNChrgStates ( long nChrg)

this routine is called by ParseSet()

Definition at line 570 of file grains.cpp.

References ASSERT, DEBUG_ENTRY, gv, and NCHU.

Referenced by ParseSet().