root/trunk/rheoplast/heatcond.h

Revision 1410, 2.1 kB (checked in by hazelsct, 3 years ago)

Changed void to int in all of the module functions to avoid excessive warnings.

  • Property svn:keywords set to Author Date Id Revision
Line 
1/***************************************
2  $Header$
3
4  The typedefs and prototypes for heat conduction.  This is not meant to be
5  included on its own, only when someone #includes "rheoplast.h".
6  ***************************************/
7
8
9#ifndef HEATCOND_H
10#define HEATCOND_H    /*+ To stop multiple inclusions. +*/
11
12/* These are to keep cxref happy */
13#include <petsc.h>
14#ifndef RHEOPLAST_H
15typedef void AppCtx;
16#endif
17
18/*+ Structure typedef for heat conduction parameters. +*/
19typedef struct {
20  PetscScalar conductivity, thermdensity, Cp, /* k and rho*cp */
21    latentheat,                         /* Latent heat of solidification */
22    Tinit, Tcool, C;                  /* Initial temp and forced cooling parameters */
23  int Tvar;                               /* Temperature field variable # */
24} heatparm;
25
26#define HEATCOND_HELP \
27"Heat conduction is very simple.  To use it, add option:\n\
28  -with_heat\n\
29and 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 /* HEATCOND_H */
38
39#ifdef APPCTX_DEFINED
40/* Function prototypes to make sure we're together */
41int heatcond_first_setup
42(PetscTruth threedee, int *vars, int *tempvars, int *stencilwid, AppCtx *data);
43int 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);
46int 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);
50int 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 /* APPCTX_DEFINED */
Note: See TracBrowser for help on using the browser.