VERB_code_2.3
BoundaryConditions.h
Go to the documentation of this file.
1 
11 #ifndef BoundaryConditions_H
12 #define BoundaryConditions_H
13 
14 #include <string>
15 #include "../Matrix/Matrix.h"
16 #include "../Parameters/Parameters.h"
17 #include "../VariousFunctions/variousFunctions.h"
18 
19 using namespace std;
20 
27 public:
30 
33 
37  string type;
38 
39  // functions
40  void MakeBoundaryCondition(Parameters_structure::BoundaryCondition parameters, Matrix2D<double> psd2DSlice, Matrix2D<double> gridElement1, Matrix2D<double> gridElement2);
41  void LoadBoundaryCondition(Parameters_structure::BoundaryCondition parameters, Matrix2D<double> gridElement1, Matrix2D<double> gridElement2);
42 
43  // Update the boundary conditions for current time step
44  void Update(int iteration, Matrix2D<double> PSD_2D_Slice, double time=-1, double dt=-1);
45 
46  // Time-dependent boundary
47  // A file with two columns is used: first column - is a time, second - filename of a file with an array of values for the boundary at a boundary
48  // Time means we need to change the boundary value at that time
49  vector <double> BC_change_time;
50  vector <int> BC_change_iteration;
51  vector <string> BC_filename;
52 
53 };
54 
55 #endif
vector< string > BC_filename
If we change boundary conditions with time, this is the filename for the new boundary condition value...
string calculationType
Type: constant function/constant derivative.
Matrix2D< double > arr
2D matrix of boundary conditions
vector< int > BC_change_iteration
If we change boundary conditions with time, this is the iteration when we need to change it...
Boundary conditions parameters structure.
Definition: Parameters.h:171
string type
Initial type: how to set up boundary conditions. (Like read from a file, etc)
vector< double > BC_change_time
If we change boundary conditions with time, this is the time when we need to change it...
Holds upper and lower boundary conditions.
Parameters_structure parameters
Parameters structure, with all parameters from the parameters.ini file. The default parameters define...
Definition: Main.cpp:187
Parameters_structure::BoundaryCondition BC_parameters
Boundary condition parameters.