Computational Science Based on HPC
thermoserial.h
Go to the documentation of this file.
1
26#ifndef PHYSICS_THERMOSERIAL_H
27#define PHYSICS_THERMOSERIAL_H
28#include "thermoutils.h"
29
30
45 extern long double
46 _get_value_1D(double time_step,
47 double space_step,
48 long long x, unsigned long long t,
49 long long precision);
50
68 extern long double
69 _get_value_2D(double time_step,
70 double length, double space_step_x, double width, double space_step_y,
71 long long x, long long y, unsigned long long t,
72 long long precision);
73
87 extern char*
88 _simulate_heat_transfer_1D_serial(double time_step, double time_limit,
89 double space_step,
90 long long precision);
91
92
93
109 extern char*
110 _simulate_heat_transfer_2D_serial(double time_step, double time_limit,
111 double space_step_x,
112 double space_step_y,
113 long long precision);
114
127extern double
128_execution_time_heat_transfer_1D_serial(double time_step, double time_limit,
129 double space_step,
130 long long precision);
131
145extern double
146_execution_time_heat_transfer_2D_serial(double time_step, double time_limit,
147 double space_step_x,
148 double space_step_y,
149 long long precision);
150
151
152#endif //PHYSICS_THERMOSERIAL_H
char * _simulate_heat_transfer_1D_serial(double time_step, double time_limit, double space_step, long long precision)
This is a function that simulates the heat transfer in 1D object as wire, and write the result to a f...
double _execution_time_heat_transfer_2D_serial(double time_step, double time_limit, double space_step_x, double space_step_y, long long precision)
This is a function that simulates the heat transfer in 2D object, and return the execution time witho...
double _execution_time_heat_transfer_1D_serial(double time_step, double time_limit, double space_step, long long precision)
This is a function that simulates the heat transfer in 1D object as wire, and return the execution ti...
char * _simulate_heat_transfer_2D_serial(double time_step, double time_limit, double space_step_x, double space_step_y, long long precision)
This is a function that simulates the heat transfer in 2D object, and write the result to a file.
long double _get_value_2D(double time_step, double length, double space_step_x, double width, double space_step_y, long long x, long long y, unsigned long long t, long long precision)
This is a function calculates the value of specific point in the space at specific time in 2D.
long double _get_value_1D(double time_step, double space_step, long long x, unsigned long long t, long long precision)
This is a function calculates the value of specific point in the space at specific time in 1D.
This file contains the utility functions used by the heat transfer simulation in 1D and 2D to help in...