Exemplo n.º 1
0
 public static ScatterSeries GetScatterSerries(this IWBNodeLayer layer, string variantName, string yAxisFieldName,
                                               string xAxisFieldName = nameof(WBOneDemNode.X),
                                               double yScaler        = 1d,
                                               double xScaler        = 1d)
 {
     try {
         return(layer.GetNodesForDraw(variantName).GetScatterSerries(yAxisFieldName, xAxisFieldName, yScaler, xScaler));
     } catch (Exception e) {
         return(new ScatterSeries()
         {
             Title = $"{yAxisFieldName} Ошибка: {e.Message}"
         });
     }
 }
 public PnGridEuler(string name, IWBNodeLayer initLayer) : base(name, initLayer)
 {
     lrInit.LeftBorder = new GasBorderWall()
     {
         OwnerLayer = lrInit,
         BorderPos  = WBBorderPos.leftBorder
     };
     lrInit.RightBorder = new GasBorderWall()
     {
         OwnerLayer = lrInit,
         A_0_func   = A_0_function,
         BorderPos  = WBBorderPos.rightBorder
     };
 }
        void DrawSituation(IWBNodeLayer lr)
        {
            var nodes = lr.GetNodesForDraw("").ToList();

            vm.PM.Series.Clear();
            //foreach (var s in nodes[0].GetDataFieldsNames<double>().Where(ss => ss.ToUpper() != "X")) {
            //    vm.PM.Series.Add(nodes.GetLineSerries(s));
            //}
            vm.PM.Series.Add(nodes.GetLineSerries("ro"));
            vm.PM.Series.Add(nodes.GetLineSerries("u"));
            vm.PM.Series.Add(nodes.GetLineSerries(yAxisFieldName: "p", yScaler: 10E-5));
            // vm.PM.Series.Add(nodes.GetLineSerries("e"));
            vm.PM.Title = $"{lr.Time} sec";
            vm.PM.InvalidatePlot(true);
        }
Exemplo n.º 4
0
 public OvGridRK(string name, IWBNodeLayer initLayer) : base(name, initLayer)
 {
     lrInit            = initLayer as OvLayer;
     lrInit.LeftBorder = new OvBorderWall()
     {
         OwnerLayer = lrInit,
         BorderPos  = WBBorderPos.leftBorder
     };
     lrInit.RightBorder = new OvBorderWall()
     {
         OwnerLayer = lrInit,
         A_0_func   = A_0_function,
         BorderPos  = WBBorderPos.rightBorder
     };
 }
Exemplo n.º 5
0
 public GasGrid(string name, IWBNodeLayer initLayer) : base(name, initLayer)
 {
 }
 /// <summary>
 /// ЧТо сделать с клоном при клонировании
 /// </summary>
 /// <param name="clone">клон</param>
 public override void CloneLogic(IWBNodeLayer clone)
 {
     (clone as WBOneDemLayer <T>).InitLists();
 }
Exemplo n.º 7
0
 public WBGridBase(string name, IWBNodeLayer initLayer)
 {
     Slaver = new WBMemTacticBase(this);
     LayerList.AddFirst(initLayer);
     Name = name;
 }
Exemplo n.º 8
0
 /// <summary>
 /// добавляет еще один слой в начало LayerList
 /// </summary>
 /// <param name="deltaTau"></param>
 public void AddLayer(IWBNodeLayer layer)
 {
     LayerList.AddFirst(layer);
 }
 // [OnDeserialized]
 //public void OnLoad() {
 //    ActionWhenLoad();
 //}
 /// <summary>
 /// логика/действия при копировании
 /// </summary>
 public abstract void CloneLogic(IWBNodeLayer clone);
 public override void CloneLogic(IWBNodeLayer clone)
 {
     base.CloneLogic(clone);
     (clone as WBOneDemCellLayer <TCell, TBound>).InitBoundCellRefs();
 }
Exemplo n.º 11
0
 public PnGridRK(string name, IWBNodeLayer initLayer) : base(name, initLayer)
 {
 }
Exemplo n.º 12
0
 public PnGrid(string name, IWBNodeLayer initLayer) : base(name, initLayer)
 {
     lrInit = initLayer as GasLayer;
 }