public FlowAlongBranch(string idAndCaption, List <Point2D[]> polylines, double initialValue, double relaxation, LinkableComponentMW2 component) : base(idAndCaption, new Time(component.TimeExtent.TimeHorizon.StampAsModifiedJulianDay), initialValue, relaxation) { Quantity q = new Quantity( new Unit(PredefinedUnits.CubicMeterPerSecond), "Flow", // Description "Flow"); // Caption q.ValueType = typeof(double); ElementSet2D es = new ElementSet2D(idAndCaption, ElementType.PolyLine); es.AddRangeElements(polylines); Initialise(component, q, es); }
public GroundWaterLevelAtNode(string idAndCaption, Point2D point, double defaultValue, double timeTolerance, LinkableComponentMW2 component) : base(idAndCaption, component.TimeExtent, defaultValue, timeTolerance) { Quantity q = new Quantity( new Unit(PredefinedUnits.Meter), "Ground Water Level", // Description "Ground Water Level"); // Caption q.ValueType = typeof(double); ElementSet2D es = new ElementSet2D(idAndCaption, ElementType.Point); es.AddElement(new Point2D[] { point }); Initialise(component, q, es); }