ご質問はこちらまで:
support@comsol.com

Application Builder Updates


For users of the Application Builder, COMSOL Multiphysics® version 6.4 introduces support for multiple declaration nodes of the same type, new code generation features, and expanded Data Access options. Learn about these updates and more below.

Multiple Declaration Nodes

It is now possible to add multiple declaration nodes for the primitive types: String, Boolean, Integer, and Double, and their array and 2D array versions. This functionality makes it easier to structure and organize apps by grouping related variables together, much like using parameter groups in the Model Builder. Each group can be given a descriptive name and accessed separately through the COMSOL API for use with Java, providing a clearer and more flexible way to manage variables.

Code Generation Additions

Two new utilities have been introduced for generating code to use in methods and the Java Shell window. First, the Copy as Code to Clipboard menu includes a new Set All Displayed Settings option, which generates code for every setting currently shown in the Settings window for a selected node. The previous Set All command has been renamed Set All Modified Settings.

The second new utility is a Record Code button, which has been added to the Java Shell window in order to record code and send it directly to the Java Shell window as work is performed, without needing to create a method.

Recording code and sending it directly to the Java Shell window.

Data Access Additions

Data access is now available for more top-level Model Builder nodes, including Geometry, Mesh, Study, and Results, making it possible to use their settings directly as sources for form objects in the Application Builder, without writing method code.

The COMSOL Multiphysics UI showing the Model Builder with the Mesh node highlighted, the corresponding Settings window, and a modular mixer model in the Graphics window.
Enabling the data access checkbox for the Element size setting in a Mesh node makes it possible to control this setting directly from a combo box in the app, without writing any code.

Miscellaneous General Improvements

  • Performance in the Application Builder has been improved when working with large apps, such as those with many forms, subwindows, methods, or utility classes.
  • Buttons, including toggle buttons, can now use images as icons and display them at their original size, making it easier to create large, image-based buttons.
  • The background colors and icons of Graphics form objects can now be changed while an app is running.
  • A new Show in Data Viewer option enables jumping directly from an evaluated output in the Java Shell window to the corresponding variable in the Data Viewer window.
  • The Data Viewer window now includes a toolbar with options to expand or collapse branches, toggle full-precision mode for numerical values, and edit nodes.
  • Output written to System.out or System.err is now sent to the Debug Log window, making it easier to debug using standard Java code.
  • Two new writeFile() overloads make it possible to save a string matrix with a user-specified delimiter.
  • Content from the Methods Errors and Warnings window can now be copied, which is helpful when using external AI tools.

New Tutorial Models

COMSOL Multiphysics® version 6.4 introduces a new acoustics app and an ECAD import add-in.