EcoliSimulator  2.0.1a
Funz_C_Par Class Reference

Class for the Ligand that allows change of the parameters. More...

#include <Funz_C_Par.h>

Inheritance diagram for Funz_C_Par:
Funz_C Funz_C_Inter

Public Member Functions

 Funz_C_Par ()
 
 Funz_C_Par (const Funz_C_Par &f)
 
double new_F_C (double t, std::array< double, 2 > x)
 
void set_parameter ()
 
void print_info (std::ofstream &file_save)
 
void info_stat (std::ofstream &file_stat)
 
void read_info_stat (int fchange_par, std::ifstream &file_stat, std::streampos &posizion)
 
- Public Member Functions inherited from Funz_C
 Funz_C ()
 
 Funz_C (const Funz_C &f)
 
void reset_parameter ()
 
virtual void get_coordinate (std::array< double, 2 > x, int *n)
 
virtual void get_coordinate1 (std::array< double, 2 > x, int *n)
 
virtual void all_informations (std::ofstream &file_save)
 
virtual void print_fc (std::ofstream &file_save, double t)
 
virtual void preview_F_C ()
 
void gnuplotFunC (double max_fc, double dt, int n_frames)
 

Public Attributes

double C_0
 
double C_1
 
double C_2
 
double C_3
 
- Public Attributes inherited from Funz_C
int change_par
 
double D_c
 
double max_x
 
double min_x
 
double max_y
 
double min_y
 
double degradation_rate
 
int n_x
 
int n_y
 
double dx
 
double dy
 
int interact
 
double ** f_c
 
double ** q_c
 

Additional Inherited Members

- Static Public Attributes inherited from Funz_C
static int num_funz = 9
 

Detailed Description

Class for the Ligand that allows change of the parameters.

It's like Funz_C, but allows to change the parameter of the function NOTE: If you add new functions, you should add the same in Funz_C::print_info

  • case 0:

0- Type Function: Gaussian $$c(t,x):= C_10*exp(-x^2/C_00)*(R<=C_20) = 6*exp(-pow(R,2)/10)*(R<=100)$$"

  • case 1:

1- Type Function: smoothed Jump $$c(t,x):= C_01+C_11*(t>C_21) = 1+2*(t>15)$$

  • case 2:

2- Type Function: Dancing Sombrero $$c(t,x):= ... $$

break;

  • case 3:

3- Type Function: Jump up/down $$c(t,x):= 1+C_13*(t<=C_03)+C_23*(t>C_03)*(t<=C_03+1)*pow(t-C_03,2)+C_23*(t>C_03+1)$$

  • case 4:

4- Type Function: -----—> Maybe we should change this function Cambiare la funzione !! $$c(t,x):= 1+C_14*(t<C_04)+(t>=C_14)*(t<C_24)+C_34*(t>C_24)$$

  • case 5:

5- Type Function: Half-plane-Linear $$c(t,x):= C_05*(1+max(C_15,x[0])/C_15) $$

break;

  • case 6: 6- Type Function: Half-plane-Exponential $$c(t,x):= C_06*exp(x[0]/C_16)$$
  • case 7:

    7- Type Function: time-Exponential $$c(t,x):= C_07*exp(C_27*t)$$

  • default:

Otherwise Type Function: $$c(t,x):= C_01

The are of the experiment is
$(x_{min},x_{max})$
$(y_{min},y_{max})$

Constructor & Destructor Documentation

Funz_C_Par::Funz_C_Par ( )
Funz_C_Par::Funz_C_Par ( const Funz_C_Par f)

Member Function Documentation

void Funz_C_Par::info_stat ( std::ofstream &  file_stat)
virtual

save info for the statistical analysis

Reimplemented from Funz_C.

double Funz_C_Par::new_F_C ( double  t,
std::array< double, 2 >  x 
)
virtual

return the value of Ligand concentration in the point x

Reimplemented from Funz_C.

void Funz_C_Par::print_info ( std::ofstream &  file_save)
virtual

similar to all_information

Reimplemented from Funz_C.

void Funz_C_Par::read_info_stat ( int  fchange_par,
std::ifstream &  file_stat,
std::streampos &  posizion 
)
virtual

read parameters from file

Reimplemented from Funz_C.

void Funz_C_Par::set_parameter ( )
virtual

set parameters of the ligand concentration It call the base function
if the user wants to change parameters, the

Reimplemented from Funz_C.

Member Data Documentation

double Funz_C_Par::C_0

parameters in the model: see general information

double Funz_C_Par::C_1

parameters in the model: see general information

double Funz_C_Par::C_2

parameters in the model: see general information

double Funz_C_Par::C_3

parameters in the model: see general information


The documentation for this class was generated from the following files: