RadLib
|
Solovjov 2017 example 2. More...
#include <iostream>
#include <cmath>
#include "../../src/c++/rad_rcslw.h"
#include "../../src/c++/rad.h"
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 () |
Solovjov 2017 example 2.
Definition in file ex_S2.cc.
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.
RAD | input: rad object |
L | input: distance (m) between planes |
ntheta | input: number of ray angles |
T | input: vector of temperatures at each point (K) |
P | input: system pressure (Pa) |
fvsoot | input: vector of soot volume fractions at each point |
xH2O | input: vector of H2O mole fractions at each point |
xCO2 | input: vector of CO2 mole fractions at each point |
xCO | input: vector of CO mole fractions at each point |
xCH4 | input: vector of CH4 mole fractions at each point |
q | output: vector of heat fluxes at each point (W/m2) |
Q | output: vector of heat sources at each point (W/m3) |
x | output: vector of grid locations (m) |
xQ | output: vector of Q grid locations (m) |
LzeroIbc | input: bool true to make Ibc=0, false otherwise (default = false) |
Definition at line 92 of file parallel_planes.cc.