Example #1
0
        public GasParticleVer3(double h, double hmax, List <BorderSegment> boundaries = null, GasParticleOptions opts = null) : base(hmax)
        {
            options    = opts ?? GasParticleOptions.DiffRoDiffE();
            Boundaries = boundaries ?? new List <BorderSegment>();
            this.h     = h;

            Vel      = new Position2D();
            Vel.Name = "Vel";
            AddChild(Vel);

            AddDiffVect(Vel);

            dVdt      = new Position2D();
            dVdt.Name = "dV";
            AddChild(dVdt);
            Vel.AddDiffVect(dVdt, false);

            if (options.diffRo)
            {
                AddDiffPropToParam(pRo, pdRo);
            }
            if (options.diffE)
            {
                AddDiffPropToParam(pE, pdE);
            }
            if (options.diffFullE)
            {
                AddDiffPropToParam(pFullE, pdFullE);
            }
        }
Example #2
0
        public static Sph2D GetTest()
        {
            //string real = "i1.txt";
            //string bound = "b1.txt";
            //return new My_Sph2D(real,bound);


            SPH2D_Ver3.h_default = 1d / 50;
            SPH2D_Ver3.k         = 3;
            SPH2D_Ver3.options   = GasParticleOptions.DiffRoDiffE();
            //return SPH2D_Ver3.TestTruba(1,0.2,0.5,1,1,0.1,0.125,SPH2D_Ver3.h_default/2);
            //return SPH2D_Ver3.TestGasBall(1,1,0);
            //return new Sph2D_improoveIntegr(SPH2D_Ver3.TestTrubaParticles(1,0.2,0.5,3E4,1500,1E4,1200,SPH2D_Ver3.h_default));
            return(new Sph2D_improoveIntegr(SPH2D_Ver3.TestGasBallParticles(1, 1, 0)));
        }