예제 #1
0
 public Calc(ProjectBase p, WaterList waterList)
 {
     this.p = p;
     this.w = waterList;
 }
예제 #2
0
 // IS (Ionic streight)
 private double _IS(WaterList wL)
 {
     return(Math.Round(0.5 * (wL.Cations().Sum(x => x.ValueMEq * Math.Pow(x.GetIonCharge(), 3)) + wL.Anions().Sum(x => x.ValueMEq * Math.Pow(x.GetIonCharge(), 3))) * mol, 3));
 }