00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef PDH_NS_SUPG_HEAT
00025 #define PDH_NS_SUPG_HEAT
00026
00027 #include <stdio.h>
00028
00029
00030 #include "pdh_intf.h"
00031
00032
00033 #include "../../pdd_ns_supg/include/pdh_ns_supg_problem.h"
00034 #include "../../pdd_heat/include/pdh_heat_problem.h"
00035
00036
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 #define PDC_NS_SUPG_ID 1
00051 #define PDC_HEAT_ID 2
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 extern double pdv_ns_supg_heat_timer_all;
00068 extern double pdv_ns_supg_heat_timer_pdr_comp_el_stiff_mat;
00069 extern double pdv_ns_supg_heat_timer_pdr_comp_fa_stiff_mat;
00070
00071
00072
00073
00074
00075
00076 extern int pdv_ns_supg_heat_current_problem_id;
00077
00078 extern pdt_ns_supg_problem pdv_ns_supg_problem;
00079
00080 extern pdt_heat_problem pdv_heat_problem;
00081
00082 extern int pdv_ns_supg_exchange_table_index;
00083 extern int pdv_heat_exchange_table_index;
00084
00085
00086
00087
00088
00089
00090
00091
00096 extern int pdr_ns_supg_heat_init(
00097 char* Work_dir,
00098 FILE *Interactive_input,
00099 FILE *Interactive_output
00100 );
00101
00105 extern void pdr_ns_supg_heat_time_integration(
00106 char* Work_dir,
00107 FILE *Interactive_input,
00108 FILE *Interactive_output);
00109
00114 extern double pdr_ns_supg_heat_error(
00115 char* Work_dir,
00116 FILE *Interactive_input,
00117 FILE *Interactive_output);
00118
00122 extern int pdr_ns_supg_heat_adapt(
00123 char* Work_dir,
00124 FILE *Interactive_input,
00125 FILE *Interactive_output);
00126
00130 int pdr_ns_supg_heat_refine(
00131 int Problem_id,
00132 int Ref_type,
00133 FILE *Interactive_output
00134 );
00135
00140 double pdr_ns_supg_heat_ZZ_error(
00141
00142 char* Work_dir,
00143 FILE *Interactive_input,
00144 FILE *Interactive_output
00145 );
00146
00151 extern double pdr_ns_supg_heat_err_indi_ZZ(
00152
00153 int Problem_id,
00154 int El
00155 );
00156
00161 extern double pdr_ns_supg_heat_err_indi_explicit(
00162
00163 int Problem_id,
00164 int El
00165 );
00166
00170 extern int pdr_ns_supg_heat_dump_data(
00171 char* Work_dir,
00172 FILE *Interactive_input,
00173 FILE *Interactive_output
00174 );
00175
00179 extern int pdr_ns_supg_heat_write_paraview(
00180 char* Work_dir,
00181 FILE *Interactive_input,
00182 FILE *Interactive_output
00183 );
00184
00185
00186
00187 #ifdef __cplusplus
00188 }
00189 #endif
00190
00191 #endif