My Project
BoundaryConditions.h
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:
28  Matrix2D<double> arr;
29  //bool initialized;
30 
31  // Parameters
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
string calculationType
Type: constant function/constant derivative.
Definition: BoundaryConditions.h:35
vector< string > BC_filename
If we change boundary conditions with time, this is the filename for the new boundary condition value...
Definition: BoundaryConditions.h:51
General namespace.
Boundary conditions parameters structure.
Definition: Parameters.h:159
string type
Initial type: how to set up boundary conditions. (Like read from a file, etc)
Definition: BoundaryConditions.h:37
vector< int > BC_change_iteration
If we change boundary conditions with time, this is the iteration when we need to change it...
Definition: BoundaryConditions.h:50
Holds upper and lower boundary conditions.
Definition: BoundaryConditions.h:26
vector< double > BC_change_time
If we change boundary conditions with time, this is the time when we need to change it...
Definition: BoundaryConditions.h:49