bur_brn.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "fof_gen.h"
#include "bur_brn.h"
#include "fof_util.h"
#include "fof_sgv.h"
#include "bur_bov.h"
#include "fof_lem.h"
#include "win_ccwf.h"
Include dependency graph for bur_brn.c:

Macros

#define eC_Line   250
 

Functions

double Min (double a, double b)
 
double Max (double a, double b)
 
int _ChkLimM (double d, double low, double hi)
 
int BRN_Run (char cr_LoadFN[], char cr_EmisFN[], float f_DufConPerCent, float f_ConHSFB_TPA, char cr_ErrMes[])
 
int Start (double dt, long now, long *ncalls, double *ad_Con)
 
void Step (double dt, double tin, double fid, long *ncalls, double *ad_Con)
 
int Summary (char cr_LoadFN[], char cr_ErrMes[])
 
void BRN_Init ()
 
int BRN_CheckData (char cr_ErrMes[])
 
void BRN_SetFireDat (long NumIter, double Fi, double Ti, double U, double D, double Tamb, double R0, double Dr, double Dt, double Wdf, double Dfm)
 
long loc (long k, long l)
 
long Nint (double input)
 
double ff (double x, double tpfi, double tpig)
 
double TIgnite (double tpdr, double tpig, double tpfi, double cond, double chtd, double fmof, double dend, double hbar)
 
void Arrays ()
 
double TempF (double q, double r)
 
void Sorter ()
 
void OverLaps ()
 
void HeatExchange (double dia, double tf, double ts, double *hfm, double *hbar, double cond, double *en)
 
double FireIntensity (double *ad_pcSmoCon)
 
double DryTime (double enu, double theta)
 
void Heat_Heading (FILE *fh)
 
void DuffBurn (double wdf, double dfm, double *dfi, double *tdf, float f_DufConPerCent, double *ad_Duf_CPTS)
 
double Get_Cons (double d_old, double d_new)
 
double Duff_CPTS (double *ad_Duf_ConTot, double d_Duf_CPT, double d_timeSec)
 
int ES_Calc (d_ES *a_ES, double d_WooLit, double d_Duff, double d_HSFB, double d_pcSmo, double d_time)
 
float ES_PM10F ()
 
float ES_PM25F ()
 
float ES_CH4F ()
 
float ES_COF ()
 
float ES_CO2F ()
 
float ES_NOXF ()
 
float ES_SOXF ()
 
float ES_PM10S ()
 
float ES_PM25S ()
 
float ES_CH4S ()
 
float ES_COS ()
 
float ES_CO2S ()
 
float ES_NOXS ()
 
float ES_SOXS ()
 
float ES_FlaDur ()
 
float ES_SmoDur ()
 
float ES_FlaCon ()
 
float ES_SmoCon ()
 
void ES_Init (d_ES *a_ES)
 
int EFM_Open (char cr_FN[])
 
void EFM_Close ()
 
int EFM_Write (d_ES *a_ES, double d_Time, double d_FirInt)
 
double pow2 (double input)
 
double func (double h, double theta)
 
float BRN_Intensity (float f_Con)
 
void Save_SGV (d_ES *a_ES, double d_time, double d_FirInt)
 
int Bur_ChkArgs (char cr_Line[])
 
void Bur_Error (char cr_Err[], char cr1[], char cr_Line[])
 
int BRN_ChkSwi (char cr[])
 
int CFF_ChkAll (d_CFF *a_CFF)
 
void CFF_Init (d_CFF *a_CFF)
 
void bstrupr (char cr[])
 
int BRN_SetFuel (int *aiX, char cr_SR[], float f_Load, float f_Moist, float f_Sigma)
 
int BRN_ReadInFil (char cr_FN[], char cr_Err[])
 

Variables

long ntimes
 
long number
 
double fi
 
double ti
 
double u
 
double d
 
double tamb
 
double ak
 
double r0
 
double dr
 
double dt
 
double wdf
 
double dfm
 
double wd0
 
double wg0
 
double wdry [MAXNO]
 
double ash [MAXNO]
 
double htval [MAXNO]
 
double fmois [MAXNO]
 
double dendry [MAXNO]
 
double sigma [MAXNO]
 
double cheat [MAXNO]
 
double condry [MAXNO]
 
double alfa [MAXNO]
 
double tpig [MAXNO]
 
double tchar [MAXNO]
 
double flit [MAXNO]
 
double fout [MAXNO]
 
double work [MAXNO]
 
long key [MAXNO]
 
double elam [MAXNO][MAXNO]
 
double alone [MAXNO]
 
double area [MAXNO]
 
double fint [MAXNO]
 
double xmat [MAXKL]
 
double tdry [MAXKL]
 
double tign [MAXKL]
 
double tout [MAXKL]
 
double wo [MAXKL]
 
double wodot [MAXKL]
 
double diam [MAXKL]
 
double ddot [MAXKL]
 
double qcum [MAXKL]
 
double tcum [MAXKL]
 
double acum [MAXKL]
 
double qdot [MAXKL][MXSTEP]
 
double gd_Fudge1
 
double gd_Fudge2
 
d_ES s_ES
 
FILE * fh_EFM
 

Macro Definition Documentation

#define eC_Line   250

Function Documentation

int _ChkLimM ( double  d,
double  low,
double  hi 
)

Here is the caller graph for this function:

void Arrays ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int BRN_CheckData ( char  cr_ErrMes[])

Here is the call graph for this function:

Here is the caller graph for this function:

int BRN_ChkSwi ( char  cr[])

Here is the caller graph for this function:

void BRN_Init ( void  )

Here is the caller graph for this function:

float BRN_Intensity ( float  f_Con)

Here is the caller graph for this function:

int BRN_ReadInFil ( char  cr_FN[],
char  cr_Err[] 
)

Here is the call graph for this function:

int BRN_Run ( char  cr_LoadFN[],
char  cr_EmisFN[],
float  f_DufConPerCent,
float  f_ConHSFB_TPA,
char  cr_ErrMes[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void BRN_SetFireDat ( long  NumIter,
double  Fi,
double  Ti,
double  U,
double  D,
double  Tamb,
double  R0,
double  Dr,
double  Dt,
double  Wdf,
double  Dfm 
)

Here is the caller graph for this function:

int BRN_SetFuel ( int *  aiX,
char  cr_SR[],
float  f_Load,
float  f_Moist,
float  f_Sigma 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void bstrupr ( char  cr[])

Here is the caller graph for this function:

int Bur_ChkArgs ( char  cr_Line[])

Here is the call graph for this function:

Here is the caller graph for this function:

void Bur_Error ( char  cr_Err[],
char  cr1[],
char  cr_Line[] 
)

Here is the caller graph for this function:

int CFF_ChkAll ( d_CFF a_CFF)

Here is the caller graph for this function:

void CFF_Init ( d_CFF a_CFF)

Here is the caller graph for this function:

double DryTime ( double  enu,
double  theta 
)

Here is the call graph for this function:

Here is the caller graph for this function:

double Duff_CPTS ( double *  ad_Duf_ConTot,
double  d_Duf_CPT,
double  d_timeSec 
)

Here is the caller graph for this function:

void DuffBurn ( double  wdf,
double  dfm,
double *  dfi,
double *  tdf,
float  f_DufConPerCent,
double *  ad_Duf_CPTS 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void EFM_Close ( void  )

Here is the caller graph for this function:

int EFM_Open ( char  cr_FN[])

Here is the call graph for this function:

Here is the caller graph for this function:

int EFM_Write ( d_ES a_ES,
double  d_Time,
double  d_FirInt 
)

Here is the caller graph for this function:

int ES_Calc ( d_ES a_ES,
double  d_WooLit,
double  d_Duff,
double  d_HSFB,
double  d_pcSmo,
double  d_time 
)

Here is the caller graph for this function:

float ES_CH4F ( void  )

Here is the caller graph for this function:

float ES_CH4S ( void  )

Here is the caller graph for this function:

float ES_CO2F ( void  )

Here is the caller graph for this function:

float ES_CO2S ( void  )

Here is the caller graph for this function:

float ES_COF ( void  )

Here is the caller graph for this function:

float ES_COS ( void  )

Here is the caller graph for this function:

float ES_FlaCon ( void  )

Here is the caller graph for this function:

float ES_FlaDur ( void  )

Here is the caller graph for this function:

void ES_Init ( d_ES a_ES)

Here is the caller graph for this function:

float ES_NOXF ( void  )

Here is the caller graph for this function:

float ES_NOXS ( void  )

Here is the caller graph for this function:

float ES_PM10F ( void  )

Here is the caller graph for this function:

float ES_PM10S ( void  )

Here is the caller graph for this function:

float ES_PM25F ( void  )

Here is the caller graph for this function:

float ES_PM25S ( void  )

Here is the caller graph for this function:

float ES_SmoCon ( void  )

Here is the caller graph for this function:

float ES_SmoDur ( void  )

Here is the caller graph for this function:

float ES_SOXF ( void  )

Here is the caller graph for this function:

float ES_SOXS ( void  )

Here is the caller graph for this function:

double ff ( double  x,
double  tpfi,
double  tpig 
)

Here is the caller graph for this function:

double FireIntensity ( double *  ad_pcSmoCon)

Here is the call graph for this function:

Here is the caller graph for this function:

double func ( double  h,
double  theta 
)

Here is the caller graph for this function:

double Get_Cons ( double  d_old,
double  d_new 
)

Here is the caller graph for this function:

void Heat_Heading ( FILE *  fh)

Here is the caller graph for this function:

void HeatExchange ( double  dia,
double  tf,
double  ts,
double *  hfm,
double *  hbar,
double  cond,
double *  en 
)

Here is the call graph for this function:

Here is the caller graph for this function:

long loc ( long  k,
long  l 
)

Here is the caller graph for this function:

double Max ( double  a,
double  b 
)

Here is the caller graph for this function:

double Min ( double  a,
double  b 
)

Here is the caller graph for this function:

long Nint ( double  input)

Here is the caller graph for this function:

void OverLaps ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

double pow2 ( double  input)

Here is the caller graph for this function:

void Save_SGV ( d_ES a_ES,
double  d_time,
double  d_FirInt 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Sorter ( void  )

Here is the caller graph for this function:

int Start ( double  dt,
long  now,
long *  ncalls,
double *  ad_Con 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Step ( double  dt,
double  tin,
double  fid,
long *  ncalls,
double *  ad_Con 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int Summary ( char  cr_LoadFN[],
char  cr_ErrMes[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

double TempF ( double  q,
double  r 
)

Here is the caller graph for this function:

double TIgnite ( double  tpdr,
double  tpig,
double  tpfi,
double  cond,
double  chtd,
double  fmof,
double  dend,
double  hbar 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

double acum[MAXKL]
double ak
double alfa[MAXNO]
double alone[MAXNO]
double area[MAXNO]
double ash[MAXNO]
double cheat[MAXNO]
double condry[MAXNO]
double d
double ddot[MAXKL]
double dendry[MAXNO]
double dfm
double diam[MAXKL]
double dr
double dt
double elam[MAXNO][MAXNO]
FILE* fh_EFM
double fi
double fint[MAXNO]
double flit[MAXNO]
double fmois[MAXNO]
double fout[MAXNO]
double gd_Fudge1
double gd_Fudge2
double htval[MAXNO]
long key[MAXNO]
long ntimes
long number
double qcum[MAXKL]
double qdot[MAXKL][MXSTEP]
double r0
d_ES s_ES
double sigma[MAXNO]
double tamb
double tchar[MAXNO]
double tcum[MAXKL]
double tdry[MAXKL]
double ti
double tign[MAXKL]
double tout[MAXKL]
double tpig[MAXNO]
double u
double wd0
double wdf
double wdry[MAXNO]
double wg0
double wo[MAXKL]
double wodot[MAXKL]
double work[MAXNO]
double xmat[MAXKL]