-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.h
31 lines (26 loc) · 969 Bytes
/
functions.h
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
29
30
31
#ifndef FUNCTION_H
#define FUNCTION_H
#define _USE_MATH_DEFINES
#include <cmath>
#include <vector>
#include <stdio.h>
#include <iostream>
#include "iodata.h"
#include "simdata.h"
#include "coefficient_thomas.h"
#include <string>
#include <fstream>
#include <omp.h>
int getRows(char* filename);
void writeDataPlot(char* filename, iodata::odata odata);
void dataRW(char* filename, const char* o, iodata *io);
void dataRW(char* filename, const char* o, iodata::odata& odata);
double fitting(iodata& io, simdata &sd);
void Calculate_ThomasCoefficient(std::vector<double> X,coefficient_Thomas& coe,double deltaT);
void Calculate_ThomasCoefficient(std::vector<double> X, coefficient_Thomas& coe, double *factor, const simdata& sd);
void getConcentration(coefficient_Thomas& coe,std::vector<double> &C );
simdata gridScale(iodata::idata id);
simdata dimensionTrans(iodata::idata id);
simdata dimensionTrans(simdata sd);
void simulation(simdata& sd);
#endif // FUNCTION_H