public static WBSolver GetNewSolver(WBProjectOptions options)
        {
            var layerOpts = StandartOpts;
            var geom      = new GunShape();

            geom.AddPoint(layerOpts.X_left - 10, 0.2);
            geom.AddPoint(layerOpts.X_right + 0.1, 0.2);
            geom.AddPoint(layerOpts.X_right + 2.4, 0.05);
            geom.AddPoint(layerOpts.X_right + 1000, 0.05);
            var initLayer = new GasLayer();

            initLayer.Geom = geom;
            initLayer.InitLayer(0d, layerOpts, InitIdealPCell, InitIdealPBound);
            var grid   = new PistonGrid("IdealP_tst1", initLayer);
            var solver = new WBSolver(grid, options);

            return(solver);
        }
        public static WBSolver GetNewSolver(WBProjectOptions options)
        {
            var    layerOpts = StandartOpts;
            var    geom = new GunShape();
            double d0 = 0.023, d1 = 0.016, l0 = 0.1, l1 = 0.1;

            geom.AddPoint(layerOpts.X_left - 10, d0);
            geom.AddPoint(l0, d0);
            geom.AddPoint(l0 + l1, d1);
            geom.AddPoint(l0 + l1 + 1000, d1);
            var initLayer = new GasLayer();

            initLayer.Geom = geom;
            initLayer.InitLayer(0d, layerOpts, InitIdealPCell, InitElasticPBound);
            var grid   = new IdealPiston.PistonGrid("ElasticP_tst1", initLayer);
            var solver = new WBSolver(grid, options);

            return(solver);
        }