37#define _USE_MATH_DEFINES
40SimulationResults::SimulationResults(std::shared_ptr<SimulationParameter> simPara) :
ResultsImp(simPara->getL0())
42 this->xNodes = simPara->getLx();
44 this->zNodes = simPara->getLz();
45 this->numberOfNodes = xNodes*yNodes*zNodes;
47 this->numberOfTimeSteps = 0;
55void SimulationResults::addTimeStep(
unsigned int timeStep,
unsigned int time, std::vector<unsigned int> level, std::vector<double>
x, std::vector<double>
y, std::vector<double>
z, std::vector<double> vx, std::vector<double> vy, std::vector<double> vz, std::vector<double> press, std::vector<double> rho)
58 this->time.push_back(
time);
62 this->vx.push_back(
vx);
63 this->vy.push_back(
vy);
64 this->vz.push_back(
vz);
65 this->press.push_back(
press);
66 this->rho.push_back(
rho);
67 this->level.push_back(
level);
unsigned int numberOfTimeSteps
std::vector< std::vector< double > > z
std::vector< std::vector< double > > rho
std::vector< std::vector< unsigned int > > level
std::vector< std::vector< double > > vy
std::vector< std::vector< double > > y
std::vector< std::vector< double > > vz
std::vector< std::vector< double > > x
std::vector< std::vector< double > > vx
std::vector< std::vector< double > > press
std::vector< unsigned int > timeStep
void addTimeStep(unsigned int timeStep, unsigned int time, std::vector< unsigned int > level, std::vector< double > x, std::vector< double > y, std::vector< double > z, std::vector< double > vx, std::vector< double > vy, std::vector< double > vz, std::vector< double > press, std::vector< double > rho)
static std::shared_ptr< SimulationResults > getNewInstance(std::shared_ptr< SimulationParameter > simPara)