-
Notifications
You must be signed in to change notification settings - Fork 0
/
graetz_problem_conduct.h
69 lines (56 loc) · 2 KB
/
graetz_problem_conduct.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// graetz_problem_conduct.h
//
// Zachary Cotman
//
// 11/21/2018
//
// For linking the external functions to graetz_problem_conduct.cpp
#ifndef GRAETZ_PROBLEM_CONDUCT_H
#define GRAETZ_PROBLEM_CONDUCT_H
#include <gsl/gsl_vector.h>
#include <gsl/gsl_spmatrix.h>
// ***************************************************************************
// From graetz_residual_functions.cpp
extern double
res_interior
(const int N, const int M, const double A, const double B,
const gsl_vector * C, const gsl_vector * D, const gsl_matrix * T);
extern double
res_bottom
(const int N, const int M, const double A, const double B,
const gsl_vector * C, const gsl_vector * D, const gsl_matrix * T);
extern double
res_lastline
(const int N, const int M, const double A, const double B,
const gsl_vector * C, const gsl_vector * D, const gsl_matrix * T);
extern double
res_corner
(const int N, const int M, const double A, const double B,
const gsl_vector * C, const gsl_vector * D, const gsl_matrix * T);
// ***************************************************************************
// From graetz_coeff_mat_functions.cpp
extern void
set_coeff_interior
(const int M, const int A, const int B,
const gsl_vector *C, const gsl_vector *D, gsl_spmatrix *Coeff_Interior);
extern void
set_coeff_final
(const int M, const int A, const int B,
const gsl_vector *C, const gsl_vector *D, gsl_spmatrix *Coeff_Final);
// ***************************************************************************
// From graetz_xy_functions.cpp
extern void
set_initial_guess
(const int M, const int i, gsl_vector *x, const gsl_matrix *T);
extern void
update_T
(const int M, const int i, const gsl_vector *x, gsl_matrix *T);
extern void
set_rhs_interior
(const int M, const int i, const double B,
const gsl_vector *D, const gsl_matrix *T, gsl_vector *y);
extern void
set_rhs_final
(const int M, const int i, const double B,
const gsl_vector *D, const gsl_matrix *T, gsl_vector *y);
#endif