Ejemplo n.º 1
0
 public void bal(IntegralMeanings S, Coefficient C, Controls del, Statics s)
 {
     S.V_BAL      = s.Vo;
     S.Yg_BAL     = s.Ho;
     del.Tr_BAL   = s.Tro;
     C.y          = (2 * s.G) / (s.S * s.PO_h * S.V_BAL * S.V_BAL);
     S.ALPHA_BAL  = i.ALPHA(C.y);
     S.THETA_BAL  = S.ALPHA_BAL;
     del.e_rv_BAL = s.mzo + i.mz(S.ALPHA_BAL) * S.ALPHA_BAL;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Set initial conditions
        /// </summary>
        public void SetInitialConditions()
        {
            d = new DifferentialMeanings();
            S = new IntegralMeanings();
            F = new Forses();
            M = new Moments();
            C = new Coefficient();
            c = new LinearizedCoefficient();
            N = new Overload();
            del = new Controls();
            s = new Statics();

            SetInitialValues();

            if (stForm == null)
            { stForm = new StaticsForm(this, s); }
            else if (stForm != null)
            {
                stForm.Close();
                stForm = new StaticsForm(this, s);
            }

            if (fpForm == null)
            { fpForm = new FlyParamForm(this); }
            else if (fpForm != null)
            {
                fpForm.Close();
                fpForm = new FlyParamForm(this);
            }

            if (glForm == null)
            { glForm = new GraphicsListForm(this); }
            else if (glForm != null)
            {
                glForm.Close();
                glForm = new GraphicsListForm(this);
            }

            if (dgForm == null)
            { dgForm = new DataGridForm(this); }
            else if (dgForm != null)
            {
                dgForm.Close();
                dgForm = new DataGridForm(this);
            }

            if (avForm == null)
            { avForm = new AviatingForm(this); }
            else if (avForm != null)
            {
                avForm.Close();
                avForm = new AviatingForm(this);
            }

            if (pvForm == null)
            { pvForm = new PlaneVisualisationForm(this.toolStripButton6_Visualisation, S); }
            else if (pvForm != null)
            {
                pvForm.Close();
                pvForm = new PlaneVisualisationForm(this.toolStripButton6_Visualisation, S);
            }

            if (auForm == null)
            { auForm = new AutopilotForm(this); }
            else if (auForm != null)
            {
                auForm.Close();
                auForm = new AutopilotForm(this);
            }

            if (scrForm == null)
            { scrForm = new ScriptingAutopilotForm(this); }
            else if (scrForm != null)
            {
                scrForm.Close();
                scrForm = new ScriptingAutopilotForm(this);
            }
        }
Ejemplo n.º 3
0
 public void bal(IntegralMeanings S, Coefficient C, Controls del, Statics s)
 {
     S.V_BAL = s.Vo;
     S.Yg_BAL = s.Ho;
     del.Tr_BAL = s.Tro;
     C.y = (2 * s.G) / (s.S * s.PO_h * S.V_BAL * S.V_BAL);
     S.ALPHA_BAL = i.ALPHA(C.y);
     S.THETA_BAL = S.ALPHA_BAL;
     del.e_rv_BAL = s.mzo + i.mz(S.ALPHA_BAL) * S.ALPHA_BAL;
 }