예제 #1
0
        private void tsm_TestShowResult_Click(object sender, EventArgs e)
        {
            var solver = new AnsysSolver(WorkingDir, Options.SolverGUI);
            var pp     = new PostProcessor(Model, solver);

            try
            {
                if (pp.Results == null)
                {
                    pp.ReadResultFile(resultFilePath: WorkingDir.F_AnsysResult);
                }
                pp.ShowResultsList();
            }
            catch (Exception ex)
            {
                // ignored
                var res = MessageBox.Show("后处理过程出现异常!\r\n", @"提示", MessageBoxButtons.OK,
                                          MessageBoxIcon.Error);
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: ming91915/SDSS
 /// <summary>
 /// 将 Ansys 的计算结果进行读取,并显示出来
 /// </summary>
 /// <param name="pp"></param>
 public void ReadAndShowResults()
 {
     if (_PostProcessor != null)
     {
         try
         {
             if (_PostProcessor.Results == null)
             {
                 _PostProcessor.ReadResultFile(resultFilePath: WorkingDir.F_AnsysResult);
             }
             _PostProcessor.ShowResultsList();
         }
         catch (Exception ex)
         {
             // ignored
             var res = MessageBox.Show("后处理过程出现异常!\r\n", @"提示", MessageBoxButtons.OK,
                                       MessageBoxIcon.Error);
         }
     }
     else
     {
         var res = MessageBox.Show(@"未找到有效的计算结果!", @"提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }