-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolver.h
More file actions
28 lines (21 loc) · 696 Bytes
/
solver.h
File metadata and controls
28 lines (21 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SOLVER_H
#define SOLVER_H
#include "data2d.h"
#include <iostream>
#include <fstream>
class Solver
{
Matrix initialization(int type, double k1, double k2);
Matrix convertColumnToField(Matrix& X);
Matrix convertFieldToColumn(Matrix& X);
public:
int M; //x
int N; //y
double hx, hy;
bool logging;
Solver(int M, int N, double hx, double hy, bool flag);
Matrix Analytic();
Matrix CraigMethod(int initializationType, std::ofstream &s, int BoundaryConditionsType, double k1, double k2);
Matrix SymmetrizedConjugateGradients(int initializationType, std::ofstream &fout11, int BoundaryConditionsType, double k1, double k2);
};
#endif // SOLVER_H