Пример #1
0
        public MaterialStream CopyFrom(MaterialStream original)
        {
            Mixed.Temperature.ValueInSI = original.Mixed.Temperature.ValueInSI;
            Mixed.Pressure.ValueInSI    = original.Mixed.Pressure.ValueInSI;

            for (int i = 0; i < System.Components.Count; i++)
            {
                Mixed.ComponentMolarflow[i].ValueInSI = original.Mixed.ComponentMolarflow[i].ValueInSI;
            }
            return(this);
        }
Пример #2
0
 public Flowsheet AddMaterialStream(MaterialStream stream)
 {
     if (!MaterialStreams.Contains(stream))
     {
         MaterialStreams.Add(stream);
     }
     else
     {
         throw new InvalidOperationException("Stream " + stream.Name + " already included in flowsheet");
     }
     return(this);
 }
Пример #3
0
 public Flowsheet RemoveMaterialStream(MaterialStream stream)
 {
     if (MaterialStreams.Contains(stream))
     {
         MaterialStreams.Remove(stream);
     }
     else
     {
         throw new InvalidOperationException("Stream " + stream.Name + " not included in flowsheet");
     }
     return(this);
 }