28 cCoef = vector<double> (3,0.0);
29 bCoef = vector<double> (3,0.0);
33 cca = vector<double>(7);
34 ccb = vector<double>(5);
35 ccc = vector<double>(5);
36 ccd = vector<double>(5);
38 cca[0] = -6.58411371e+02;
39 cca[1] = 1.19518310e+03;
40 cca[2] = -8.21169900e+02;
41 cca[3] = 2.61583310e+02;
42 cca[4] = -3.38649746e+01;
43 cca[5] = -6.11440937e-01;
44 cca[6] = 1.01054351e+00;
58 ccd[0] = -1.98503860e-07;
59 ccd[1] = 1.31972798e-05;
60 ccd[2] = -3.21487789e-04;
61 ccd[3] = 3.44046508e-03;
62 ccd[4] = 9.85964172e-01;
180 for(
k=0;
k<
line->v.size();
k++)
189 for(
k=0;
k<
line->v.size();
k++) {
190 if(
line->v.at(
k)->var_name==
"pos" ||
line->v.at(
k)->var_name==
"posf")
continue;
382 Q.at(
i) = 0.25*
P.at(
i)*
P.at(
i)/
S;
410 if(
Etot < 0.0)
return false;
504 Q.at(
i) = 0.25*
P.at(
i)*
P.at(
i)/
S;
509 cCoef.at(0) = 0.5/
S * (-
P.at(0) + (
P.at(0)>0 ? 1.0 : -1.0)
512 cCoef.at(1) = 0.5/
S * (-
P.at(1) + (
P.at(1)>0 ? 1.0 : -1.0)
515 cCoef.at(2) = 0.5/
S * (-
P.at(2) + (
P.at(2)>0 ? 1.0 : -1.0)
601 if(
y >= y0 &&
y <= y0 +
L/3)
602 K.at(
i) =
y- (y0 + 3*(
y-y0));
603 else if(
y >= y0 +
L/3 &&
y <= y0 + 2*
L/3)
604 K.at(
i) =
y- (y0 + 2*
L - 3*(
y-y0));
605 else if(
y >= y0 + 2*
L/3 &&
y <= y0 +
L)
606 K.at(
i) =
y- (y0 + 3*(
y-y0)-2*
L);
int ngrd
number of grid cells
dv * posf
access as: posf->d[i], or posf->var_name, etc.
dv * pos
pointers to gas properties
meshManager * mesher
pointer to mesh manager object
param * pram
pointer to the parameters object
vector< double > d
the data
bool LperiodicEddy
a wrap-around eddy
double Pa
eddy acceptance probability
double esdp1
eddy size distribution parameters.
void fillKernel_planarAnalytic()
double rightEdge
right edge location of eddy
vector< double > cCoef
coefficient of K kernel
void init(domain *p_domn, domain *p_eddl)
void applyVelocityKernels(domain *line, const int iS, const int iE)
void computeEddyAcceptanceProb(const double dtSample)
domain * eddl
pointer to eddy line object
double invTauEddy
inverse eddy timescale
vector< double > bCoef
coefficient of J kernel
vector< double > ccd
polynomial coefficient arrays for cylindricalAnomalyHack
double eddySize
size of eddy
vector< double > dxc
\delta(x^cCoord) is prop. to cell "volume"
double leftEdge
left edge location of eddy
void set_kernel_coefficients()
vector< double > pos0
initial eddy cell locations, for kernel
domain * domn
pointer to domain object
bool eddyTau(const double Z_value, const double C)
void tripMap(domain *line, const int iS, int iE, const double C, const bool LsplitAtEddy=false)
vector< double > K
eddy kernel K
void sampleEddyPosition()
double eddyFavreAvgVelocity(const vector< double > &dxc)
void splitCell(const int isplt, const int nsplt, const vector< double > &cellFaces)
void setGridDxc(const domain *line, vector< double > &dxc, double C)
int cCoord
1 = planar, 2 = cylindrical, 3 = spherical
bool LPeEddy
flag to turn on potential energy for eddies (vertical domain)
bool LTMA
true for the triplet map TMA: 3 = vol segments; false for TMB: 3 equal length segments
double g
gravity (default -9.81)
bool Lspatial
spatial formulation if true
bool Lperiodic
periodic if true
double Lp
Most probable eddy size frac of domainLength.
double Lmax
Max eddy size frac of domainLength.
double C_param
Eddy frequency parameter.
double A_param
Energy Distribution parameter alpha.
bool LdoDL
flag to do the DL energy from the DL instability
bool LplanarTau
true for computing cylindrical/spherical tau_eddy using a planar formulation. If accepted,...
double umin_spatial
min u for spatial flows; used when kernels pull velocity
double Lmin
Min eddy size frac of domainLength.
Header file for class domain.
Header file for class eddy.