9#include "radiation/rad_opthin.h"
10#include "radiation/rad_twoflux.h"
11#include "radiation/rad_fvdom.h"
47 *
domn->
io->
ostrm << endl <<
"ERROR: radSolveType not recognized or not consitent with cCoord" << endl;
84 vector<vector<double> > xMoleSp(
domn->
ngrd, vector<double>(
nspc));
88 domn->
gas->getMoleFractions(&xMoleSp.at(i).at(0));
95 for(
int i=iS; i<=iE; i++)
112 const vector<double> &dxc){
122 for(
int i=0,ip=1; i<
domn->
ngrd; i++, ip++)
140 const vector<double> &dxc){
145 vector<double> tcond(
domn->
ngrd, 0.0);
146 vector<double> tcond_f(
domn->
ngrdf, 0.0);
147 vector<vector<double> > hsp(
nspc, vector<double>(
domn->
ngrd));
148 vector<double> hh(
nspc);
152 tcond.at(i) =
domn->
tran->thermalConductivity();
154 domn->
gas->getEnthalpy_RT(&hh.at(0));
155 for (
int k=0; k<
nspc; k++)
156 hsp.at(k).at(i) = hh.at(k) *
domn->
temp->
d.at(i) * GasConstant /
domn->
gas->molecularWeight(k);
166 for (
int i=1, im=0; i <
domn->
ngrd; i++, im++)
185 cout << endl <<
"ERROR: hWallBCtype unknown" << endl;
199 cout << endl <<
"ERROR: hWallBCtype unknown" << endl;
209 *
domn->
io->
ostrm << endl <<
"ERROR: bcType not recognized in dv_enth::setFlux" << endl;
221 for(
int k=0; k<
nspc; k++) {
223 hjsum += h_f *
domn->
ysp[k]->flux.at(i);
int ngrd
number of grid cells
domaincase * domc
domaincase class: set specific vars...
IdealGasPhase * gas
pointer to cantera thermochemistry object (reaction rates, Cp, etc.)
Transport * tran
pointer to cantera transport object (viscosity, diffusivity, etc.)
dv * posf
access as: posf->d[i], or posf->var_name, etc.
int ngrdf
number of grid cell faces = ngrd+1
inputoutput * io
pointer to input/output object
vector< dv * >::iterator ysp
access as: ysp=v.begin(), (*ysp)->d[i] or (*(ysp+k))->d[i], or ysp[k]->d[i].
param * pram
pointer to the parameters object
virtual void setGasStateAtPt(const int &ipt)
void setFlux(const vector< double > &gf, const vector< double > &dxc)
virtual void getRhsMix(const vector< double > &gf, const vector< double > &dxc)
virtual void getRhsSrc(const int ipt=-1)
vector< double > d
the data
virtual void interpVarToFacesHarmonic(const vector< double > &cvar, vector< double > &fvar)
bool L_transported
flag true if var is transported
bool LagSrc
flag to lag source term in implicit solve (initially put in for enthalpy radiation)
string var_name
name of variable
bool L_output
flag true if included in output
vector< double > rhsMix
the data
virtual double linearInterpToFace(const int &iface, const vector< double > &vec)
domain * domn
pointer to domain object (parent)
vector< double > rhsSrc
the data
int cCoord
1 = planar, 2 = cylindrical, 3 = spherical
double TBChi
Required if hWallBCtype = ISOTHERMAL.
bool Lspatial
spatial formulation if true
double TBClo
Required if hWallBCtype = ISOTHERMAL.
string hWallBCtype
ADIABATIC or ISOTHERMAL.
string radSolveType
OPTHIN, TWOFLUX, FVDOM.
double pres
initial pressure (Pa)
string bcType
OUTFLOW, PERIODIC, WALL, WALL_OUT.
Header file for class domain.
Header file for class dv_enth.