using IStation.Epanet.Enums; namespace IStation.Epanet.Network.Structures { public class Reservoir : Node { public Reservoir(string name) : base(name) { } public override void ConvertUnits(Network nw) { // FIXME:Tanks and reservoirs here? FieldsMap fMap = nw.FieldsMap; // ... convert from user to internal units double ucfLength = fMap.GetUnits(FieldType.ELEV); Elevation /= ucfLength; Head = Elevation + Head / ucfLength; } public override NodeType NodeType => NodeType.Reservoir; ///基准 public double Head { get; set; } ///Fixed grade time pattern. public Pattern Pattern { get; set; } } }