Here we go again

Или я опять всё напутал в начальных условиях
This commit is contained in:
2025-05-15 15:10:34 +03:00
parent 6482df0727
commit 9325bbc747
4 changed files with 31 additions and 27 deletions

View File

@@ -9,15 +9,15 @@
#define ARC_RADIUS 150.
//#define SQUARE_X 355.
//#define SQUARE_Y 155.
//#define SQUARE_SIDE 100.
#define SQUARE_X 355.
#define SQUARE_Y 155.
#define SQUARE_SIDE 100.
#define HOLE_X 155.
#define HOLE_Y 255.
#define HOLE_RADIUS 50.
//#define HOLE_X 155.
//#define HOLE_Y 255.
//#define HOLE_RADIUS 50.
#define CONDUCTIVITY 90. // Теплопроводность материала
#define CONDUCTIVITY 50. // Теплопроводность материала
void visualize(std::ofstream& file, std::string filename, int time_end) {
file << "set cbrange [" << 0 << ":" << 100 << "]" << std::endl;
@@ -41,7 +41,7 @@ int main()
int right = 1;
int bottom = 3;
int arc_bound = 3;
int hole_bound = 2;
int hole_bound = 1;
double step_5 = 5;
double step_10 = 10;
@@ -54,12 +54,16 @@ int main()
std::map<std::string, double> arc{
{"a", WIDTH - ARC_RADIUS}, {"b", HEIGHT - ARC_RADIUS}, {"h_x", 1 / ARC_RADIUS}, {"h_y", 1 / ARC_RADIUS}
};
std::map<std::string, double> circle{
{"a", HOLE_X}, {"b", HOLE_Y}, {"h_x", 1 / HOLE_RADIUS}, {"h_y", 1 / HOLE_RADIUS}
//std::map<std::string, double> circle{
// {"a", HOLE_X}, {"b", HOLE_Y}, {"h_x", 1 / HOLE_RADIUS}, {"h_y", 1 / HOLE_RADIUS}
//};
std::map<std::string, double> square{
{"a", SQUARE_X}, {"b", SQUARE_Y}, {"h_x", 1 / SQUARE_SIDE}, {"h_y", 1 / SQUARE_SIDE}
};
Object obj;
obj.Add_Form("Circle", circle, true, hole_bound);
obj.Add_Form("Rectangle", square, true, hole_bound);
obj.Add_Form("Arc", arc, true, arc_bound);
obj.Add_Form("Rectangle", plate, false, 1);
@@ -101,6 +105,3 @@ int main()
return 0;
}
//std::map<std::string, double> square{
// {"a", SQUARE_X}, {"b", SQUARE_Y}, {"h_x", 1 / SQUARE_SIDE}, {"h_y", 1 / SQUARE_SIDE}
//};