-
Notifications
You must be signed in to change notification settings - Fork 6
/
function_prototypes.h
220 lines (202 loc) · 5.03 KB
/
function_prototypes.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
/*
Copyright (C) 1995 The GeoFramework Consortium
This file is part of Ellipsis3D.
Ellipsis3D is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2,
as published by the Free Software Foundation.
Ellipsis3D is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Author:
Louis Moresi <[email protected]>
*/
/* Function prototypes for citcom */
void get_element_viscosity(
struct All_variables *E,
int el,
int level,
int non_linear_repetition,
standard_precision *U1,
standard_precision *U2,
standard_precision *U3,
standard_precision *Pres
);
void get_system_viscosity(
struct All_variables *E
);
void pg_element_residual(
struct All_variables *E,
int el,
struct Shape_function_dx GNx,
struct Shape_function_dA dOmega,
standard_precision **vel,
standard_precision *TT1,
standard_precision *TT1dot,
struct SOURCES QQ1,
higher_precision Eres1[9],
standard_precision diff1,
standard_precision *BCC,
unsigned int *FLAGS1,
int OFFSIDE_MASK1,
int FLUX_MASK1
);
void pg_element_residual2(
struct All_variables *E,
int el,
struct Shape_function_dx GNx,
struct Shape_function_dA dOmega,
standard_precision **vel,
standard_precision *TT1,
standard_precision *TT2,
standard_precision *TT1dot,
standard_precision *TT2dot,
struct SOURCES QQ1,
struct SOURCES QQ2,
higher_precision Eres1[9],
higher_precision Eres2[9],
standard_precision diff1,
standard_precision diff2,
standard_precision *BCC,
/* standard_precision *BC2,*/
unsigned int *FLAGS1,
unsigned int *FLAGS2,
int OFFSIDE_MASK1,
int OFFSIDE_MASK2,
int FLUX_MASK1,
int FLUX_MASK2
);
void pg_element_residual3(
struct All_variables *E,
int el,
struct Shape_function_dx GNx,
struct Shape_function_dA dOmega,
standard_precision **vel,
standard_precision *TT1,
standard_precision *TT2,
standard_precision *TT3,
standard_precision *TT1dot,
standard_precision *TT2dot,
standard_precision *TT3dot,
struct SOURCES QQ1,
struct SOURCES QQ2,
struct SOURCES QQ3,
higher_precision Eres1[9],
higher_precision Eres2[9],
higher_precision Eres3[9],
standard_precision diff1,
standard_precision diff2,
standard_precision diff3,
standard_precision *BCC,
/* standard_precision *BC2,
standard_precision *BC3,*/
unsigned int *FLAGS1,
unsigned int *FLAGS2,
unsigned int *FLAGS3,
int OFFSIDE_MASK1,
int OFFSIDE_MASK2,
int OFFSIDE_MASK3,
int FLUX_MASK1,
int FLUX_MASK2,
int FLUX_MASK3
);
void pg_solver(
struct All_variables *E,
standard_precision *T,
standard_precision *Tdot,
standard_precision *DTdot,
standard_precision **V,
struct SOURCES Q0,
standard_precision diff,
int bc,
standard_precision *TBC,
unsigned int *FLAGS,
unsigned int OFFSIDE_MASK,
unsigned int FLUX_MASK );
void pg_solver2(
struct All_variables *E,
standard_precision *T1,
standard_precision *T2,
standard_precision *T1dot,
standard_precision *T2dot,
standard_precision *DT1dot,
standard_precision *DT2dot,
standard_precision **V,
struct SOURCES Q1,
struct SOURCES Q2,
standard_precision diff1,
standard_precision diff2,
int bc1,
int bc2,
/* standard_precision *TBC1,
standard_precision *TBC2,*/
unsigned int *FLAGS1,
unsigned int *FLAGS2,
unsigned int OFFSIDE_MASK1,
unsigned int OFFSIDE_MASK2,
unsigned int FLUX_MASK1,
unsigned int FLUX_MASK2
);
void pg_solver3(
struct All_variables *E,
standard_precision *T1,
standard_precision *T2,
standard_precision *T3,
standard_precision *T1dot,
standard_precision *T2dot,
standard_precision *T3dot,
standard_precision *DT1dot,
standard_precision *DT2dot,
standard_precision *DT3dot,
standard_precision **V,
struct SOURCES Q1,
struct SOURCES Q2,
struct SOURCES Q3,
standard_precision diff1,
standard_precision diff2,
standard_precision diff3,
int bc1,
int bc2,
int bc3,
/* standard_precision *TBC1,
standard_precision *TBC2,
standard_precision *TBC3,*/
unsigned int *FLAGS1,
unsigned int *FLAGS2,
unsigned int *FLAGS3,
unsigned int OFFSIDE_MASK1,
unsigned int OFFSIDE_MASK2,
unsigned int OFFSIDE_MASK3,
unsigned int FLUX_MASK1,
unsigned int FLUX_MASK2,
unsigned int FLUX_MASK3
);
void pic_solver(
struct All_variables *E,
standard_precision *T,
standard_precision *Tdot,
standard_precision *DTdot,
standard_precision **V,
struct SOURCES Q0,
standard_precision diff,
int bc,
standard_precision *TBC,
unsigned int *FLAGS,
unsigned int OFFSIDE_MASK,
unsigned int FLUX_MASK
);
void diff_element_residual(
struct All_variables *E,
int el,
struct Shape_function_dx GNx,
struct Shape_function_dA dOmega,
standard_precision *TT1,
standard_precision *TT1dot,
struct SOURCES QQ1,
higher_precision Eres1[9],
standard_precision diff1,
standard_precision *BCC,
unsigned int *FLAGS1,
int OFFSIDE_MASK1,
int FLUX_MASK1
);