RadLib
Loading...
Searching...
No Matches
ex_S2.cc File Reference

Solovjov 2017 example 2. More...

#include <iostream>
#include <cmath>
#include "../../src/c++/rad_rcslw.h"
#include "../../src/c++/rad.h"
Include dependency graph for ex_S2.cc:

Go to the source code of this file.

Functions

void parallel_planes (rad *RAD, const double L, const int ntheta, const vector< double > &T, const double P, const vector< double > &fvsoot, const vector< double > &xH2O, const vector< double > &xCO2, const vector< double > &xCO, const vector< double > &xCH4, vector< double > &q, vector< double > &Q, vector< double > &x, vector< double > &xQ, const bool LzeroIbc=false)
 
int main ()
 

Detailed Description

Solovjov 2017 example 2.

Definition in file ex_S2.cc.

Function Documentation

◆ parallel_planes()

void parallel_planes ( rad RAD,
const double  L,
const int  ntheta,
const vector< double > &  T,
const double  P,
const vector< double > &  fvsoot,
const vector< double > &  xH2O,
const vector< double > &  xCO2,
const vector< double > &  xCO,
const vector< double > &  xCH4,
vector< double > &  q,
vector< double > &  Q,
vector< double > &  x,
vector< double > &  xQ,
const bool  LzeroIbc = false 
)

Compute radiative heat flux (q) and volumetric heat source (Q) profiles between parallel planes. Solution using simple ray tracing. Pass in T, P, composition profiles on equally spaced points including boundaries.

Parameters
RADinput: rad object
Linput: distance (m) between planes
nthetainput: number of ray angles
Tinput: vector of temperatures at each point (K)
Pinput: system pressure (Pa)
fvsootinput: vector of soot volume fractions at each point
xH2Oinput: vector of H2O mole fractions at each point
xCO2input: vector of CO2 mole fractions at each point
xCOinput: vector of CO mole fractions at each point
xCH4input: vector of CH4 mole fractions at each point
qoutput: vector of heat fluxes at each point (W/m2)
Qoutput: vector of heat sources at each point (W/m3)
xoutput: vector of grid locations (m)
xQoutput: vector of Q grid locations (m)
LzeroIbcinput: bool true to make Ibc=0, false otherwise (default = false)

Definition at line 92 of file parallel_planes.cc.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 30 of file ex_S2.cc.

Here is the call graph for this function: