MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
checkGellingPoint.H
Go to the documentation of this file.
1 
12 scalar foamCellCounter = 0.0;
14 scalar gelCellCounter = 0.0;
15 
16 forAll(mesh.C(), celli)
17 {
18  if (alpha2[celli] > 0.5)
19  {
20  foamCellCounter += 1;
21  }
22  if (XOH[celli] >= XOH_Gel)
23  {
24  gelCellCounter += 1;
25  }
26 }
27 if ((gelCellCounter/foamCellCounter) > 0.5)
28 {
29  gellingPoint = true;
30 }
31 else
32 {
33  gellingPoint = false;
34 }
35 ///@endcond