adams静平衡脚本
adams静平衡经常要在car和view间来回切换,容易产生问题。因此做了一个小脚本,放入View的menu菜单里,即可方便的使用。如下文供参考。 MENU1 &Equi_analysis NAME=Equi_analysis BUTTON2 click_to_equilibrium_analysis CMD=simulation set solver_preference = internal CMD=acar toolkit read property_files & CMD=assembly = (DB_DEFAULT(system_defaults, "model")) & CMD=verbose = no & CMD=error_variable = .ACAR.variables.errorFlag CMD=executive set equilibrium model =(DB_DEFAULT(system_defaults, "model")) error = 1.0E-02 CMD=executive set equilibrium model =(DB_DEFAULT(system_defaults, "model")) maxit = 300 CMD=if cond=("" == "interactive") CMD= int cont undisp cont=c_scripted CMD= int cont disp cont=c_interactive CMD=else CMD= int cont disp cont=c_scripted CMD= int cont undisp cont=c_interactive CMD=end CMD=var set var = .mdi.errno int=0 CMD=if cond=0 CMD= simulation single reset CMD=end CMD=simulation single equilibrium CMD=mdi gui_utl_check_sim subject="Equilibrium" BUTTON2 click_to_read_ADAMSmodel_property CMD=acar toolkit read property_files & CMD=assembly = (DB_DEFAULT(system_defaults, "model")) & CMD=verbose = no & CMD=error_variable = .ACAR.variables.errorFlag SEPARATOR2 BUTTON2 click_set_output CMD=simulation set save_files = yes CMD=output set output model =(DB_DEFAULT(system_defaults, "model")) reqsave = on CMD=output set output model =(DB_DEFAULT(system_defaults, "model")) rpcsave = on
点赞 1 评论 1 收藏 3