public string getYaxisUnits(MassUnitsType?prefMassUnits) { MassUnitsType massUnits0; string units; if (prefMassUnits != null) { massUnits0 = (MassUnitsType)prefMassUnits; } else { massUnits0 = massUnits; } units = Util.GetEnumDescription(massUnits0).Replace("[", "").Replace("]", ""); return(string.Format("{0}/{1}", units, volUnits)); }
public TextParamList getText(bool showAll = false) { TextParamList textList = new TextParamList(); string units, compLabel; // Main if (showAll) { textList.addHeader("Main parameters"); textList.add("Profile", Util.GetEnumDescription(profile)); textList.add("Model", model.ToString()); textList.add("Run mode", Util.GetEnumDescription(runMode)); textList.add("K definition", Util.GetEnumDescription(kDefinition)); } // Column textList.addHeader("Column parameters"); textList.add("Vc", vc.ToString(), volUnits.ToString()); if (vdeadInEnabled) { textList.add("Vdead in", vdeadIn.ToString(), volUnits.ToString()); } if (vdeadOutEnabled) { textList.add("Vdead out", vdeadOut.ToString(), volUnits.ToString()); } if (vdeadInjectEnabled) { textList.add("Vdead inject", vdeadInject.ToString(), volUnits.ToString()); } textList.add("Uf", uf.ToString(), "0..1"); textList.add("Lf", lf.ToString(), "0..1"); // Flow textList.addHeader("Flow parameters"); units = string.Format("{0}/{1}", volUnits, timeUnits); if (fu != 0) { textList.add("Fu", fu.ToString(), units); } if (fl != 0) { textList.add("Fl", fl.ToString(), units); } if (eeMode != EEModeType.None) { textList.add(Util.GetEnumDescription(eeMode)); } if (runMode == RunModeType.Intermittent) { textList.add("start phase", intStartPhase.ToString()); if (intMode == IntModeType.Component) { if (intUpComp >= 0 && intUpComp < comps.Count) { compLabel = comps[intUpComp].label; } else { compLabel = "-"; } textList.add("Upper switch", compLabel); if (intLpComp >= 0 && intLpComp < comps.Count) { compLabel = comps[intLpComp].label; } else { compLabel = "-"; } textList.add("Lower switch", compLabel); } else if (intMode == IntModeType.Volume) { textList.add("Upper switch", intUpSwitch.ToString(), volUnits.ToString()); textList.add("Lower switch", intLpSwitch.ToString(), volUnits.ToString()); } else { textList.add("Upper switch", intUpSwitch.ToString(), timeUnits.ToString()); textList.add("Lower switch", intLpSwitch.ToString(), timeUnits.ToString()); } textList.add("Max iterations", intMaxIt.ToString()); if (intFinalElute) { textList.add("Final elution"); } } // Inject textList.addHeader("Inject parameters"); textList.add("Inject mode", injectMode.ToString()); textList.add("Inject phase", injectPhase.ToString()); textList.add("Inject volume", injectVolume.ToString(), volUnits.ToString()); textList.add("Inject position", injectPos.ToString(), "0..1"); if (injectMode == InjectModeType.Batch) { if (injectFeedUnits == QuantityType.Volume) { units = volUnits.ToString(); } else if (injectFeedUnits == QuantityType.Time) { units = timeUnits.ToString(); } textList.add("Inject feed", injectFeed.ToString(), units); } // Model textList.addHeader("Model parameters"); if (model == ModelType.CCD || model == ModelType.Transport) { textList.add("Steps", column.ToString()); } if (model == ModelType.Probabilistic) { units = string.Format("1/{0}", timeUnits); textList.add("Rotational speed", mixSpeed.ToString(), units); } if (model == ModelType.CCD || model == ModelType.Probabilistic) { textList.add("Efficiency", Util.toString(efficiency, 4), "0..1"); } if (model == ModelType.Transport) { textList.add("Mass transfer", ka.ToString()); } return(textList); }