EcoliSimulator  2.0.1a
histogram_3d_gnuplotV2.cpp File Reference
#include <iostream>
#include <vector>
#include <fstream>
#include <cmath>
#include <system_error>
#include <thread>
#include "LoadBar.hpp"
#include "GlobalVariables.h"
#include "Funz_C.h"
#include <array>
#include "writeHistToFileMultiT.hpp"
#include "Funz_C_Par.h"
#include "constants.h"

Macros

#define max(a, b)   ( ((a) > (b)) ? (a) : (b) )
 
#define min(a, b)   ( ((a) < (b)) ? (a) : (b) )
 

Functions

void writeHistToFile (double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne, const int &cont_sim, const int &n_dx, const int &n_dy, const int &n_c, const double &min_x, const double &min_y, const double &dx, const double &dy, vector< vector< double > > &x, vector< vector< double > > &y, const int &n_x_min, const int &n_x_max, const int &n_y_min, const int &n_y_max, int &max_z)
 This function write the histogram of the density to file. More...
 
void writeFunzCToFile (double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne, const int cont_sim, const int n_dx, const int n_dy, const double min_x, const double min_y, const double dx, const double dy, const int n_x_min, const int n_x_max, const int n_y_min, const int n_y_max, double &maxC, const double Dt, Funz_C *f)
 This function write the histogram of the density to file. More...
 
double histogram_3D_gnuplotV2 (double max_x, double max_y, double min_x, double min_y, int n_dx, int n_dy, double dx, double dy, vector< vector< double > > &x, vector< vector< double > > &y, int n_c, int dim_col_t, int n_salti_colonne, Funz_C *f, double &maxC, int risp_Max, int cont_sim, string name_file_info)
 
double histogram_3D_gnuplotV2MultiThread (double max_x, double max_y, double min_x, double min_y, int n_dx, int n_dy, double dx, double dy, vector< vector< double > > &x, vector< vector< double > > &y, int n_c, int dim_col_t, int n_salti_colonne, Funz_C *f, double &maxC, int risp_Max, int cont_sim, string name_file_info)
 This is a variation of histogram_3D_gnuplotV2, where we use mutithread ... one thread create the histogram for the density, the other create the surface for the function c (if it is no_interaction mode). More...
 

Macro Definition Documentation

#define max (   a,
 
)    ( ((a) > (b)) ? (a) : (b) )
#define min (   a,
 
)    ( ((a) < (b)) ? (a) : (b) )

Function Documentation

double histogram_3D_gnuplotV2 ( double  max_x,
double  max_y,
double  min_x,
double  min_y,
int  n_dx,
int  n_dy,
double  dx,
double  dy,
vector< vector< double > > &  x,
vector< vector< double > > &  y,
int  n_c,
int  dim_col_t,
int  n_salti_colonne,
Funz_C f,
double &  maxC,
int  risp_Max,
int  cont_sim,
string  name_file_info 
)

Second version of histogram_3D_gnuplot

double histogram_3D_gnuplotV2MultiThread ( double  max_x,
double  max_y,
double  min_x,
double  min_y,
int  n_dx,
int  n_dy,
double  dx,
double  dy,
vector< vector< double > > &  x,
vector< vector< double > > &  y,
int  n_c,
int  dim_col_t,
int  n_salti_colonne,
Funz_C f,
double &  maxC,
int  risp_Max,
int  cont_sim,
string  name_file_info 
)

This is a variation of histogram_3D_gnuplotV2, where we use mutithread ... one thread create the histogram for the density, the other create the surface for the function c (if it is no_interaction mode).

void writeFunzCToFile ( double  delta_y_p,
double  delta_x_p,
int  dim_col_t,
int  n_salti_colonne,
const int  cont_sim,
const int  n_dx,
const int  n_dy,
const double  min_x,
const double  min_y,
const double  dx,
const double  dy,
const int  n_x_min,
const int  n_x_max,
const int  n_y_min,
const int  n_y_max,
double &  maxC,
const double  Dt,
Funz_C f 
)

This function write the histogram of the density to file.

void writeHistToFile ( double  delta_y_p,
double  delta_x_p,
int  dim_col_t,
int  n_salti_colonne,
const int &  cont_sim,
const int &  n_dx,
const int &  n_dy,
const int &  n_c,
const double &  min_x,
const double &  min_y,
const double &  dx,
const double &  dy,
vector< vector< double > > &  x,
vector< vector< double > > &  y,
const int &  n_x_min,
const int &  n_x_max,
const int &  n_y_min,
const int &  n_y_max,
int &  max_z 
)

This function write the histogram of the density to file.