公司要求研究一下ISight,就学习了一下,下面是对beamDOE.desc这个文件的解析。
说明:使用的是Isight9.0 而不是Isight-FD。
PS:Isight好的资料不多,最近收集了一下,需要的朋友留下地址!
# # NAME: beamSimple.desc # # DESCRIPTION: # This is the MDOL description file for the I-beam example that appears # in the iSIGHT Developer's Guide. It demonstrates the basic structure # of a task description, emphasizing the most commonly used MDOL blocks # and conventions. # # This task description is also included in the hierarchical # optimization problem found in "beamInclude.desc". # # The beam that is optimized in this example is a cantilever subjected # to a concentrated force at its free end. The force has components in # both directions in the plane of the cross section. The cross section # is oriented such that the larger force component is in the same # direction in which the cross section height (BeamHeight) is measured. # # The objectives of the single task in this file are to minimize the # beam's mass and its deflection in the direction in which BeamHeight is # measured. The design variables are the four geometric parameters that # describe the cross section: BeamHeight, FlangeThickness, FlangeWidth, # and WebThickness. There is a constraint on the maximum allowed stress # in the beam and there are upper and lower bounds on all four design # variables. # # The task employs a single simulation program, "beam.exe", to evaluate # static bending stresses in the beam, deflection, and the area of the # beam's cross section. This simulation program is typical of older # FORTRAN programs that require fixed format input. The instructions # for creating the input file for this program, shown in the file # description block "beamIn1", demonstrate how to generate this type # of formatted input. # # A calculation derives the beam's mass from the cross section area # assuming constant density and area along the length of the beam. # # DATE LAST MODIFIED: # 27-MAY-97 Brought into conformance with standards for examples. # # 05-JAN-98. Language: and TranslationFile: keywords removed due to # new Language: default (perl). # # 02-FEB-98. Precision: keyword removed [unsupported; double assumed]. # MDOLVersion: 9.0 CompilerOptions: warn Task beam ######################### # # # TaskHeader Block # 【★==【头信息】==★】 # # ######################### TaskHeader beam Description: "Simple design of an I-beam" Version: 1.1 Evaluation: taskplan ControlMode: user RunCounter: 186 BoundsPolicy: adjustvalue CheckPoint: unknown End TaskHeader beam ##################### # # # Inputs Block # 【★==【item:Parameters->】==★】 # # ##################### Inputs beam 【◇【元素名称、类型、单元,初始化值】◇】 Parameter: BeamHeight Type: real Units: "mm" InitialValue: 80.0 Parameter: FlangeWidth Type: real Units: "mm" InitialValue: 43.9929605027454 Parameter: WebThickness Type: real Units: "mm" InitialValue: 0.9 Parameter: FlangeThickness Type: real Units: "mm" InitialValue: 2.09853288186252 End Inputs beam ######################### # # 【★==【item:Parameters->】==★】 # Auxiliaries Block # # # ######################### Auxiliaries beam Parameter: Area Type: real Units: "mm^2" InitialValue: 249.57665 Parameter: Length Type: real Units: "mm" InitialValue: 400.0 Parameter: Density Type: real Units: "g/mm^3" InitialValue: 0.0025 End Auxiliaries beam ##################### # # 【★==【item:Parameters->】==★】 # Outputs Block # # # ##################### Outputs beam 【◇【元素名称、类型、单元】◇】 Parameter: Mass Type: real Units: "g" Parameter: Deflection Type: real Units: "mm" Parameter: Stress Type: real Units: "MPa" End Outputs beam ############################# # #【★==【item:Parameters->】==★】 # Initialization Block # # # ############################# Initialization beam Parameters Length Density Tcl # # Initialize the Auxiliary parameters. # puts "Inside Initialization block" api_SetParameterValue beam Length 400.0 api_SetParameterValue beam Density 0.0025 End Tcl End Initialization beam ######################### # # # Calculations Block # 【★==【item:intergate->Masscale:Tcl Script Editor】==★】 # # ######################### Calculations beam # # Calculate the mass of the beam, given its cross-section # area, length, and density. # Calculation MassCalc Parameters 【△【元素,命令行中需要用到的】△】 Mass Area Length Density Tcl 【△【命令行】△】 api_SetParameterValue beam Mass [expr [api_GetParameterValue beam Area] * [api_GetParameterValue beam Length] * [api_GetParameterValue beam Density] ] End Tcl End Calculation MassCalc End Calculations beam ##################### # # 【★==【输入数据,输出数据,执行过程的设置】==★】 # SimCode Block # 【★==【item:intergate->beamCode1】==★】 # # ##################### SimCode beamCode1 【★【SimCode】★】 InputFiles beamCode1 【◆【输入文件定义:beamCode1下的第一个generate】◆】 FileDescription beamIn1 【▲【文件描述:beamIn1】▲】 FileType: standard 【△【文件类型:标准】△】 TemplateFile: "beam.in" 【△【文件名:beam.in】△】 Parameters 【△【文件元素:4个】△】 BeamHeight FlangeWidth WebThickness FlangeThickness Instructions 【△【指令:读入四个数字并赋值给四个变量】△】 moveto line + 1 moveto column 15 write $FlangeWidth as "%15.8f" moveto column 30 write $BeamHeight as "%15.8f" moveto column 45 write $FlangeThickness as "%15.8f" moveto column 60 write $WebThickness as "%15.8f" End Instructions End FileDescription beamIn1 End InputFiles beamCode1 OutputFiles beamCode1 【◆【输出文件定义:beamCode1下的第二个generate】◆】 FileDescription beamOut1 【▲【文件描述:beamOut1】▲】 FileType: standard 【△【文件类型:标准】△】 Parameters 【△【文件元素:4个】△】 Mass Deflection Stress Area Instructions 【△【指令:(Q:从哪读?)】△】 find "AREA" moveto line + 2 moveto word - 1 read Area find "MAXIMUM EFFECTIVE STRESS (MPA):" read Stress find "DEFLECTION AT FREE END (MM):" moveto word + 1 read Deflection provide $Area $Stress $Deflection End Instructions End FileDescription beamOut1 End OutputFiles beamCode1 SimCodeProcess beamCode1 【◆【执行过程定义 beamCode1:beamCode1下的beam.exe】◆】 Program: "./beam.exe" 【△【执行文件(Q:为什么和上面的对比多了个./呢?)】△】 ProcessType: transient 【△【】△】 ElapseTime: 5m 【△【ElapseTime:300秒】△】 Prologue 【△【一个读入一个读出(Q:为什么有Prologue和Stdin的区分)】△】 WriteInputSpecs: beamIn1 Epilogue ReadOutputSpecs: beamOut1 Stdin: beamIn1 Stdout: beamOut1 End SimCodeProcess beamCode1 End SimCode beamCode1 Approximations beam 【★==【item:Approximations->ApproxFromBeamStudy1->Edit】==★】 Approximation ApproxFromBeamStudy1 【△【名称:ApproxFromBeamStudy1】△】 Type: "Response Surface Model" 【△【类型:RSM】△】 Inputs 【△【输入元素:Random Design Range:25%】△】 BeamHeight 0.25 FlangeWidth 0.25 FlangeThickness 0.25 End Inputs Outputs 【△【输出元素:4个】△】 Mass Stress ObjectiveAndPenalty Deflection End Outputs Initialization 【△【类型:db、来源:……】△】 Mode: database DataFile: "./DOEStudies/BeamStudy1.rsmdata" End Initialization Options 【△【Q:???】△】 InitialDesignCount: 9 InitialPolynomialOrder: intermediate MaximumPolynomialOrder: quadratic End Approximation ApproxFromBeamStudy1 End Approximations beam ######################### # # # TaskProcess Block # 【★==【item:intergate->】==★】 # # 【★==【仅仅列出名称】==★】 ######################### TaskProcess beam Control: [ beamCode1 MassCalc ] End TaskProcess beam ######################### # # 【★==【最优化块:对输入输出数据的约束】==★】 # Optimization Block # 【★==【item:Parameters->】==★】 # # ######################### Optimization beam PotentialVariables:【△【PotentialVariables:好像与下面的Variables重复,个人认为是为设置Scaling用的】△】 BeamHeight FlangeWidth WebThickness FlangeThickness Variables: BeamHeight FlangeWidth WebThickness FlangeThickness VariableScaling 【△【Parameters->Scaling(右上角):设置缩放比(Q:什么东东?)】△】 Parameter: BeamHeight ScaleFactor: 1.0 Parameter: FlangeWidth ScaleFactor: 1.0 Parameter: WebThickness ScaleFactor: 1.0 Parameter: FlangeThickness ScaleFactor: 1.0 InputConstraints 【△【设置变量上下限约束,Tips:界面中的当前值是从SimCode块中读取来的】△】 Parameter: BeamHeight LowerBound: 10.0 UpperBound: 80.0 Parameter: FlangeWidth LowerBound: 10.0 UpperBound: 50.0 Parameter: WebThickness LowerBound: 0.9 UpperBound: 5.0 Parameter: FlangeThickness LowerBound: 0.9 UpperBound: 5.0 PotentialObjectives: 【△【目标变量】△】 Mass Deflection Stress Objectives 【△【目标变量(Q:????)】△】 Parameter: Deflection Direction: minimize Weight: 169.49 ScaleFactor: 1.0 Parameter: Mass Direction: minimize Weight: 0.00778 ScaleFactor: 1.0 OutputConstraints Parameter: Stress UpperBound: 16.0 Weight: 1.0 ScaleFactor: 1.0 OptimizePlan ExploitivePlan 【★==【item:Task Plan->List of Exiting Play->ExploitivePlan->】==★】 DefaultUpperBound: 1E15 【△=【item:……->Plan Details:(default variable bound magnitude)默认变量约束幅度】==△】 UseScaling: yes 【△【Using Wigth/Scale】△】 OptimizeStep ads1 【△=【item:……->steps一共两步】△】 Technique: "Exterior Penalty" Prologue RestoreBestSolution: no RerunTask: no Epilogue RestoreBestSolution: yes RerunTask: no Options Approximations: ApproxFromBeamStudy1 NumberOfIterations: 1 OptimizeStep ads2 Technique: "Modified Method of Feasible Directions" Prologue RestoreBestSolution: no RerunTask: no Epilogue RestoreBestSolution: yes RerunTask: no Options NumberOfIterations: 1 Control: [ ads1 ads2 ] End Optimization beam ######################### # # 【★==【DOE块:】==★】 # DOE Block # 【★==【item:Doe->】==★】 # # ######################### DesignOfExperiments beam Plan BeamPlan2 【◇=【item:DOE Studies->StudyFlange->DOE Study Definition->Factors=◇】 Description: "This is test DOE plan #2 - using CCD" 【△【描述】△】 Technique: "CentralComposite" 【△【technique:(右上角)】△】 Factors ParameterList Type: control 【△【Factors】△】 Parameters 【△【元素:对应表格的】△】 FlangeThickness BaseLine: 3.0 Levels: values [ 2.5758 2.7 3.0 3.3 3.4242 ] Alpha: 1.414 LowerLevel: 2.7 UpperLevel: 3.3 FlangeWidth BaseLine: 50.0 Levels: values [ 42.93 45.0 50.0 55.0 57.07 ] Alpha: 1.414 LowerLevel: 45.0 UpperLevel: 55.0 End ParameterList End Factors End Plan BeamPlan2 Plan BeamPlanOA 【◇=【item:DOE Studies->BeamStudy1->DOE Study Definition->Factors=◇】 Description: "This is test DOE plan #1 - using OA" Technique: "OrthogonalArray" 【△【technique:(右上角)】△】 NoiseTechnique: "OrthogonalArray" 【△【右上角 正交数组】△】 Factors ParameterList Type: control 【△【Factors】△】 Parameters 【△【元素:对应表格的】△】 BeamHeight BaseLine: 70.0 Levels: percent [ -25.0 25.0 ] FlangeWidth BaseLine: 40.0 Levels: percent [ -10.0 0.0 10.0 ] FlangeThickness BaseLine: 3.0 Levels: percent [ -20 0 20 ] End ParameterList ParameterList Type: noise Parameters 【△【选择noise】△】 WebThickness BaseLine: 3.0 Levels: values [ 2.6 3.7 ] End ParameterList End Factors End Plan BeamPlanOA Study BeamStudy1 【◇=【item:DOE Studies->BeamStudy1->DOE Study Definition->Post Processing】=◇】 Plan: BeamPlanOA Responses 【△【Responses】△】 Outputs: Mass Stress ObjectiveAndPenalty Deflection End Responses Actions 【◇【Post study Actions】◇】 Objective: ObjectiveAndPenalty Direction: minimize CreateApprox: RSM ApproxFromBeamStudy1 【△【应该是在此处生成的approximation】△】 End Actions ResultsFile: "FirstStudy.res" 【△【Q:???????????】△】 Prologue Tcl End Tcl Epilogue Tcl End Tcl End Study BeamStudy1 Study StudyFlange 【◇=【item:DOE Studies->StudyFlange->DOE Study Definition->Post Processing】=◇】 Plan: BeamPlan2 Responses 【△【Responses:为什么会是两个Expressions呢???】△】 Expressions: StressWithFS Tcl $Stress(V)*1.2 End Tcl DeflWithFS Tcl 2.0*$Deflection(V) End Tcl End Responses Actions 【◇【Post study Actions】◇】 Objective: StressWithFS Direction: minimize EstimateOptimum: bestlevels 【◇【?????】◇】 End Actions ResultsFile: "doe_Study.StudyFlange" Prologue Tcl End Tcl Epilogue Tcl End Tcl End Study StudyFlange End DesignOfExperiments beam ######################### # # # TaskPlan Block # 【★==【item:Task Plan】==★】 # # 【◇【此处仅仅列出了两个步骤】◇】 ######################### TaskPlan beam StopTaskPlanOnError: no 【◇【左下角复选框】◇】 Control: [ BeamStudy1 ExploitivePlan ] End TaskPlan beam ######################### # # # DataStorage Block # 【★==【item:DataBase->】==★】 # # ######################### DataStorage beam Restore: yes DataLog: "beam.db" Mode: overwrite DataLookUp: "beam-in.db" 【◇=【……>DataBase Lookup Files->】=◇】 MatchMode: Exact 【△【……>DataBase Lookup Files->MatchMode】△】 Levels: all StoreGradRuns: yes 【△【StoreGradRuns】△】 StoreApproxRuns: yes 【△【StoreApproxRuns】△】 End DataStorage beam End Task beam