⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nongui.desc.ol1

📁 isight调用proe和ansys进行优化的例子
💻 OL1
📖 第 1 页 / 共 2 页
字号:
MDOLVersion: 7.1
CompilerOptions: warn

Task task1

    TaskHeader task1
        Version: 1.0
        Evaluation: doestudy DOEStudy1
        ControlMode: user
        RunCounter: 1
        BoundsPolicy: adjustvalue
        CheckPoint: unknown
    End TaskHeader task1

    Inputs task1
        Parameter: d1 Type: real InitialValue: 3.0
        Parameter: d2 Type: real InitialValue: 6.0
        Parameter: d3 Type: real InitialValue: 1.0
        Parameter: d4 Type: real InitialValue: 0.75
        Parameter: d6 Type: real InitialValue: 0.75
        Parameter: d7 Type: real InitialValue: 0.75
        Parameter: BraceDepth Type: real InitialValue: 0.75
        Parameter: BraceWidth Type: real InitialValue: 3.0
        Parameter: BraceHeight Type: real InitialValue: 1.75
        Parameter: InnerHoleR Type: real InitialValue: 0.85
        Parameter: OuterHoleR Type: real InitialValue: 1.0
        Parameter: OuterHoleDepth Type: real InitialValue: 0.1875
        Parameter: WebThickness Type: real InitialValue: 0.15
    End Inputs task1

    Outputs task1
        Parameter: SEQMAX Type: real
        Parameter: VOLUMEAnsys Type: real
        Parameter: VOLUMEProE Type: real
        Parameter: a Type: real
        Parameter: b Type: real
        Parameter: c Type: real
    End Outputs task1

    Calculations task1
        Calculation Calculation0
            Parameters
                OuterHoleR BraceWidth BraceHeight InnerHoleR WebThickness a b c
            Statements
                a=BraceWidth-2*OuterHoleR-2*WebThickness
                b=OuterHoleR-InnerHoleR
                c=BraceHeight-OuterHoleR
            End Statements
        End Calculation Calculation0

        Calculation Calculation3
            Parameters
                VOLUMEProE VOLUMEAnsys SEQMAX
            Statements
                SEQMAX = 2*SEQMAX
                VOLUMEAnsys = 2*VOLUMEAnsys
                VOLUMEProE = 2*VOLUMEProE
            End Statements
        End Calculation Calculation3
    End Calculations task1

    Task ProE

        TaskHeader ProE
            Version: 1.0
            Evaluation: single
            ControlMode: user
            RunCounter: 1
            BoundsPolicy: adjustvalue
            CheckPoint: unknown
        End TaskHeader ProE

        Inputs ProE
            Parameter: d1 Type: real InitialValue: 3.0
            Parameter: d2 Type: real InitialValue: 6.0
            Parameter: d3 Type: real InitialValue: 1.0
            Parameter: d4 Type: real InitialValue: 0.75
            Parameter: d6 Type: real InitialValue: 0.75
            Parameter: d7 Type: real InitialValue: 0.75
            Parameter: BraceDepth Type: real InitialValue: 0.675
            Parameter: BraceWidth Type: real InitialValue: 3.3
            Parameter: BraceHeight Type: real InitialValue: 1.925
            Parameter: InnerHoleR Type: real InitialValue: 0.765
            Parameter: OuterHoleR Type: real InitialValue: 1.1
            Parameter: OuterHoleDepth Type: real InitialValue: 0.20625
            Parameter: WebThickness Type: real InitialValue: 0.135
        End Inputs ProE

        Outputs ProE
            Parameter: VOLUMEProE Type: real
        End Outputs ProE

        SimCode init
            SimCodeProcess init
                ScriptLanguage: DOSBatch
                Script
                    del brace_asm_asm__out.log.*
                    del modmass.dat.*
                    del trail.txt.*
                End Script
                ProcessType: transient
                Environment: unrestored
                ElapseTime: 5m
            End SimCodeProcess init

        End SimCode init

        SimCode sim
            InputFiles sim
                FileDescription ProEnonGUIBracetxt
                    FileType: standard
                    TemplateFile: "_ProE_non_GUI_Brace.template"
                    InputFile: "_ProE_non_GUI_Brace.txt"
                    Parameters
                        d1 d2 d3 d4 d6 d7 BraceDepth BraceWidth BraceHeight InnerHoleR
                        OuterHoleR OuterHoleDepth WebThickness
                    Instructions
                        require  BraceDepth BraceWidth BraceHeight InnerHoleR OuterHoleR OuterHoleDepth WebThickness
                            require d1 d2 d3 d4 d6 d7 
                            find "^d1:0=" ignore 
                            replace word with $d1 
                            find "^d2:0=" ignore 
                            replace word with $d2 
                            find "^d3:0=" ignore 
                            replace word with $d3 
                            find "^d4:0=" ignore 
                            replace word with $d4 
                            find "^d6:0=" ignore 
                            replace word with $d6 
                            find "^d7:0=" ignore 
                            replace word with $d7 
                            find "^d21:0=" ignore 
                            replace word with $BraceDepth 
                            find "^d23:0=" ignore 
                            replace word with $BraceWidth 
                            find "^d24:0=" ignore 
                            replace word with $BraceHeight 
                            find "^d26:0=" ignore 
                            replace word with $InnerHoleR 
                            find "^d28:0=" ignore 
                            replace word with $OuterHoleR 
                            find "^d30:0=" ignore 
                            replace word with $OuterHoleDepth 
                            find "^d31:0=" ignore 
                            replace word with $WebThickness
                    End Instructions
                End FileDescription ProEnonGUIBracetxt
            End InputFiles sim

            SimCodeProcess sim
                Program: "D:/Progra~1/proe2001/bin/proe2001.bat"
                ProcessType: transient
                Environment: unrestored
                ElapseTime: 5m
                Prologue
                    WriteInputSpecs: ProEnonGUIBracetxt
                Execution: "$Program pro_wait -g:no_graphics _ProE_non_GUI_Brace.txt"
            End SimCodeProcess sim

        End SimCode sim

        SimCode post
            OutputFiles post
                FileDescription massout
                    FileType: standard
                    OutputFile: "mass.out"
                    Parameters
                        VOLUMEProE
                    Instructions
                        find "VOLUME =  " ignore 
                        read VOLUMEProE
                        provide $VOLUMEProE
                    End Instructions
                End FileDescription massout
            End OutputFiles post

            SimCodeProcess post
                ScriptLanguage: DOSBatch
                Script
                    copy /Y modmass.dat.1 mass.out
                End Script
                ProcessType: transient
                Environment: unrestored
                ElapseTime: 5m
                Epilogue
                    ReadOutputSpecs: massout
            End SimCodeProcess post

        End SimCode post

        TaskProcess ProE
            Control: [
                init
                sim
                post
            ]
        End TaskProcess ProE

        Optimization ProE
            PotentialVariables:
                d1 d2 d3 d4 d6 d7 BraceDepth BraceWidth BraceHeight InnerHoleR
                OuterHoleR OuterHoleDepth WebThickness
            Variables: none
            VariableScaling
                Parameter: d1 ScaleFactor: 1.0
                Parameter: d2 ScaleFactor: 1.0
                Parameter: d3 ScaleFactor: 1.0
                Parameter: d4 ScaleFactor: 1.0
                Parameter: d6 ScaleFactor: 1.0
                Parameter: d7 ScaleFactor: 1.0
                Parameter: BraceDepth ScaleFactor: 1.0
                Parameter: BraceWidth ScaleFactor: 1.0
                Parameter: BraceHeight ScaleFactor: 1.0
                Parameter: InnerHoleR ScaleFactor: 1.0
                Parameter: OuterHoleR ScaleFactor: 1.0
                Parameter: OuterHoleDepth ScaleFactor: 1.0
                Parameter: WebThickness ScaleFactor: 1.0
            PotentialObjectives:
                d1 d2 d3 d4 d6 d7 BraceDepth BraceWidth BraceHeight InnerHoleR
                OuterHoleR OuterHoleDepth WebThickness VOLUMEProE

            # PLAN TO BE CONFIGURED BY ADVISOR:
            OptimizePlan PriorityRankedPlan
                Control: [
                ]
        End Optimization ProE

        TaskPlan ProE
            StopTaskPlanOnError: no
            Control: [
                PriorityRankedPlan
            ]
        End TaskPlan ProE

        DataStorage ProE
            Restore: no
            DataLog: "ProE.db" Mode: append
            DataLookUp: "ProE.db"
            MatchMode: Exact
            Levels: all
            StoreGradRuns: yes
            StoreApproxRuns: yes
        End DataStorage ProE

    End Task ProE


    Task Ansys

        TaskHeader Ansys
            Version: 1.0
            Evaluation: single
            ControlMode: user
            RunCounter: 1
            BoundsPolicy: adjustvalue
            CheckPoint: unknown
        End TaskHeader Ansys

        Outputs Ansys
            Parameter: SEQMAX Type: real
            Parameter: VOLUMEAnsys Type: real
        End Outputs Ansys

        SimCode init
            SimCodeProcess init
                ScriptLanguage: DOSBatch
                Script
                    del ansys_brace_result.out
                End Script
                ProcessType: transient

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -