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

📄 beam.desc.ol1

📁 一个isight调用ansys接口的例子
💻 OL1
字号:
MDOLVersion: 8.0
CompilerOptions: warn

Task IBEAM

    TaskHeader IBEAM
        Version: 1.0
        Evaluation: doestudy DOEStudy1
        ControlMode: user
        RunCounter: 21
        BoundsPolicy: adjustvalue
        CheckPoint: unknown
        RandGenInit: default
    End TaskHeader IBEAM

    Inputs IBEAM
        Parameter: Flange Type: real InitialValue: 20.0
        Parameter: Width Type: real InitialValue: 20.0
        Parameter: HeightUp Type: real InitialValue: 20.0
        Parameter: Height Type: real InitialValue: 50.0
        Parameter: Length Type: real InitialValue: 200.0
    End Inputs IBEAM

    Outputs IBEAM
        Parameter: MaxSEQV Type: real
        Parameter: Volume Type: real
    End Outputs IBEAM

    Calculations IBEAM
        Calculation GetVolume
            Parameters
                Width Flange Height HeightUp Volume
            Statements
                Volume = (Height*Width+2*(Flange*2+Width)*HeightUp)
            End Statements
        End Calculation GetVolume
    End Calculations IBEAM

    SimCode SE

        InputFiles SE
            FileDescription beamvbs
                FileType: standard
                TemplateFile: "Template.txt"
                InputFile: "beam.vbs"
                Parameters
                    Flange Width HeightUp Height Length
                Instructions
                    require  Flange Width HeightUp Height Length
                        find "\"FlangeLeftUp\"," ignore 
                        replace "50.0000000" with $Flange as "%f" ignore 
                        find "\"Width\"," ignore 
                        replace "20.0000000" with $Width as "%f" ignore 
                        find "\"HeightUp\"," ignore 
                        replace "20.000000" with $HeightUp as "%f" ignore 
                        find "\"Height\"," ignore 
                        replace "50.0000000" with $Height as "%f" ignore 
                        find "\"Length\"," ignore 
                        replace "360.0000000" with $Length as "%f" ignore
                End Instructions
            End FileDescription beamvbs
        End InputFiles SE

        SimCodeProcess SE
            Program: "./beam.vbs"
            ProcessType: transient
            Environment: restored
            ElapseTime: 5m
            Prologue
                WriteInputSpecs: beamvbs
            Execution: "$Program"
        End SimCodeProcess SE

    End SimCode SE

    SimCode Ansys

        OutputFiles Ansys
            FileDescription outputtxt
                FileType: standard
                OutputFile: "output.txt"
                Parameters
                    MaxSEQV
                Instructions
                    find "*GET  SEQMAX    FROM  SORT  ITEM=MAX        VALUE=  " ignore 
                    read MaxSEQV as "%f"
                    provide $MaxSEQV
                End Instructions
            End FileDescription outputtxt
        End OutputFiles Ansys

        SimCodeProcess Ansys
            ScriptLanguage: DOSBatch
            Script
                cmd /c "C:\Program Files\Ansys Inc\v80\ANSYS\bin\intel\ansys80.exe" -b -i ./beam.lgw -o ./output.txt
            End Script
            ProcessType: transient
            Environment: restored
            ElapseTime: 5m
            Epilogue
                ReadOutputSpecs: outputtxt
            Execution: "$Program"
        End SimCodeProcess Ansys

    End SimCode Ansys

    SimCode Del

        SimCodeProcess Del
            ScriptLanguage: DOSBatch
            Script
                del D:\beam\Beam.igs
                del D:\beam\Beam.full
                del D:\beam\file.lock
                del D:\beam\output.txt
            End Script
            ProcessType: transient
            Environment: unrestored
            ElapseTime: 5m
            Execution: "$Program"
        End SimCodeProcess Del

    End SimCode Del

    TaskProcess IBEAM
        Control: [
            Sequential [
                Del
                SE
                GetVolume
                Ansys
            ]
        ]
    End TaskProcess IBEAM

    Optimization IBEAM
        PotentialVariables:
            Flange Width HeightUp Height Length
        Variables:
            Flange Width HeightUp Height Length
        VariableScaling
            Parameter: Flange ScaleFactor: 1.0
            Parameter: Width ScaleFactor: 1.0
            Parameter: HeightUp ScaleFactor: 1.0
            Parameter: Height ScaleFactor: 1.0
            Parameter: Length ScaleFactor: 1.0
        InputConstraints
        PotentialObjectives:
            Flange Width HeightUp Height Length MaxSEQV Volume
        OutputConstraints
            Parameter: MaxSEQV UpperBound: 10000000.0 Weight: 1.0 ScaleFactor: 1.0

        OptimizePlan PriorityRankedPlan
            DefaultUpperBound: 1E15
            UseScaling: yes
            Control: [
            ]
    End Optimization IBEAM

    DesignOfExperiments IBEAM
        Plan DOEPlan1
            Technique: "OrthogonalArray"
            Factors
                ParameterList
                    Type: control
                    Parameters
                        Length
                            Levels: percent [ -25.0 -8.333 8.333 25.0 ]
                            BaseLine: 200.0
                End ParameterList
            End Factors
        End Plan DOEPlan1

        Study DOEStudy1
            Plan: DOEPlan1
            Responses
                Outputs:
                    MaxSEQV
            End Responses
            Actions
                Objective: MaxSEQV
                Direction: minimize
            End Actions
            ResultsFile: "doe_Study.DOEStudy1"
            Prologue
                Tcl
                End Tcl
            Epilogue
                Tcl
                End Tcl
        End Study DOEStudy1
    End DesignOfExperiments IBEAM

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

    DataStorage IBEAM
        Restore: no
        DataLog: "IBEAM.db" Mode: overwrite
        MatchMode: Exact
        Levels: all
        StoreGradRuns: yes
        StoreApproxRuns: yes
    End DataStorage IBEAM

End Task IBEAM

⌨️ 快捷键说明

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