cloudy trunk
Loading...
Searching...
No Matches
cont_createmesh.cpp File Reference
#include "cddefines.h"
#include "rfield.h"
#include "iterations.h"
#include "physconst.h"
#include "dense.h"
#include "trace.h"
#include "opacity.h"
#include "ipoint.h"
#include "geometry.h"
#include "continuum.h"
Include dependency graph for cont_createmesh.cpp:

Go to the source code of this file.

Functions

STATIC void read_continuum_mesh (void)
STATIC void fill (double fenlo, double fenhi, double resolv, long int *n0, long int *ipnt, bool lgCount)
STATIC void rfield_opac_malloc (void)
STATIC void ChckFill (void)
void ContCreateMesh (void)
void rfield_opac_zero (long lo, long ihi)

Function Documentation

◆ ChckFill()

STATIC void ChckFill ( void )

Definition at line 362 of file cont_createmesh.cpp.

References ASSERT, cdEXIT, continuum, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, ipoint(), rfield, and STATIC.

Referenced by ContCreateMesh().

Here is the call graph for this function:

◆ ContCreateMesh()

void ContCreateMesh ( )

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

Definition at line 38 of file cont_createmesh.cpp.

References cdEXIT, ChckFill(), continuum, DEBUG_ENTRY, EXIT_FAILURE, fill(), geometry, ioQQQ, iterations, MALLOC, MAX2, NCELL, opac, read_continuum_mesh(), rfield, rfield_opac_malloc(), rfield_opac_zero(), and trace.

Referenced by cloudy(), GridGatherInCloudy(), and ParseCompile().

Here is the call graph for this function:

◆ fill()

STATIC void fill ( double fenlo,
double fenhi,
double resolv,
long int * n0,
long int * ipnt,
bool lgCount )

Definition at line 255 of file cont_createmesh.cpp.

References ASSERT, cdEXIT, continuum, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, MAX2, rfield, ShowMe(), STATIC, and trace.

Referenced by ContCreateMesh(), and zero().

Here is the call graph for this function:

◆ read_continuum_mesh()

STATIC void read_continuum_mesh ( void )

Definition at line 658 of file cont_createmesh.cpp.

References cdEXIT, continuum, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), INPUT_LINE_LENGTH, ioQQQ, MALLOC, open_data(), read_whole_line(), STATIC, and trace.

Referenced by ContCreateMesh().

Here is the call graph for this function:

◆ rfield_opac_malloc()

STATIC void rfield_opac_malloc ( void )
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

Definition at line 439 of file cont_createmesh.cpp.

References ASSERT, ATOMIC_MASS_UNIT, BOLTZMANN, DEBUG_ENTRY, dense, lgRfieldMalloced, LIMELM, MALLOC, NCELL, opac, rfield, SPEEDLIGHT, STATIC, and TotalInsanity().

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

Definition at line 802 of file cont_createmesh.cpp.

References lgRfieldMalloced, opac, and rfield.

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