public AquiferStorage(string id, double[] initialValues, double relaxation, IElementSet es, LinkableComponentMW2 component) : base(id, new Time(component.TimeExtent.TimeHorizon.StampAsModifiedJulianDay), initialValues, relaxation) { Quantity q = new Quantity(); q.Description = "Aquifer Storage [m3]"; q.Caption = "Aquifer Storage"; Dimension dimension = new Dimension(); dimension.SetPower(DimensionBase.Length, 3); Unit unit = new Unit("Storage", 1.0, 0.0, "Storage"); unit.Dimension = dimension; q.Unit = unit; _iDescribable = new Describable( string.Format("{0}, {1}", q.Caption, es.Caption), string.Format("{0}, {1}", q.Description, es.Description)); _iValueDefinition = q; _iElementSet = es; _iComponent = component; }
public Inflow(string id, double[] defaultValues, double timeTolerance, IElementSet es, LinkableComponentMW2 component) : base(id, component.TimeExtent, defaultValues, timeTolerance) { Quantity q = new Quantity(); q.Description = "Inflow [m3/s]"; q.Caption = "Flow"; q.Unit = new Unit(PredefinedUnits.CubicMeterPerSecond); _iDescribable = new Describable( string.Format("{0}, {1}", q.Caption, es.Caption), string.Format("{0}, {1}", q.Description, es.Description)); _iValueDefinition = q; _iElementSet = es; _iComponent = component; }
public AquiferLevel(string id, double[] initialValues, double relaxation, IElementSet es, LinkableComponentMW2 component) : base(id, new Time(component.TimeExtent.TimeHorizon.StampAsModifiedJulianDay), initialValues, relaxation) { Quantity q = new Quantity(); q.Description = "Aquifer level [m]"; q.Caption = "Aquifer Level"; q.Unit = new Unit(PredefinedUnits.CubicMeterPerSecond); _iDescribable = new Describable( string.Format("{0}, {1}", q.Caption, es.Caption), string.Format("{0}, {1}", q.Description, es.Description)); _iValueDefinition = q; _iElementSet = es; _iComponent = component; }
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); }