Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
cont_createmesh.cpp File Reference
#include "cddefines.h"
#include "rfield.h"
#include "iterations.h"
#include "dense.h"
#include "trace.h"
#include "opacity.h"
#include "geometry.h"
#include "continuum.h"
Include dependency graph for cont_createmesh.cpp:

Functions

STATIC void rfield_opac_alloc ()
 
void ContCreateMesh ()
 
void rfield_opac_zero (long lo, long ihi)
 

Function Documentation

◆ ContCreateMesh()

void ContCreateMesh ( )

set up continuum energy mesh if first call, otherwise reset to original mesh

References ASSERT, DEBUG_ENTRY, fprintf(), geometry, ioQQQ, iterations, MAX2, opac, rfield, rfield_opac_alloc(), rfield_opac_zero(), trace, and vzero().

Referenced by cloudy(), and ParseCompile().

Here is the call graph for this function:

◆ rfield_opac_alloc()

STATIC void rfield_opac_alloc ( )
Todo
3 consider making the fine opacity array a double. with a float, the opacity itself often becomes a denormalized number, it then becomes significant when multiplied by dr - can cause numerical noise. this is why the coarse opacity array is a double
Todo
1 set temp of 1e4K will be too coarse a line for PDRs where H2 line overlap is very important

References ASSERT, DEBUG_ENTRY, dense, lgRfieldAllocated, opac, rfield, STATIC, TotalInsanity(), and vzero().

Referenced by ContCreateMesh().

Here is the call graph for this function:

◆ rfield_opac_zero()

void rfield_opac_zero ( long lo,
long ihi )

zero out rfield arrays between certain limits, code in zero.c

References lgRfieldAllocated, opac, rfield, and vzero().

Referenced by ContCreateMesh(), ConvInitSolution(), and InitSimPostparse().

Here is the call graph for this function: