33 d.at(i) =
d.at(i-1) + dx;
49 const vector<double> &cellFaces) {
51 d.insert(
d.begin() + isplt+1, nsplt, 0.0 );
52 for(
int i=isplt+1, j=1; i<=isplt+nsplt; i++, j++)
53 d.at(i) = cellFaces.at(j);
75 const bool LconstVolume) {
77 d.erase(
d.begin() + imrg+1);
89 dxc.at(imrg) = (m1+m2)/
domn->
rho->
d.at(imrg);
265 d.assign(domn_data.begin()+i1, domn_data.begin()+i2+2 );
267 d.assign(domn_data.begin()+i1, domn_data.end()-1);
268 double idmb =
d.size();
269 d.insert(
d.end(), domn_data.begin(), domn_data.begin()+i2+2 );
270 for(
int i=idmb; i<
d.size(); i++)
int ngrd
number of grid cells
map< string, dv * > varMap
dv * pos
pointers to gas properties
int ngrdf
number of grid cell faces = ngrd+1
meshManager * mesher
pointer to mesh manager object
domain * domn
(for one domain to point to another (eddl))
param * pram
pointer to the parameters object
virtual void setDvFromRegion(const int i1, const int i2)
virtual void merge2cells(const int imrg, const double m2, const double m1, const bool LconstVolume=false)
virtual void splitCell(const int isplt, const int nsplt, const vector< double > &cellFaces)
vector< double > d
the data
bool L_transported
flag true if var is transported
string var_name
name of variable
bool L_output
flag true if included in output
virtual void merge2cells(const int imrg, const double m2, const double m1, const bool LconstVolume=false)
domain * domn
pointer to domain object (parent)
void setGridFromDxc(const vector< double > &dxc2)
void setGridDxc(const domain *line, vector< double > &dxc, double C)
int cCoord
1 = planar, 2 = cylindrical, 3 = spherical
double domainLength
length of domain (m)
bool Lspatial
spatial formulation if true
double xDomainCenter
position of the center of the domain
string bcType
OUTFLOW, PERIODIC, WALL, WALL_OUT.
Header file for class domain.
Header file for class dv_posf.