Добавьте файлы проекта.

This commit is contained in:
Anton Kamalov
2025-05-13 20:24:51 +03:00
parent 8fab8f453f
commit 47b39d658d
27 changed files with 1758901 additions and 0 deletions

21
include/Solver.hpp Normal file
View File

@@ -0,0 +1,21 @@
#ifndef SOLVER_H
#define SOLVER_H
#include <System.hpp>
#include <string>
#include <fstream>
class Solver{
double delta;
std::vector<double> ThomasMethod(std::vector<std::vector<double>>&, std::vector<double>&) const;
void SolveLine(System&, std::vector<Node*>&) const;
std::string _name_1;
std::string _name_2;
public:
Solver(std::string name_1, std::string name_2, double dt = 1.): delta(dt), _name_1(name_1), _name_2(name_2) {}
void SolveExplicit(System&, double) const;
void SolveImplicit(System&, double) const;
};
#endif