学习中心

Course:

Getting Started with Building Simulation Apps

Increasing Complexity of Apps Using Command Sequences and Methods


Using the Application Builder in COMSOL Multiphysics®, you can create command sequences and write methods to automate or extend functionality and operations in your simulation app. Examples of this include automating the graphics display to update when a setting (like the mesh density level) is changed or reading from a file and dynamically changing other choices in the app as a result. Learn how to convert command sequences into methods to generate code automatically as well as write code for your app to perform the operations you want it to.

Follow along by downloading the model filehere.

Tutorial: More on Using Command Sequences and Methods

Thesimplified thermal microactuator tutorial modelis used for the model example, which a simulation app was developed forpreviously. The app is extended such that when a user chooses a mesh density level from the menu, the mesh for the model geometry is built and displayed automatically. This is done through changing theEventssection of settings for the original form object, from which a command sequence is created and then converted into a new method. Topics covered in the tutorial video include the following:

  • Form objectSettingswindow
    • ChangingEventssettings
    • Creating command sequences
  • Working in theCommand Sequencewindow
    • UsingConvert to Methodto create a new method
  • Reviewing code in theMethod Editorwindow

Further Learning


请提交与此页面相关的反馈,或点击此处联系技术支持

Baidu
map