MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
liquidBA.h
Go to the documentation of this file.
1 
9 double LMax(double);
10 
11 double LMax (double tm)
12 {
13  double lMax,aa,hh,T0,ww;
14  switch (phBL) {
15  case 1:
16  aa = 0.0064; // -
17  hh = 0.0551; // -
18  T0 = 298.0; // K
19  ww = 17.8; // 1/K
20  // double T_in = 300; // K
21  if (tm > T0)
22  {
23  double tempDummy = pow((tm-T0),2.0);
24  lMax = (aa + hh*exp((-tempDummy/(2.0*ww*ww))));
25  break;
26  }
27  else
28  {
29  lMax=aa+hh;
30  break;
31  }
32  case 2:
33  aa = 1e-7; // -
34  hh = 4.2934; // -
35  T0 = 203.3556; // K
36  ww = 40.016; // 1/K
37  // double T_in = 300; // K
38  if (tm > T0)
39  {
40  double tempDummy = pow((tm-T0),2.0);
41  lMax = (aa + hh*exp((-tempDummy/(2.0*ww*ww))));
42  break;
43  }
44  else
45  {
46  lMax=aa+hh;
47  break;
48  }
49  }
50  return lMax;
51 }
double LMax(double)
Definition: liquidBA.h:11
int phBL
type of physical blowing agent 1 = pentane, 2 = R-11