VERB_code_2.3
|
#include <string>
#include <vector>
#include <map>
#include "../Matrix/Matrix.h"
#include "../VariousFunctions/variousConstants.h"
#include "../Logging/Output.h"
#include <sstream>
Go to the source code of this file.
Classes | |
struct | DxxParameters_structure |
Struct that holds various parameters to be used for Dxx. More... | |
struct | Parameters_structure |
Main parameters structure that holds smaller structures for individual parameters. More... | |
struct | Parameters_structure::General_Output_parameters |
General program output parameters structure. More... | |
struct | Parameters_structure::GridElement |
Grid element parameters structure. More... | |
struct | Parameters_structure::BoundaryCondition |
Boundary conditions parameters structure. More... | |
struct | Parameters_structure::PSD |
PSD parameters structure. More... | |
struct | Parameters_structure::PSD::GMRES_parameters_structure |
GMRES parameters structure. More... | |
struct | Parameters_structure::SL_structure |
Sources and losses parameters structure. More... | |
struct | Parameters_structure::Interpolation |
Interpolation parameters structure More... | |
Typedefs | |
typedef vector< double > | T_double_vector |
typedef vector of doubles | |
typedef vector< T_double_vector > | T_2d_double_vector |
typedef vector of vector of doubles | |
Functions | |
void | StrToVal (string input, double &place) |
void | StrToVal (string input, int &place) |
void | StrToVal (string input, string &place) |
void | StrToVal (string input, bool &place) |
void | load_1d (Matrix1D< double > &var, string filename, double dt, int var_size=0) |
void | load_2d (Matrix2D< double > &var, string filename, double dt, int var_size_x=0, int var_size_y=0) |
double & | T_2d_double_vector_add (T_2d_double_vector &v, size_t x, size_t y) |
bool | str2bool (string str) |
string | bool2str (bool b) |
All parameters, loaded from .ini file are described here in one structure. Each branch of the structure holds parameters for one object (class) initialization So, we need to pass one structure (branch of the main structure) to the classes constructors
Definition in file Parameters.h.
string bool2str | ( | bool | b | ) |
Converting boolean to string.
Definition at line 591 of file Parameters.cpp.
void load_1d | ( | Matrix1D< double > & | var, |
string | filename, | ||
double | dt, | ||
int | var_size | ||
) |
Read 1d matrix_array from txt-file and interpolate to out time-axis.
Definition at line 598 of file Parameters.cpp.
void load_2d | ( | Matrix2D< double > & | var, |
string | filename, | ||
double | dt, | ||
int | var_size_x, | ||
int | var_size_y | ||
) |
Read 2d matrix_array from txt-file and interpolate to out time-axis. NEED TO BE TESTED
Definition at line 642 of file Parameters.cpp.
bool str2bool | ( | string | str | ) |
Converting string to boolean.
Definition at line 583 of file Parameters.cpp.
void StrToVal | ( | string | input, |
double & | place | ||
) |
Converting string to double.
Definition at line 550 of file Parameters.cpp.
void StrToVal | ( | string | input, |
int & | place | ||
) |
Converting string to int.
Definition at line 558 of file Parameters.cpp.
void StrToVal | ( | string | input, |
string & | place | ||
) |
Converting string to string. Function StrToVal is used in template, so we need thad function to make template function works in case of string.
Definition at line 566 of file Parameters.cpp.
void StrToVal | ( | string | input, |
bool & | place | ||
) |
Converting string to bool.
Definition at line 574 of file Parameters.cpp.
double& T_2d_double_vector_add | ( | T_2d_double_vector & | v, |
size_t | x, | ||
size_t | y | ||
) |
function needs to operate with 2d vectors (add value) resizes vector to parameter length, return value at proper indices
&v | - typedef 2D vector of vector of doubles |
x | - length x |
y | - length y |
Definition at line 723 of file Parameters.cpp.