zoukankan      html  css  js  c++  java
  • Ansys Fluent利用循环设置检测点


    ; Create points
    (cx-gui-do cx-activate-item "Ribbon*Frame1*Frame6(Results)*Table1*Table3(Surface)*PushButton1(Create)")
    (cx-gui-do cx-activate-item "MenuBar*PopupMenuCreate*Point...")

    (define (SetPointsOneSide n)
      (let loop ((i 1))
        (if (<= i n)
            (begin
              (define xlabelpoint (- (* 0.01 (- i 1)) 0.1))
              ;(+ xlabelpoint 0)
              (cx-gui-do cx-set-text-entry "Point Surface*Table1*TextEntry1(Name)"  (string-append "point" (number->string i)))
              (cx-gui-do cx-set-real-entry-list "Point Surface*Table1*Frame3(Coordinates)*Table1*RealEntry1(x)" (list (- (* 0.01 (- i 1)) 0.1)))
              (cx-gui-do cx-activate-item "Point Surface*Table1*Frame3(Coordinates)*Table1*RealEntry1(x)")
              (cx-gui-do cx-set-real-entry-list "Point Surface*Table1*Frame3(Coordinates)*Table1*RealEntry2(y)" '0.0001))
              (cx-gui-do cx-activate-item "Point Surface*Table1*Frame3(Coordinates)*Table1*RealEntry2(y)")
              (cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton1(OK)")
              (loop (+ i 1))))))
    (SetPointsOneSide 21)
    (cx-gui-do cx-activate-item "Point Surface*PanelButtons*PushButton2(Cancel)")
     
     ==========================================================================================================
     

    ; Define point
    (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Report Definitions"))
    (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Report Definitions"))
    (cx-gui-do cx-activate-item "NavigationPane*List_Tree1")
    (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Report Definitions"))

    (define (DefinePointsBothSide n)
      (let loop ((i 1))
        (if (<= i n)
            (begin
              (cx-gui-do cx-activate-item "Report Definitions*Table1*ButtonBox3*PushButton1(New)")
              (cx-gui-do cx-activate-item "MenuBar*Surface ReportSubMenu*Vertex Maximum...")
              (cx-gui-do cx-set-text-entry "Surface Report Definition*Table1*Table1*TextEntry1(Name)" (string-append "point" (number->string i)))
              (cx-gui-do cx-activate-item "Surface Report Definition*Table1*Table1*TextEntry1(Name)")
              (cx-gui-do cx-set-list-selections "Surface Report Definition*Table1*Table2*Table6*List1(Surfaces)" (list (+ i 3)))
              (cx-gui-do cx-activate-item "Surface Report Definition*Table1*Table2*Table6*List1(Surfaces)")
              (cx-gui-do cx-activate-item "Surface Report Definition*PanelButtons*PushButton1(OK)")
              (loop (+ i 1))))))

    (DefinePointsBothSide 21)
    (cx-gui-do cx-activate-item "Report Definitions*PanelButtons*PushButton1(Close)")


  • 相关阅读:
    config Doku wiki
    [转载]【python】ipython与python的区别
    数组和指针
    C++初始化数据成员
    RSA算法原理
    C++四种cast
    百度笔试准备2
    百度笔试准备1
    百度面试准备
    C++的空类中默认产生哪些类成员函数
  • 原文地址:https://www.cnblogs.com/ly123456/p/13516565.html
Copyright © 2011-2022 走看看