public bool addOutputVariable(string nodeName, SmOutput.outputType type) { bool bsuccess = false; if (type != SmOutput.outputType.nodeVolume) { throw new Exception("Unsupported output type for node " + nodeName); } foreach (Node _node in nodes) { if (_node.name == nodeName) { SmOutput xout = new SmOutput(); xout.type = SmOutput.outputType.nodeVolume; xout.name = "Volume in " + nodeName; xout.nodex = _node; output.addNewDataSeries(xout); bsuccess = true; } } if (!bsuccess) { throw new Exception("could not find output variable " + nodeName); } return(bsuccess); }
public bool addOutputVariable(SmOutput.outputType type) { bool bsuccess = false; SmOutput xout = new SmOutput(); xout.type = type; xout.name = type.ToString(); output.addNewDataSeries(xout); bsuccess = true; return(bsuccess); }