VERB_code_2.3
Grid.h
Go to the documentation of this file.
1 
8 #ifndef Grid_H
9 #define Grid_H
10 
11 #include <string>
12 #include "../Matrix/Matrix.h"
13 #include "../Parameters/Parameters.h"
14 #include "../VariousFunctions/variousFunctions.h"
15 #include "Grid.h"
16 #include "BoundaryConditions.h"
17 
18 using namespace std;
19 
20 
28 class GridElement {
29 public:
31 
34 
37 
39  int size;
40 
41  // other functions
42  //GridElement Kfunc(); // return NEW Grid Element equal to Kfunc of present
43  void Kfunc_equal(GridElement arg); // make THIS element equal to Kfunc(arg). Preferred to use this one, works faster
44  void SetRegularGridValue(int il, int im, int ia, int gridElementDirection); // return value for specified parameters for regular grid
45 };
46 
47 
53 class Grid {
54 private:
55 public:
56  // members
58  GridElement L, pc, alpha, epc;
61  //Matrix3D<double> L, pc, alpha, epc;
62  //int LSize, pcSize, alphaSize, epcSize;
63 
65  string type;
68 
69  void Create_Grid(Parameters_structure::GridElement parameters_L,
71  Parameters_structure::GridElement parameters_alpha,
72  Parameters_structure::GridElement parameters_epc,
73  string grid_filename, string gridType,
74  Grid SecondGrid = Grid()); // the last parameter is needed in case we create the grid based on another grid
75 
76  void Output(string filename);
77 
85 
86 };
87 
90 double find_alpha(double RHS, double alpha_min, double alhpa_max, double ERR = 1e-12, int max_it = 100, int it = 0);
91 
92 #endif
Matrix3D< double > arr
array of grid points
Definition: Grid.h:30
Array of values of coordinate axes.
Definition: Grid.h:28
double find_alpha(double RHS, double alpha_min, double alhpa_max, double ERR=1e-12, int max_it=100, int it=0)
Definition: Grid.cpp:401
string type
grid type
Definition: Grid.h:65
functions for write log and support files. Functions are defined in Output.h and descripted in Output...
Definition: Output.cpp:15
Parameters_structure::GridElement GridElement_parameters
parameters for grid element
Definition: Grid.h:36
Grid element parameters structure.
Definition: Parameters.h:151
int size
size of grid element
Definition: Grid.h:39
Matrix3D< double > Jacobian
Definition: Grid.h:84
bool Grid_initialized
check for initialized status
Definition: Grid.h:67
bool GridElement_initialized
initialized flag
Definition: Grid.h:33
Computational grid composed of 3 different GridElement.
Definition: Grid.h:53