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 
21 class BoundaryCondition {
22 public:
23  Matrix2D<double> arr;
24  //bool initialized;
25 
26  // Parameters
28 
30  string calculationType;
32  string type;
33 
34  // functions
35  void MakeBoundaryCondition(Parameters_structure::BoundaryCondition parameters, Matrix2D<double> psd2DSlice, Matrix2D<double> gridElement1, Matrix2D<double> gridElement2);
36  void LoadBoundaryCondition(Parameters_structure::BoundaryCondition parameters, Matrix2D<double> gridElement1, Matrix2D<double> gridElement2);
37 
38  // Update the boundary conditions for current time step
39  void Update(int iteration, Matrix2D<double> PSD_2D_Slice, double time=-1, double dt=-1);
40 
41  // Time-dependent boundary
42  // 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
43  // Time means we need to change the boundary value at that time
44  vector <double> BC_change_time;
45  vector <int> BC_change_iteration;
46  vector <string> BC_filename;
47 
48 };
49 
50 #endif
General namespace.
Boundary conditions parameters structure.
Definition: Parameters.h:159
Holds upper and lower boundary conditions.
Definition: BoundaryConditions.h:26