34 vector<double> ScHips = {1.0};
35 bool performReaction =
false;
37 hips HiPS(C_param, forceTurb, nVar, ScHips, performReaction);
43 vector<vector<double>> var(nCFD);
44 var[0] = vector<double>(20, 0.0);
45 var[1] = vector<double>(40, 0.0);
46 var[2] = vector<double>(60, 0.0);
47 var[3] = vector<double>(80, 0.0);
49 vector<vector<double>> w(nCFD);
50 w[0] = vector<double>(20, 1.0/20);
51 w[1] = vector<double>(40, 1.0/40);
52 w[2] = vector<double>(60, 1.0/60);
53 w[3] = vector<double>(80, 1.0/80);
55 for(
int i=0; i<nCFD; i++)
56 for(
int k=var[i].size()/2; k<var[i].size(); k++)
63 for(
int iCell=0; iCell<nCFD; iCell++) {
65 cout << endl <<
"running HiPS in cell " << iCell << endl;
71 double domainLength = 1.0;
73 HiPS.
set_tree(nLevels, domainLength, tau0);
void set_tree(int nLevels_, double domainLength_, double tau0_)
Sets up the HiPS tree using explicitly specified tree parameters.
void calculateSolution(const double tRun, bool shouldWriteData=false)
Runs the HiPS simulation, advancing the solution using eddy events.
void set_varData(std::vector< double > &v, std::vector< double > &w, const std::string &varN)
Assigns variables, their corresponding weights, and names to the parcels in the HiPS tree.