コード例 #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);
            }
        }
コード例 #2
0
        public IsotropicGasParticle(double d, double hmax) : base(hmax)
        {
            Vel      = new Position2D();
            Vel.Name = "Vel";
            AddChild(Vel);

            AddDiffVect(Vel);
            this.D = d;

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


            // AddDiffPropToParam(pRo,pdRo);
            AddDiffPropToParam(pE, pdE);
        }