| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | #ifndef HEATCOND_H |
|---|
| 10 | #define HEATCOND_H |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | #include <petsc.h> |
|---|
| 14 | #ifndef RHEOPLAST_H |
|---|
| 15 | typedef void AppCtx; |
|---|
| 16 | #endif |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | typedef struct { |
|---|
| 20 | PetscScalar conductivity, thermdensity, Cp, |
|---|
| 21 | latentheat, |
|---|
| 22 | Tinit, Tcool, C; |
|---|
| 23 | int Tvar; |
|---|
| 24 | } heatparm; |
|---|
| 25 | |
|---|
| 26 | #define HEATCOND_HELP \ |
|---|
| 27 | "Heat conduction is very simple. To use it, add option:\n\ |
|---|
| 28 | -with_heat\n\ |
|---|
| 29 | and control it with properties:\n\ |
|---|
| 30 | -conductivity <k> thermal conductivity [1.0]\n\ |
|---|
| 31 | -density <rho> density [1.0]\n\ |
|---|
| 32 | -heatcap <cp> heat capacity [1.0]\n\ |
|---|
| 33 | -latentheat <L> for vectorphase coupling [1.0]\n\ |
|---|
| 34 | -cooling <C> for vectorphase cooling [0.0]\n\ |
|---|
| 35 | -T_cool <T_cool> for vectorphase cooling [0.7]\n\ |
|---|
| 36 | \n" |
|---|
| 37 | #endif |
|---|
| 38 | |
|---|
| 39 | #ifdef APPCTX_DEFINED |
|---|
| 40 | |
|---|
| 41 | int heatcond_first_setup |
|---|
| 42 | (PetscTruth threedee, int *vars, int *tempvars, int *stencilwid, AppCtx *data); |
|---|
| 43 | int heatcond_labels_initcond |
|---|
| 44 | (PetscScalar *globalarray, int nx,int ny,int nz, int xm,int ym,int zm, int xs, |
|---|
| 45 | int ys,int zs, int vars, AppCtx *data, PetscScalar *max_explicit_deltat); |
|---|
| 46 | int heatcond_temp_parameters_line |
|---|
| 47 | (PetscScalar *x, PetscScalar *temp, int points, int gxm,int gym, |
|---|
| 48 | PetscScalar xmin,PetscScalar xmax, PetscScalar ycoord,PetscScalar zcoord, |
|---|
| 49 | PetscScalar time, AppCtx *data); |
|---|
| 50 | int heatcond_interior_line_function |
|---|
| 51 | (PetscScalar *x, PetscScalar *func, PetscScalar *temp, |
|---|
| 52 | PetscTruth **mixed_constraints, int points, int gxm,int gym, PetscScalar xmin, |
|---|
| 53 | PetscScalar xmax, PetscScalar ycoord, PetscScalar zcoord, PetscScalar time, |
|---|
| 54 | AppCtx *data); |
|---|
| 55 | #endif |
|---|