MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
conversionCheck.H
Go to the documentation of this file.
1 
6 forAll(mesh.C(), celli)
8 {
9  if (XW[celli] < 0.0 || XOH[celli] > XOH_Gel || XW[celli] > 1.0)
10  {
11  XW[celli] = ROOTVSMALL;
12  }
13  if (XOH[celli] < 0.0 || XOH[celli] > 1.0)
14  {
15  XOH[celli] = ROOTVSMALL;
16  }
17  if (alpha2[celli] < 0.5)
18  {
19  XOH[celli] = ROOTVSMALL;
20  XW[celli] = ROOTVSMALL;
21  }
22  if (XOH[celli] > XOH_Gel)
23  {
24  XOH[celli] = XOH_Gel;
25  }
26 }
27 ///@endcond