cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
parse_caseb.cpp
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2 * others. For conditions of distribution and use see copyright notice in license.txt */
3 /*ParseCaseB - parse the Case B command */
4 #include "cddefines.h"
5 #include "opacity.h"
6 #include "parse.h"
7 
8 /*ParseCaseB - parse the Case B command */
9 void ParseCaseB( char *chCard )
10 {
11  long int i;
12  bool lgEOL;
13 
14  DEBUG_ENTRY( "ParseTest()" );
15 
16  /* set flag saying we are doing case b */
17  opac.lgCaseB = true;
18 
19  /* scan in an optional optical depth in lya */
20  i = 5;
21  opac.tlamin = (realnum)FFmtRead(chCard,&i,INPUT_LINE_LENGTH,&lgEOL);
22  if( lgEOL )
23  {
24  /* set tau-La to 10**9 if not specified
25  opac.tlamin = 1e9;*/
26  /* >>chng 01 sep 24, change from 1e9 default to 1e5, to get
27  * more realistic conditions in HII region. Very large tau
28  * caused extreme Lya behavior */
29  opac.tlamin = 1e5;
30  }
31  else
32  {
33  opac.tlamin = (realnum)pow((realnum)10.f,opac.tlamin);
34  }
35 
36  /* Hummer and Storey case B; no collisions from n=1, 2 (usually in) */
37  if( nMatch("HUMM",chCard) )
38  {
40  }
41 
42  /* the NO PHOTOIONIZATION option, turns off excited state photoionization */
43  if( nMatch("O PH",chCard) )
44  {
45  opac.lgCaseB_no_photo = true;
46  }
47 
48  /* the NO PDEST option, turns off line destruction by background opacities */
49  if( nMatch("O PDE",chCard) )
50  {
51  /* turn off destruction off line destruction by background opacities */
52  opac.lgCaseB_no_pdest = true;
53  }
54  return;
55 }

Generated for cloudy by doxygen 1.8.4