#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 | DiffusionCoefficientParamStructure |
Diffusion coefficient parameters. More... | |
struct | ParamStructure |
Main parameters structure. More... | |
struct | ParamStructure::General_Output_parameters |
General programm output parameters structure. More... | |
struct | ParamStructure::GridElement |
Grid element parameters structure. More... | |
struct | ParamStructure::BoundaryCondition |
Bundary conditions parameters structure. More... | |
struct | ParamStructure::PSD |
PSD parameters structure. More... | |
struct | ParamStructure::SL |
Sources and losses. More... | |
struct | ParamStructure::Interpolation |
Interpolation parameters structure More... | |
Typedefs | |
typedef std::vector < DiffusionCoefficientParamStructure > | DiffusionCoefficientParamStructureList |
List of diffusion coefficient parameters. | |
Functions | |
void | StrToVal (string input, double &place) |
Converting string to double. | |
void | StrToVal (string input, int &place) |
Converting string to int. | |
void | StrToVal (string input, string &place) |
Converting string to string. | |
void | StrToVal (string input, bool &place) |
Converting string to bool. | |
void | load_1d (Matrix1D< double > &var, string filename, double dt, int var_size=0) |
Read 1d matrix_array from txt-file and interpolate to out time-axis. | |
bool | str2bool (string str) |
Converting string to boolean. | |
string | bool2str (bool b) |
Converting boolean to string. |
Each brunch of the structure holds parameters for one oblect (class) intitialization So, we need to pass one structure (brunch of the main structure) to the classes cunstructors
Definition in file Parameters.h.
typedef std::vector<DiffusionCoefficientParamStructure> DiffusionCoefficientParamStructureList |
string bool2str | ( | bool | b | ) |
void load_1d | ( | Matrix1D< double > & | var, | |
string | filename, | |||
double | dt, | |||
int | var_size = 0 | |||
) |
Read 1d matrix_array from txt-file and interpolate to out time-axis.
Definition at line 529 of file Parameters.cpp.
References Matrix1D< T >::AllocateMemory(), i, and Matrix1D< T >::size_x.
Referenced by ParamStructure::Load_parameters().
bool str2bool | ( | string | str | ) |
void StrToVal | ( | string | input, | |
bool & | place | |||
) |
Converting string to bool.
Definition at line 505 of file Parameters.cpp.
References str2bool().
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 497 of file Parameters.cpp.
void StrToVal | ( | string | input, | |
int & | place | |||
) |
void StrToVal | ( | string | input, | |
double & | place | |||
) |
Converting string to double.
Definition at line 481 of file Parameters.cpp.
Referenced by ReadFromFile().