Exemplo n.º 1
0
 private void cb_VelocityFormulation_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.cb_VelocityFormulation.SelectedIndex == 0)
     {
         velocityFormulation = VelocityFormulation.Absolute;
         this.lb_help.Text   = "帮助:\r\n" + HelpDescriptions.VAbsolute;
     }
     else
     {
         velocityFormulation = VelocityFormulation.Relative;
         this.lb_help.Text   = "帮助:\r\n" + HelpDescriptions.VRelative;
     }
 }
Exemplo n.º 2
0
        private void MeshFlieForm_Load(object sender, EventArgs e)
        {
            cb_SolverType.Items.AddRange(new string[] { "基于压力法(压力基)", "基于密度法(密度基)" });
            cb_VelocityFormulation.Items.AddRange(new string[] { "绝对速度", "相对速度" });
            cb_TimeType.Items.AddRange(new string[] { "稳态", "瞬态" });
            cb_GravityDirection.Items.AddRange(new string[] { "X", "Y", "Z" });

            cb_SolverType.SelectedIndex          = 0;
            cb_VelocityFormulation.SelectedIndex = 0;
            cb_TimeType.SelectedIndex            = 0;
            cb_GravityDirection.SelectedIndex    = 2;

            solverType          = SolverType.PressureBased;
            velocityFormulation = VelocityFormulation.Absolute;
            timeType            = TimeType.Steady;

            isGravity        = false;
            gravityDirection = GravityDirection.Z;

            this.lb_help.Text = "帮助:\r\n";
        }