80 const vector<double> &dxc){
93 for (
int i=1, im=0; i <
domn->
ngrd; i++, im++)
94 flux.at(i) = -gf.at(i) * dvisc_f.at(i)*(
d.at(i) -
d.at(im));
105 flux.at(0) = -gf.at(0) * dvisc_f.at(0) * (
d.at(0) - bclo);
110 flux.at(0) = -gf.at(0) * dvisc_f.at(0) * (
d.at(0) - bclo);
115 flux.at(0) = -gf.at(0) * dvisc_f.at(0) * (
d.at(0) -
d.at(im));
119 *
domn->
io->
ostrm << endl <<
"ERROR: bcType not recognized in dv_uvw::getRhsMix" << endl;
125 for(
int i=0,ip=1; i<
domn->
ngrd; i++, ip++)
int ngrd
number of grid cells
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
param * pram
pointer to the parameters object
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
string var_name
name of variable
bool L_output
flag true if included in output
vector< double > rhsMix
the data
domain * domn
pointer to domain object (parent)
vector< double > rhsSrc
the data
int cCoord
1 = planar, 2 = cylindrical, 3 = spherical
double vBChi
Dirichlet velocity boundary condition.
double g
gravity (default -9.81)
double uBChi
Dirichlet velocity boundary condition.
bool Lspatial
spatial formulation if true
double vBClo
Dirichlet velocity boundary condition.
double dPdx
initial pressure gradient (Pa/m)
double uBClo
Dirichlet velocity boundary condition.
bool Lbuoyant
flag to turn on bouyancy (horizontal domain)
string bcType
OUTFLOW, PERIODIC, WALL, WALL_OUT.
double wBClo
Dirichlet velocity boundary condition.
double wBChi
Dirichlet velocity boundary condition.
Header file for class domain.
Header file for class dv_uvw.