| 1 |
/*prob 7: Spannung zu vorgegebener temperatur, ex. Lsg polynom (p'(x)p(y),p(x)p'(y)), p=x^2(1-x)^2*** |
| 2 |
**************************************************************************************/ |
| 3 |
|
| 4 |
REAL p(REAL x) |
| 5 |
{ |
| 6 |
return(x*x*(1-x)*(1-x)); |
| 7 |
/* return(-x*x*x*x*x/5 + x*x*x/3);*/ |
| 8 |
} |
| 9 |
/// const REAL a=100.0; Wat is datt denn?? |
| 10 |
|
| 11 |
REAL pprime(REAL x) |
| 12 |
{ |
| 13 |
/* return(x*x*(1-x)*(1-x));*/ |
| 14 |
return(2.0*x*(1.0-x)*(1.0-2.0*x)); |
| 15 |
} |
| 16 |
REAL p2prime(REAL x) |
| 17 |
{ |
| 18 |
return(12.0*x*x-12.0*x+2.0); |
| 19 |
/* return(2.0*x*(1-x)*(1-2*x));*/ |
| 20 |
} |
| 21 |
|
| 22 |
static REAL th_ex7(const REAL_D x) |
| 23 |
{ |
| 24 |
|
| 25 |
return(/*623.0 +*/ a*(p2prime(x[0])*p(x[1]) + p2prime(x[1])*p(x[0])) ); |
| 26 |
} |
| 27 |
|
| 28 |
#if DIM_OF_WORLD==2 |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
static REAL *grd_th_ex7(const REAL_D x, REAL t) |
| 34 |
{ |
| 35 |
static REAL_D grad_th = {0.0, 0.0}; |
| 36 |
static REAL c1=0.0; |
| 37 |
REAL alpha = 1.55E-5; |
| 38 |
if (!c1) |
| 39 |
c1=alpha*(3*prob_data->lambda + 2*prob_data->mu)/(prob_data->lambda |
| 40 |
+ 2*prob_data->mu); |
| 41 |
grad_th[0] = 0.0; |
| 42 |
grad_th[1] = 0.0;/*dummy*/ |
| 43 |
return(grad_th); |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
#endif |
| 50 |
|
| 51 |
|
| 52 |
PROB_DATA_DIFF prob_data_heat_polynomial = |
| 53 |
{ |
| 54 |
nil, nil, /* Diffusionsmatrix, order0 werden ueberschrieben!!*/ |
| 55 |
nil //massfunc |
| 56 |
, 1 //constflag |
| 57 |
,{0.0, 0.077, 0.084,/*latent_heat pearl, Martensit*/ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //phys. konstanten. Feld is eher f. phase gedacht |
| 58 |
/*rhs function:*/ |
| 59 |
nil, th_ex7, nil /*gth_D_6*/,nil /* gth_N_5*/, |
| 60 |
th_ex7, grd_th_ex7, /* th_ex, grd_th_ex */ |
| 61 |
}; |
| 62 |
PROB_DATA_DIFF prob_data_heat_const = |
| 63 |
{ |
| 64 |
nil, nil, /* Diffusionsmatrix, order0 werden ueberschrieben!!*/ |
| 65 |
nil //massfunc |
| 66 |
, 1 //constflag |
| 67 |
,{0.0, 0.077, 0.084,/*latent_heat pearl, Martensit*/ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 |
| 68 |
}, //phys. konstanten. Feld is eher f. phase gedacht |
| 69 |
nil, th0, nil /*gth_D_6*/,nil /* liefert Nullen*/, |
| 70 |
th0, grd_th_ex7, /* th_ex, grd_th_ex nicht dafuer gemacht aber ok*/ |
| 71 |
}; |